Skip to content

Commit b5badf7

Browse files
committed
Add CUDA gencode for all 2x & 3x arch compute capability combinations
1 parent 2b583e8 commit b5badf7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile.config

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
# CHANGE YOUR CUDA PATH IF IT IS NOT THIS
33
CUDA_DIR := /usr/local/cuda
44
# CHANGE YOUR CUDA ARCH IF IT IS NOT THIS
5-
CUDA_ARCH := -arch=sm_30
5+
CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
6+
-gencode arch=compute_20,code=sm_21 \
7+
-gencode arch=compute_30,code=sm_30 \
8+
-gencode arch=compute_35,code=sm_35
69
# CHANGE YOUR MKL PATH IF IT IS NOT THIS
710
MKL_DIR := /opt/intel/mkl
811
# CHANGE YOUR MATLAB PATH IF IT IS NOT THIS

0 commit comments

Comments
 (0)