Skip to content

Commit 1e64d51

Browse files
CUDA: Fix models with output size != 32000
1 parent c574bdd commit 1e64d51

File tree

2 files changed

+249
-75
lines changed

2 files changed

+249
-75
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ if (LLAMA_CUBLAS)
280280
# 52 == lowest CUDA 12 standard
281281
# 60 == f16 CUDA intrinsics
282282
# 61 == integer CUDA intrinsics
283-
# 70 == (assumed) compute capability at which unrolling a loop in mul_mat_q kernels is faster
284-
if (LLAMA_CUDA_DMMV_F16)
283+
# 70 == compute capability at which unrolling a loop in mul_mat_q kernels is faster
284+
if (LLAMA_CUDA_F16 OR LLAMA_CUDA_DMMV_F16)
285285
set(CMAKE_CUDA_ARCHITECTURES "60;61;70") # needed for f16 CUDA intrinsics
286286
else()
287287
set(CMAKE_CUDA_ARCHITECTURES "52;61;70") # lowest CUDA 12 standard + lowest for integer intrinsics

0 commit comments

Comments
 (0)