use dnnl for intel only
This commit is contained in:
parent
267af4e75d
commit
af1b276a34
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue