I'm trying to compile tpruvot's ccminer, but make breaks. Something about
Algo256/cuda_blake256.cu(28): warning: expression has no effect
Algo256/cuda_blake256.cu(28): error: expected a ")"I'm testing this with a Quadro K2000M (which is a compute 3.0 card), nvidia drivers 346.72 and CUDA 6.5, on Xubuntu 14.04.
A few lines before the error I can see things like
/usr/local/cuda/bin/nvcc -gencode=arch=compute_50,code=\"sm_50,compute_50\" -I/usr/local/cuda/include -I. -O3 -lineno -Xcompiler -Wall --ptxas-options="-v" --maxrregcount=128 -o Algo256/cuda_groestl256.o -c Algo256/cuda_groestl256.cucompute_50 is not correct, right? Could this be the reason? In configure.sh there are a few commented alternatives for different compute cards, like
# possible additional CUDA_CFLAGS
#-gencode=arch=compute_50,code=\"sm_50,compute_50\"
#-gencode=arch=compute_35,code=\"sm_35,compute_35\"
#-gencode=arch=compute_30,code=\"sm_30,compute_30\"
but I can't seem to find the correct syntax to add one of these to CUDA_CFLAGS, which is by default
CUDA_CFLAGS="-O3 -lineno -Xcompiler -Wall" ./configure CXXFLAGS="-O3 $extracflags" --with-cuda=/usr/local/cuda --with-nvml=libnvidia-ml.so
I guess all the "" confuses me. Could anyone help with this please? Thanks.