Open ronlaws86 opened 8 years ago
You will need to change this in about 6 places
sudo nano Makefile
in nano ctrl+w to search (where is) "compute_10" replace all instances with sm_21 or sm_30
make
@32teeth workaround does not work for me
works for me, thx!
@mspanc run nvcc --help
and check what it says about the --gpu-architecture
parameter. It lists the available value for this option, mine is :
'compute_20','compute_30','compute_32',
'compute_35','compute_37','compute_50','compute_52','compute_53','compute_60',
'compute_61','compute_62','sm_20','sm_21','sm_30','sm_32','sm_35','sm_37',
'sm_50','sm_52','sm_53','sm_60','sm_61','sm_62'
You will need to change this in about 6 places
sudo nano Makefile
in nano ctrl+w to search (where is) "compute_10" replace all instances with sm_21 or sm_30
- ctrl+o
- hit (enter)
- ctrl+x
make
You could also quickly do it with a sed and following @wmcmurray tip:
sed -i s/compute_10/VALUE_APPROPIATE_FOR_YOU/ Makefile
nvcc -g -O2 -Xptxas "-abi=no -v" -arch=compute_10 --maxrregcount=64 --ptxas-options=-v -I./compat/jansson -o salsa_kernel.o -c salsa_kernel.cu nvcc fatal : Value 'compute_10' is not defined for option 'gpu-architecture' make[2]: *\ [salsa_kernel.o] Error 1
changing the lines in the Makefile from -arch=compute_10 to sm_21 allows this to compile successfully with cuda 6.5