File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ void* ggml_sycl_host_malloc(size_t size);
3939void ggml_sycl_host_free (void * ptr);
4040
4141
42- static int g_ggml_sycl_debug = 0 ;
43- static int g_ggml_sycl_disable_optimize = 0 ;
42+ extern int g_ggml_sycl_debug;
43+ extern int g_ggml_sycl_disable_optimize;
4444
4545#define GGML_SYCL_DEBUG (...) \
4646 do { \
Original file line number Diff line number Diff line change 4444
4545static bool g_sycl_loaded = false ;
4646int g_ggml_sycl_debug = 0 ;
47+ int g_ggml_sycl_disable_optimize = 0 ;
4748
4849static ggml_sycl_device_info ggml_sycl_init () {
4950 ggml_sycl_device_info info = {};
@@ -187,7 +188,7 @@ static void ggml_check_sycl() try {
187188 static bool initialized = false ;
188189
189190 if (!initialized) {
190- g_ggml_sycl_debug = get_sycl_env (" GGML_SYCL_DEBUG" , 0 );
191+ g_ggml_sycl_debug = get_sycl_env (" GGML_SYCL_DEBUG" , 0 );
191192 g_ggml_sycl_disable_optimize= get_sycl_env (" GGML_SYCL_DISABLE_OPT" , 0 );
192193 GGML_SYCL_DEBUG (" [SYCL] call ggml_check_sycl\n " );
193194 GGML_LOG_INFO (" Running with Environment Variables:\n " );
You can’t perform that action at this time.
0 commit comments