mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-29 07:34:18 +01:00
cmake : try fix sycl
This commit is contained in:
parent
19ecca1946
commit
ae9475de40
@ -538,7 +538,7 @@ if (GGML_SYCL)
|
|||||||
add_compile_definitions(GGML_SYCL_FORCE_MMQ)
|
add_compile_definitions(GGML_SYCL_FORCE_MMQ)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
list(APPEND CMAKE_CXX_FLAGS -Wno-narrowing -fsycl)
|
list(APPEND CMAKE_CXX_FLAGS -Wno-narrowing)
|
||||||
|
|
||||||
if (GGML_SYCL_TARGET STREQUAL "NVIDIA")
|
if (GGML_SYCL_TARGET STREQUAL "NVIDIA")
|
||||||
add_compile_definitions(GGML_SYCL_WARP_SIZE=32)
|
add_compile_definitions(GGML_SYCL_WARP_SIZE=32)
|
||||||
@ -572,7 +572,7 @@ if (GGML_SYCL)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if (${DNNL_FOUND} AND GGML_SYCL_TARGET STREQUAL "INTEL")
|
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()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user