Skip to content

Commit

Permalink
[SYCL] remove global variables (#7710)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
airMeng authored Jun 15, 2024
1 parent f8ec887 commit 7b2f4a7
Show file tree
Hide file tree
Showing 9 changed files with 4,201 additions and 4,894 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,8 @@ if (LLAMA_SYCL)
endif()

set(GGML_HEADERS_SYCL ggml-sycl.h)
set(GGML_SOURCES_SYCL ggml-sycl.cpp)
file(GLOB GGML_SOURCES_SYCL "ggml-sycl/*.cpp")
list(APPEND GGML_SOURCES_SYCL "ggml-sycl.cpp")

if (WIN32)
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)
Expand Down
Loading

0 comments on commit 7b2f4a7

Please sign in to comment.