hello all,
I'm facing a similar issue. I have Ubuntu 16.04 running with CUDA 9. I'm trying to compile the latest version of ccminer and I get two errors:
/usr/local/cuda/bin/nvcc -I. -I/usr/local/cuda/include -O3 -lineno -Xcompiler -Wall -D_FORCE_INLINES - gencode=arch=compute_20,code=\"sm_50,compute_50\" -o scrypt/salsa_kernel.o -c scrypt/salsa_kernel.cu
nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified
Makefile:2253: recipe for target 'scrypt/salsa_kernel.o' failed
make[2]: *** [scrypt/salsa_kernel.o] Error 1
make[2]: Leaving directory '/home/laurent/Desktop/Mining/ccminer-1.8.2-tpruvot'
Makefile:1757: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/laurent/Desktop/Mining/ccminer-1.8.2-tpruvot'
Makefile:578: recipe for target 'all' failed
make: *** [all] Error 2
In my makefile.am I have:
nvcc_ARCH = -gencode=arch=compute_50,code=\"sm_50,compute_50\"
nvcc_ARCH += -gencode=arch=compute_52,code=\"sm_52,compute_52\"
#nvcc_ARCH += -gencode=arch=compute_35,code=\"sm_35,compute_35\"
#nvcc_ARCH += -gencode=arch=compute_30,code=\"sm_30,compute_30\"
#nvcc_ARCH += -gencode=arch=compute_20,code=\"sm_21,compute_20\"
the compute_20 is not enabled but I see later on:
scrypt/salsa_kernel.o: scrypt/salsa_kernel.cu
$(NVCC) $(JANSSON_INCLUDES) -I. @CUDA_INCLUDES@ @CUDA_CFLAGS@ - gencode=arch=compute_20,code=\"sm_21,compute_20\" -o $@ -c $<
Somehow it seems to force the compute_20 even if it's in comment at the start of the file.
Any idea of what I should do?
Thanks
[/quote]
You already have CUDA 9 installed.
I mean the cuda 9 version of ccminer.
https://github.com/tpruvot/ccminer/archive/cuda-9.zip[/quote]
Follow what Schleicher said that should fix your issue.. thanks again Schleicher!!!