From 9eceb1a005f3cb9a3c953b9b79d4c3c19fc25d85 Mon Sep 17 00:00:00 2001 From: Michael Podvitskiy Date: Fri, 13 Sep 2024 12:10:20 +0200 Subject: [PATCH] try fix sycl build --- ggml/src/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ggml/src/CMakeLists.txt b/ggml/src/CMakeLists.txt index 67902edf4..726a13a33 100644 --- a/ggml/src/CMakeLists.txt +++ b/ggml/src/CMakeLists.txt @@ -538,7 +538,7 @@ if (GGML_SYCL) add_compile_definitions(GGML_SYCL_FORCE_MMQ) endif() - list(APPEND CMAKE_CXX_FLAGS -Wno-narrowing) + list(APPEND CMAKE_CXX_FLAGS -Wno-narrowing -fsycl) if (GGML_SYCL_TARGET STREQUAL "NVIDIA") add_compile_definitions(GGML_SYCL_WARP_SIZE=32) @@ -565,14 +565,14 @@ if (GGML_SYCL) list(APPEND GGML_EXTRA_LIBS IntelSYCL::SYCL_CXX MKL::MKL MKL::MKL_SYCL) else() if (GGML_SYCL_TARGET STREQUAL "INTEL") - list(APPEND GGML_EXTRA_LIBS -fsycl OpenCL mkl_core pthread m dl mkl_sycl_blas mkl_intel_ilp64 mkl_tbb_thread) + list(APPEND GGML_EXTRA_LIBS OpenCL mkl_core pthread m dl mkl_sycl_blas mkl_intel_ilp64 mkl_tbb_thread) elseif (GGML_SYCL_TARGET STREQUAL "NVIDIA") list(APPEND CMAKE_CXX_FLAGS -fsycl-targets=nvptx64-nvidia-cuda) - list(APPEND GGML_EXTRA_LIBS -fsycl pthread m dl onemkl) + list(APPEND GGML_EXTRA_LIBS pthread m dl onemkl) endif() endif() if (${DNNL_FOUND} AND GGML_SYCL_TARGET STREQUAL "INTEL") - list(APPEND GGML_EXTRA_LIBS -fsycl DNNL::dnnl) + list(APPEND GGML_EXTRA_LIBS DNNL::dnnl) endif() endif()