use dnnl for intel only

This commit is contained in:
luoyu-intel 2024-08-19 17:02:53 +08:00
parent 267af4e75d
commit af1b276a34

View file

@ -551,7 +551,11 @@ if (GGML_SYCL)
find_package(DNNL)
message("-- DNNL found:"${DNNL_FOUND})
add_compile_definitions(GGML_SYCL_DNNL=${DNNL_FOUND})
if (GGML_SYCL_TARGET STREQUAL "INTEL")
add_compile_definitions(GGML_SYCL_DNNL=${DNNL_FOUND})
else()
add_compile_definitions(GGML_SYCL_DNNL=0)
endif()
if (WIN32)
find_package(IntelSYCL REQUIRED)
find_package(MKL REQUIRED)