Ralf Stubner
2018-05-18 07:53:17 UTC
using -Xcompiler and removing some flag from $(shell $(R_HOME)/bin/R CMD
config CXXFLAGS) I tryed to make nvcc recognize all the gcc command but
I don't know if this allow nvcc run it perfectly. When running "make"
nvcc parallel_for.cpp --std=c++11 -I../ -I../../ -I/usr/share/R/include
-I/home/pesco/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include
-I/home/pesco/R/x86_64-pc-linux-gnu-library/3.2/RInside/include -gÂ
-Xcompiler -fstack-protector-strong -Xcompiler -Wformat -Xcompiler
-Wdate-time -Xcompiler -D_FORTIFY_SOURCE=2 -O3 -g -DDEBUG -G
-D_FORCE_INLINES --expt-extended-lambda -x cu -o parallel_for_device
[...]> /tmp/tmpxft_00000456_00000000-10_parallel_for.o: nella funzioneconfig CXXFLAGS) I tryed to make nvcc recognize all the gcc command but
I don't know if this allow nvcc run it perfectly. When running "make"
nvcc parallel_for.cpp --std=c++11 -I../ -I../../ -I/usr/share/R/include
-I/home/pesco/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include
-I/home/pesco/R/x86_64-pc-linux-gnu-library/3.2/RInside/include -gÂ
-Xcompiler -fstack-protector-strong -Xcompiler -Wformat -Xcompiler
-Wdate-time -Xcompiler -D_FORTIFY_SOURCE=2 -O3 -g -DDEBUG -G
-D_FORCE_INLINES --expt-extended-lambda -x cu -o parallel_for_device
riferimento non definito a "REprintf"
In the compiler/linker call you are missing at least something like"-L/usr/lib/R/lib -lR", which is part of $(LDLIBS) via $(RLDFLAGS). Try
to include $(LDLIBS) in the command used for compilation and linking.
Greetings
Ralf
--
Ralf Stubner
Senior Software Engineer / Trainer
daqana GmbH
DortustraÃe 48
14467 Potsdam
T: +49 331 23 70 81 66
F: +49 331 23 70 81 67
M: +49 162 20 91 196
Mail: ***@daqana.com
Sitz: Potsdam
Register: AG Potsdam HRB 27966 P
Ust.-IdNr.: DE300072622
GeschÀftsfÌhrer: Prof. Dr. Dr. Karl-Kuno Kunze