Skip to content

Commit 8f7c98b

Browse files
author
Aidan
committed
Fix errors
1 parent 9745ac3 commit 8f7c98b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,11 +569,10 @@ if (LLAMA_SYCL)
569569
if (WIN32)
570570
set(LLAMA_EXTRA_LIBS ${LLAMA_EXTRA_LIBS} -fsycl sycl7 OpenCL mkl_sycl_blas_dll.lib mkl_intel_ilp64_dll.lib mkl_sequential_dll.lib mkl_core_dll.lib)
571571
else()
572-
if (LLAMA_SYCL_BACKEND STREQUAL "INTEL")
572+
if (LLAMA_SYCL_TARGET STREQUAL "INTEL")
573573
set(LLAMA_EXTRA_LIBS ${LLAMA_EXTRA_LIBS} -fsycl OpenCL mkl_core pthread m dl mkl_sycl_blas mkl_intel_ilp64 mkl_tbb_thread)
574574
elseif (LLAMA_SYCL_TARGET STREQUAL "NVIDIA")
575575
set(LLAMA_EXTRA_LIBS ${LLAMA_EXTRA_LIBS} -fsycl pthread m dl onemkl)
576-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl-targets=nvptx64-nvidia-cuda")
577576
endif()
578577
endif()
579578
endif()

0 commit comments

Comments
 (0)