R gputools: gcc: error: unrecognized command line option '-Wp

I got an error while installing gputoolsin R and I can not find google solution. I use the commandinstall.packages("gputools")

  /usr/local/cuda/bin/nvcc -c -Xcompiler "-fpic -I/usr/local/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic" -I. -I"/usr/local/cuda/include" -I"/usr/lib64/R/include" rinterface.cu -o rinterface.o
gcc: error: unrecognized command line option ‘-Wp’
make: *** [rinterface.o] Error 1
ERROR: compilation failed for package ‘gputools’

Can someone help me here? My gpu cards are given

01:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Quadro K620] (rev a2)
+4
source share
2 answers

Ok, I got this job with a few hacks. This is for centos 7.

The first problem was resolved by viewing the mailing list. https://github.com/nullsatz/gputools/issues/12

Edit the Makefile and change the line 'CFLAGS: put' \ 'after' Wp 'and before', '

CFLAGS = -O2 -g -pipe -Wall -Werror = format-security -Wp \, - D_FORTIFY_SOURCE = 2 -fexceptions -fstack-protector-strong --param = ssp-buffer-size = 4 -grecord-gcc -switches -m64 -mtune = generic

, R shared lib . LD_LIBRARY_PATH , .

:

cd/usr/local/cuda/lib64 && & ln -s/usr/lib64/R/lib/libR.so libR.so

( , tar.gz Makefile)

R CMD INSTALL --configure-args = "- with-nvcc =/usr/local/cuda/bin/nvcc --with-r-lib =/usr/lib64/". /gputools _1. 0.tar.gz

, , , , .

+4

, make

-Wp,-D_FORTIFY_SOURCE=2

, (',') ('').

, , , .

-1

All Articles