Closed Ucag closed 2 months ago
I met this error on Mac when running mnist example on Mac M2. The program failed on ggml.c check of line 19771 and 19772. Those two checks are:
ggml.c
assert(*ctx_data == NULL); assert(*ctx_eval == NULL);
These two pointers passed through the caller function in examples/mnist/mnist-common.cpp, which are initialized as below:
struct ggml_context * ctx_data; struct ggml_context * ctx_eval;
The error is obvious. It seems that not all compiler will make uninitialized pointer to NULL.
I met this error on Mac when running mnist example on Mac M2. The program failed on
ggml.c
check of line 19771 and 19772. Those two checks are:These two pointers passed through the caller function in examples/mnist/mnist-common.cpp, which are initialized as below:
The error is obvious. It seems that not all compiler will make uninitialized pointer to NULL.