File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 3636void * ggml_sycl_host_malloc (size_t size);
3737void ggml_sycl_host_free (void * ptr);
3838
39- static int g_ggml_sycl_debug = 0 ;
39+ extern int g_ggml_sycl_debug;
4040#define GGML_SYCL_DEBUG (...) \
4141 do { \
4242 if (g_ggml_sycl_debug) \
Original file line number Diff line number Diff line change 4141#include " ggml-sycl/gemm.hpp"
4242
4343static bool g_sycl_loaded = false ;
44+ int g_ggml_sycl_debug = 0 ;
4445
4546static ggml_sycl_device_info ggml_sycl_init () {
4647 ggml_sycl_device_info info = {};
@@ -158,8 +159,8 @@ static void ggml_check_sycl() try {
158159 static bool initialized = false ;
159160
160161 if (!initialized) {
161- GGML_SYCL_DEBUG (" [SYCL] call ggml_check_sycl\n " );
162162 g_ggml_sycl_debug = get_sycl_env (" GGML_SYCL_DEBUG" , 0 );
163+ GGML_SYCL_DEBUG (" [SYCL] call ggml_check_sycl\n " );
163164 GGML_LOG_INFO (" GGML_SYCL_DEBUG: %d\n " , g_ggml_sycl_debug);
164165#if defined(GGML_SYCL_FORCE_MMQ)
165166 GGML_LOG_INFO (" GGML_SYCL_FORCE_MMQ: yes\n " );
You can’t perform that action at this time.
0 commit comments