Skip to content

Commit e04880f

Browse files
committed
More updates for review comments
1 parent 9edd107 commit e04880f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ggml/src/ggml-cpu/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
116116
set(ARM_MCPU_FLAG_FIX "${ARM_MCPU_FLAG_FIX}+${tag}" PARENT_SCOPE)
117117
else()
118118
set(CMAKE_REQUIRED_FLAGS "${ARM_MCPU_FLAG}+no${tag}")
119-
check_cxx_source_compiles("${code}" GGML_MACHINE_SUPPORTS_no${tag})
119+
check_cxx_source_compiles("int main() { return 0; }" GGML_MACHINE_SUPPORTS_no${tag})
120120
if (GGML_MACHINE_SUPPORTS_no${tag})
121121
set(ARM_MCPU_FLAG_FIX "${ARM_MCPU_FLAG_FIX}+no${tag}" PARENT_SCOPE)
122122
endif()

ggml/src/ggml-cpu/ggml-kleidiai/ggml-kleidiai.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static void init_kleidiai_context(void) {
6161
ggml_critical_section_end();
6262
}
6363

64-
static inline int ggml_ne(const ggml_tensor * tensor, int dim) {
64+
static inline int64_t ggml_ne(const ggml_tensor * tensor, int dim) {
6565
GGML_ASSERT(dim >= 0 && dim < GGML_MAX_DIMS);
6666
return tensor->ne[dim];
6767
}

0 commit comments

Comments
 (0)