cmake : try fix sycl

This commit is contained in:
Georgi Gerganov 2024-09-13 12:41:33 +03:00
parent 19ecca1946
commit ae9475de40
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

View File

@ -538,7 +538,7 @@ if (GGML_SYCL)
add_compile_definitions(GGML_SYCL_FORCE_MMQ)
endif()
list(APPEND CMAKE_CXX_FLAGS -Wno-narrowing -fsycl)
list(APPEND CMAKE_CXX_FLAGS -Wno-narrowing)
if (GGML_SYCL_TARGET STREQUAL "NVIDIA")
add_compile_definitions(GGML_SYCL_WARP_SIZE=32)
@ -572,7 +572,7 @@ if (GGML_SYCL)
endif()
endif()
if (${DNNL_FOUND} AND GGML_SYCL_TARGET STREQUAL "INTEL")
list(APPEND GGML_EXTRA_LIBS DNNL::dnnl)
list(APPEND GGML_EXTRA_LIBS -fsycl DNNL::dnnl)
endif()
endif()