one more CMAKE_CXX_FLAGS fix (#9471)

This commit is contained in:
Michael Podvitskiy 2024-09-13 15:13:07 +02:00 committed by GitHub
parent 228df2bc11
commit fb8f142554
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -574,7 +574,7 @@ if (GGML_SYCL)
if (GGML_SYCL_TARGET STREQUAL "INTEL") if (GGML_SYCL_TARGET STREQUAL "INTEL")
list(APPEND GGML_EXTRA_LIBS OpenCL mkl_core pthread m dl mkl_sycl_blas mkl_intel_ilp64 mkl_tbb_thread) list(APPEND GGML_EXTRA_LIBS OpenCL mkl_core pthread m dl mkl_sycl_blas mkl_intel_ilp64 mkl_tbb_thread)
elseif (GGML_SYCL_TARGET STREQUAL "NVIDIA") elseif (GGML_SYCL_TARGET STREQUAL "NVIDIA")
list(APPEND CMAKE_CXX_FLAGS -fsycl-targets=nvptx64-nvidia-cuda) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl-targets=nvptx64-nvidia-cuda")
list(APPEND GGML_EXTRA_LIBS pthread m dl onemkl) list(APPEND GGML_EXTRA_LIBS pthread m dl onemkl)
endif() endif()
endif() endif()