Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant compile with compute_10 #153

Open
ronlaws86 opened this issue Sep 5, 2015 · 5 comments
Open

Cant compile with compute_10 #153

ronlaws86 opened this issue Sep 5, 2015 · 5 comments

Comments

@ronlaws86
Copy link

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

@32teeth
Copy link

32teeth commented Jan 20, 2016

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

@mspanc
Copy link

mspanc commented Jul 21, 2016

@32teeth workaround does not work for me

@sequencer
Copy link

works for me, thx!

@wmcmurray
Copy link

@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'

@joshuamsalazar
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants