R gputools: gcc: error: unrecognized command line option ‘-Wp’ -
i had error when install gputools
in r, , cannot find solution google. use command install.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 package ‘gputools’
can me here? gpu cards given by
01:00.0 vga compatible controller: nvidia corporation gm107gl [quadro k620] (rev a2)
ok, got working couple hacks. centos 7.
first issue solved looking @ mailing list. https://github.com/nullsatz/gputools/issues/12
edit makefile, , modify line 'cflags : put '\' after 'wp' & 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
second problem r shared lib not being found. tried setting ld_library_path in driver configuration file, , on command line, did not work.
i ended following hack:
cd /usr/local/cuda/lib64 && ln -s /usr/lib64/r/lib/libr.so libr.so
i used command following build (note tar.gz file contains modified makefile)
r cmd install --configure-args="--with-nvcc=/usr/local/cuda/bin/nvcc --with-r-lib=/usr/lib64/" ./gputools_1.0.tar.gz
i know ugly, seems work.
Comments
Post a Comment