Skip to content

Commit 280c93a

Browse files
authored
Build with correct CUDA release flags
1 parent a743d76 commit 280c93a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,7 @@ if (LLAMA_ALL_WARNINGS)
868868
endif()
869869

870870
set(CUDA_CXX_FLAGS "")
871+
set(CMAKE_CUDA_FLAGS_RELEASE "-O3 -DNDEBUG")
871872

872873
if (LLAMA_CUDA)
873874
set(CUDA_FLAGS -use_fast_math)

0 commit comments

Comments
 (0)