I am trying to install a package r gputoolson my computer. I installed CUDA and correctly installed the PATH patch files, as said here .
When compiling the package, I first got the error
/usr/local/cuda/bin/nvcc -gencode arch=compute_10,code=sm_10 -gencode arch=compute_13,code=sm_13 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -c -I. -I"/usr/local/cuda/include" -I"/usr/local/Cellar/r/3.1.0/R.framework/Resources/include" -m64 -Xcompiler -fPIC rinterface.cu -o rinterface.o
nvcc fatal : Unsupported gpu architecture 'compute_10'
I solved this by removing -gencode arch=compute_10,code=sm_10from the makefile gputools(found this simple solution here ).
Now it compiles some things in about 30 seconds and then ends with the following error:
/usr/local/cuda/bin/nvcc -gencode arch=compute_13,code=sm_13 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -shared -m64 -Xlinker '-rpath /usr/local/cuda/lib -F/usr/local/Cellar/r/3.1.0/R.framework/Resources/.. -framework R' -L"/usr/local/Cellar/r/3.1.0/R.framework/Resources/lib" -L"/usr/local/cuda/lib" -lcublas -framework Accelerate rinterface.o mi.o sort.o granger.o qrdecomp.o correlation.o hcluster.o distance.o matmult.o lsfit.o kendall.o cuseful.o -o gputools.so
nvcc fatal : Unknown option 'framework'
make: *** [gputools.so] Error 1
ERROR: compilation failed for package ‘gputools’
* removing ‘/usr/local/Cellar/r/3.1.0/R.framework/Versions/3.1/Resources/library/gputools’
Full console output can be found here . I am lost on this, there is only one occurrence -frameworkin the file config.mk, which R_FRAMEWORK := -F$(R_HOME)/.. -framework Reven deleting -framework Rdoes not matter.
. R CMD build gputools && R CMD INSTALL gputools_0.28.tar.gz
- , ?