Skip to content

Commit 96f4681

Browse files
committed
Fixed gencode flags.
1 parent de2950b commit 96f4681

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • posts/cuda-aware-mpi-example/src

posts/cuda-aware-mpi-example/src/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ MPICFLAGS=-I${MPI_HOME}/include
1818
CUDACFLAGS=-I${CUDA_INSTALL_PATH}/include
1919

2020
GENCODE_SM13 := -gencode arch=compute_13,code=sm_13
21-
GENCODE_SM20 := -gencode arch=compute_20,code=\"sm_20,compute_20\"
21+
GENCODE_SM20 := -gencode arch=compute_20,code=sm_20
2222
GENCODE_SM30 := -gencode arch=compute_30,code=sm_30
23-
GENCODE_SM35 := -gencode arch=compute_35,code=sm_35
24-
GENCODE_FLAGS := $(GENCODE_SM13) $(GENCODE_SM20)
23+
GENCODE_SM35 := -gencode arch=compute_35,code=\"sm_35,compute_35\"
24+
GENCODE_FLAGS := $(GENCODE_SM13) $(GENCODE_SM20) $(GENCODE_SM30) $(GENCODE_SM35)
2525

2626
NVCCFLAGS=-O3 $(GENCODE_FLAGS) -Xcompiler -march=native
2727

0 commit comments

Comments
 (0)