]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
cmake : fix sycl build (#0)
authorGeorgi Gerganov <redacted>
Sun, 16 Jun 2024 14:57:35 +0000 (17:57 +0300)
committerGeorgi Gerganov <redacted>
Sun, 16 Jun 2024 15:19:48 +0000 (18:19 +0300)
CMakeLists.txt

index c25e93a39c06c22426207ff1911f603b5062823a..6c3429711d155d4ca9b1c45966ab8d245a44424b 100644 (file)
@@ -487,7 +487,8 @@ if (WHISPER_SYCL)
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl -L${MKLROOT}/lib")
 
     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")
 
     set(WHISPER_EXTRA_LIBS ${WHISPER_EXTRA_LIBS} sycl OpenCL mkl_core pthread m dl mkl_sycl_blas mkl_intel_ilp64 mkl_tbb_thread)
 endif()