File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments