Skip to content

Commit 7b2f4a7

Browse files
authored
[SYCL] remove global variables (#7710)
* separate DPCT helpers outside * replace global variables with context * remove useless extra * update mul_mat condition * remove duplicate buft initialization * remove duplicate extra and global work group size * remove useless backend check * remove duplicated extras * use macro for group_size and remove cuda-related
1 parent f8ec887 commit 7b2f4a7

File tree

9 files changed

+4201
-4894
lines changed

9 files changed

+4201
-4894
lines changed

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,8 @@ if (LLAMA_SYCL)
684684
endif()
685685

686686
set(GGML_HEADERS_SYCL ggml-sycl.h)
687-
set(GGML_SOURCES_SYCL ggml-sycl.cpp)
687+
file(GLOB GGML_SOURCES_SYCL "ggml-sycl/*.cpp")
688+
list(APPEND GGML_SOURCES_SYCL "ggml-sycl.cpp")
688689

689690
if (WIN32)
690691
set(LLAMA_EXTRA_LIBS ${LLAMA_EXTRA_LIBS} -fsycl sycl7 OpenCL mkl_sycl_blas_dll.lib mkl_intel_ilp64_dll.lib mkl_sequential_dll.lib mkl_core_dll.lib)

0 commit comments

Comments
 (0)