We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 948f3c5 commit 1c8a949Copy full SHA for 1c8a949
ggml/src/ggml-sycl/CMakeLists.txt
@@ -49,16 +49,13 @@ target_sources(ggml-sycl PRIVATE ${GGML_HEADERS_SYCL} ${GGML_SOURCES_SYCL})
49
find_package(DNNL)
50
message("-- DNNL found:" ${DNNL_FOUND})
51
52
-if (GGML_SYCL_TARGET STREQUAL "INTEL")
+if (${DNNL_FOUND} AND GGML_SYCL_TARGET STREQUAL "INTEL")
53
add_compile_definitions(GGML_SYCL_DNNL=${DNNL_FOUND})
54
+ target_link_libraries(ggml-sycl PRIVATE DNNL::dnnl)
55
else()
56
add_compile_definitions(GGML_SYCL_DNNL=0)
57
endif()
58
-if (${DNNL_FOUND} AND GGML_SYCL_TARGET STREQUAL "INTEL")
59
- target_link_libraries(ggml-sycl PRIVATE DNNL::dnnl)
60
-endif()
61
-
62
find_package(IntelSYCL)
63
if (IntelSYCL_FOUND)
64
# Use oneAPI CMake when possible
0 commit comments