Skip to content

Commit af1b276

Browse files
committed
use dnnl for intel only
1 parent 267af4e commit af1b276

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ggml/src/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,11 @@ if (GGML_SYCL)
551551

552552
find_package(DNNL)
553553
message("-- DNNL found:"${DNNL_FOUND})
554-
add_compile_definitions(GGML_SYCL_DNNL=${DNNL_FOUND})
554+
if (GGML_SYCL_TARGET STREQUAL "INTEL")
555+
add_compile_definitions(GGML_SYCL_DNNL=${DNNL_FOUND})
556+
else()
557+
add_compile_definitions(GGML_SYCL_DNNL=0)
558+
endif()
555559
if (WIN32)
556560
find_package(IntelSYCL REQUIRED)
557561
find_package(MKL REQUIRED)

0 commit comments

Comments
 (0)