Build with correct CUDA release flags

This commit is contained in:
Sigbjørn Skjæret 2024-05-09 15:23:22 +02:00 committed by GitHub
parent a743d76a01
commit 280c93a429
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -868,6 +868,7 @@ if (LLAMA_ALL_WARNINGS)
endif() endif()
set(CUDA_CXX_FLAGS "") set(CUDA_CXX_FLAGS "")
set(CMAKE_CUDA_FLAGS_RELEASE "-O3 -DNDEBUG")
if (LLAMA_CUDA) if (LLAMA_CUDA)
set(CUDA_FLAGS -use_fast_math) set(CUDA_FLAGS -use_fast_math)