Skip to content

Commit 3ee6382

Browse files
authored
cuda : fix CUDA_FLAGS not being applied (ggml-org#10403)
1 parent 8e752a7 commit 3ee6382

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

ggml/src/ggml-blas/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ if (BLAS_FOUND)
7575

7676
message(STATUS "BLAS found, Includes: ${BLAS_INCLUDE_DIRS}")
7777

78-
#add_compile_options(${BLAS_LINKER_FLAGS})
7978
target_compile_options(ggml-blas PRIVATE ${BLAS_LINKER_FLAGS})
8079

8180
if (${BLAS_INCLUDE_DIRS} MATCHES "mkl" AND (${GGML_BLAS_VENDOR} MATCHES "Generic" OR ${GGML_BLAS_VENDOR} MATCHES "Intel"))

ggml/src/ggml-cuda/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ if (CUDAToolkit_FOUND)
149149
list(APPEND CUDA_FLAGS -Xcompiler ${CUDA_CXX_FLAGS_JOINED})
150150
endif()
151151

152-
add_compile_options("$<$<COMPILE_LANGUAGE:CUDA>:${CUDA_FLAGS}>")
152+
target_compile_options(ggml-cuda PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:${CUDA_FLAGS}>")
153153
else()
154154
message(FATAL_ERROR "CUDA Toolkit not found")
155155
endif()

0 commit comments

Comments
 (0)