From 2545d64cd54506ddbda451855fad567e1eda27ed Mon Sep 17 00:00:00 2001 From: Andreu Date: Thu, 18 Oct 2018 18:44:20 -0400 Subject: [PATCH] Makefile updated to remove discontinued GPU compute capability values from 2012 --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3454404..8b5459f 100644 --- a/Makefile +++ b/Makefile @@ -43,8 +43,10 @@ OPENMPI_PATH = /usr/include/openmpi # Compiler's flags: -CFLAGS = -O3 -use_fast_math -m64 -DUSING_CUDA -DUSING_MPI -I./ -I$(CUDA_PATH) -I$(CUDA_SDK_PATH) -L$(CUDA_SDK_LIB_PATH) -L$(CUDA_LIB_PATH) -lcudart -lm -lz -I$(OPENMPI_PATH) -lmpi --ptxas-options=-v -gencode=arch=compute_13,code=sm_13 -gencode=arch=compute_13,code=compute_13 -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_20,code=compute_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_30,code=compute_30 - +CFLAGS = -O3 -use_fast_math -m64 -DUSING_CUDA -DUSING_MPI -I./ -I$(CUDA_PATH) -I$(CUDA_SDK_PATH) -L$(CUDA_SDK_LIB_PATH) -L$(CUDA_LIB_PATH) -lcudart -lm -lz -I$(OPENMPI_PATH) -lmpi --ptxas-options=-v +# NOTE: you can compile the code for a specific GPU compute capability. For example, for compute capabilities 5.0 and 6.1, use flags: +# -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_61,code=sm_61 + # Command to erase files: RM = /bin/rm -vf