cbuchner1 / CudaMiner

a CUDA accelerated litecoin mining application based on pooler's CPU miner
Other
687 stars 304 forks source link

Cant compile with compute_10 #153

Open ronlaws86 opened 8 years ago

ronlaws86 commented 8 years ago

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 commented 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
mspanc commented 8 years ago

@32teeth workaround does not work for me

sequencer commented 7 years ago

works for me, thx!

wmcmurray commented 7 years ago

@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 commented 3 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

  • 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