Gputools install failed - "Unknown option 'framework'"

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

- , ?

+4
3

, gputools 1.0 . R 3.2.2.

platform       x86_64-apple-darwin15.0.0   
arch           x86_64                      
os             darwin15.0.0                
system         x86_64, darwin15.0.0        
status                                     
major          3                           
minor          2.2                         
year           2015                        
month          08                          
day            14                          
svn rev        69053                       
language       R                           
version.string R version 3.2.2 (2015-08-14)
nickname       Fire Safety   
+2

. , . , . - GeForce GT 750M 3,0 CUDA.

gputools_0.28.tar.gz . 19 src/Makefile:

NVCC := $(CUDA_HOME)/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

:

NVCC := $(CUDA_HOME)/bin/nvcc -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30

,

R CMD INSTALL gputools

gputools - , .

R

platform       x86_64-apple-darwin13.4.0   
arch           x86_64                      
os             darwin13.4.0                
system         x86_64, darwin13.4.0        
status                                     
major          3                           
minor          2.2                         
year           2015                        
month          08                          
day            14                          
svn rev        69053                       
language       R                           
version.string R version 3.2.2 (2015-08-14)
nickname       Fire Safety     
+1

"framework" , , . . Unsupported gpu architecture, ,

tar -xzvf gputools_0.28.tar.gz

Makefile

vi gputools/src/Makefile

nvidia

-gencode arch=compute_20,code=sm_20
-gencode arch=compute_30,code=sm_30
-gencode arch=compute_35,code=sm_35
-gencode arch=compute_50,code=sm_50
-gencode arch=compute_52,code=sm_52
-gencode arch=compute_52,code=compute_52

- NVidia. , .

tar.gz

tar -czvf my_gputools_0.28.tar.gz gputools
R CMD build gputools && R CMD INSTALL gputools_0.28.tar.gz

,

export CUDA_HOME=/usr/local/cuda/5.0
export LD_LIBRARY_PATH=/usr/local/cuda/5.0/lib64:$LD_LIBRARY_PATH`

At this point, if you get an exception Unknown option 'framework', it seems that the nvcc command-line option has changed a bit. Look again in the makefile and find ${shell R CMD config BLAS_LIBS}. This is the part that inserted the parameter -framework <value>for me. You can verify your configuration simply by running the command R CMD config BLAS_LIBS. A new command to enable frameworks -

-Xlinker -framework,<value>

More information on this page Nvidia

0
source

All Articles