cmake cuda: fix

This commit is contained in:
clibdev 2024-02-17 11:27:31 +02:00
parent 5bf2b94dd4
commit ce4a979c90

View file

@ -767,9 +767,10 @@ endif()
set(CUDA_CXX_FLAGS "")
if (LLAMA_CUBLAS)
set(CUDA_FLAGS ${CXX_FLAGS} -use_fast_math)
set(CUDA_FLAGS -use_fast_math)
list(APPEND CUDA_CXX_FLAGS ${CXX_FLAGS})
if (NOT MSVC)
list(APPEND CUDA_FLAGS -Wno-pedantic)
list(APPEND CUDA_CXX_FLAGS -Wno-pedantic)
endif()
if (LLAMA_ALL_WARNINGS AND NOT MSVC)