File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -539,8 +539,7 @@ if (GGML_SYCL)
539
539
add_compile_definitions (GGML_SYCL_FORCE_MMQ )
540
540
endif ()
541
541
542
- add_link_options (-fsycl )
543
- add_compile_options (-fsycl -Wno-narrowing )
542
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-narrowing -fsycl" )
544
543
545
544
if (GGML_SYCL_TARGET STREQUAL "NVIDIA" )
546
545
add_compile_definitions (GGML_SYCL_WARP_SIZE=32 )
@@ -575,10 +574,13 @@ if (GGML_SYCL)
575
574
if (GGML_SYCL_TARGET STREQUAL "INTEL" )
576
575
list (APPEND GGML_EXTRA_LIBS OpenCL mkl_core pthread m dl mkl_sycl_blas mkl_intel_ilp64 mkl_tbb_thread )
577
576
elseif (GGML_SYCL_TARGET STREQUAL "NVIDIA" )
578
- add_compile_options ( -fsycl-targets=nvptx64-nvidia-cuda )
577
+ list ( APPEND CMAKE_CXX_FLAGS -fsycl-targets=nvptx64-nvidia-cuda )
579
578
list (APPEND GGML_EXTRA_LIBS pthread m dl onemkl )
580
579
endif ()
581
580
endif ()
581
+ if (${DNNL_FOUND} AND GGML_SYCL_TARGET STREQUAL "INTEL" )
582
+ list (APPEND GGML_EXTRA_LIBS DNNL::dnnl )
583
+ endif ()
582
584
endif ()
583
585
584
586
if (GGML_RPC )
You can’t perform that action at this time.
0 commit comments