File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -572,12 +572,10 @@ if (GGML_SYCL)
572
572
list (APPEND GGML_EXTRA_LIBS_PRIVATE IntelSYCL::SYCL_CXX MKL::MKL MKL::MKL_SYCL )
573
573
else ()
574
574
if (GGML_SYCL_TARGET STREQUAL "INTEL" )
575
- set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsycl" )
576
- list (APPEND GGML_EXTRA_LIBS_PRIVATE OpenCL mkl_core pthread m dl mkl_sycl_blas mkl_intel_ilp64 mkl_tbb_thread )
575
+ list (APPEND GGML_EXTRA_LIBS_PRIVATE sycl OpenCL mkl_core pthread m dl mkl_sycl_blas mkl_intel_ilp64 mkl_tbb_thread )
577
576
elseif (GGML_SYCL_TARGET STREQUAL "NVIDIA" )
578
- set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsycl" )
579
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl-targets=nvptx64-nvidia-cuda" )
580
- list (APPEND GGML_EXTRA_LIBS_PRIVATE pthread m dl onemkl )
577
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl-targets=nvptx64-nvidia-cuda" )
578
+ list (APPEND GGML_EXTRA_LIBS_PRIVATE sycl pthread m dl onemkl )
581
579
endif ()
582
580
endif ()
583
581
endif ()
You can’t perform that action at this time.
0 commit comments