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)
572572 list (APPEND GGML_EXTRA_LIBS_PRIVATE IntelSYCL::SYCL_CXX MKL::MKL MKL::MKL_SYCL)
573573 else ()
574574 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)
577576 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)
581579 endif ()
582580 endif ()
583581endif ()
You can’t perform that action at this time.
0 commit comments