File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ static void ggml_check_sycl() try {
193
193
194
194
if (!initialized) {
195
195
g_ggml_sycl_debug = get_sycl_env (" GGML_SYCL_DEBUG" , 0 );
196
- g_ggml_sycl_disable_optimize= get_sycl_env (" GGML_SYCL_DISABLE_OPT" , 0 );
196
+ g_ggml_sycl_disable_optimize= get_sycl_env (" GGML_SYCL_DISABLE_OPT" , 1 );
197
197
g_ggml_sycl_disable_graph = get_sycl_env (" GGML_SYCL_DISABLE_GRAPH" , 1 );
198
198
GGML_SYCL_DEBUG (" [SYCL] call ggml_check_sycl\n " );
199
199
GGML_LOG_INFO (" Running with Environment Variables:\n " );
@@ -338,7 +338,7 @@ ggml_backend_sycl_buffer_init_tensor(ggml_backend_buffer_t buffer,
338
338
assert (tensor->view_src ->buffer ->buft == buffer->buft );
339
339
return GGML_STATUS_SUCCESS;
340
340
}
341
- if (tensor->type == GGML_TYPE_Q4_0) {
341
+ if (tensor->type == GGML_TYPE_Q4_0 && !g_ggml_sycl_disable_optimize ) {
342
342
ggml_tensor_extra_gpu * extra = new ggml_tensor_extra_gpu{};
343
343
tensor->extra = extra;
344
344
ctx->tensor_extras .push_back (extra); // used to release it when destroy ctx.
You can’t perform that action at this time.
0 commit comments