File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -120,13 +120,7 @@ int main(int argc, char * argv[]) {
120
120
generate_data (0.0 , test_data.size (), test_data.data ());
121
121
generate_data (1.0 , test_data2.size (), test_data2.data ());
122
122
123
- // Initialize GGML, ensures float conversion tables are initialized
124
- struct ggml_init_params ggml_params = {
125
- /* .mem_size = */ 1 *1024 ,
126
- /* .mem_buffer = */ NULL ,
127
- /* .no_alloc = */ true ,
128
- };
129
- struct ggml_context * ctx = ggml_init (ggml_params);
123
+ ggml_cpu_init ();
130
124
131
125
int num_failed = 0 ;
132
126
bool failed = false ;
@@ -188,7 +182,5 @@ int main(int argc, char * argv[]) {
188
182
printf (" %d tests failed\n " , num_failed);
189
183
}
190
184
191
- ggml_free (ctx);
192
-
193
185
return num_failed > 0 ;
194
186
}
You can’t perform that action at this time.
0 commit comments