Displaying 1 result from an estimated 1 matches for "deigen_dont_parallelize".
2014 Sep 26
1
Why is my R package still compiling with the O2 flag?
...compiled with the -o2 flag.
My questions are what is causing my package's cpp code to be compiled in
-o2 and how to fix this?
Here is the content of the src/Makeconf file of my package (it is fairly
standard I believe for a package using RcppEigen):
PKG_CXXFLAGS = -I../inst/include -DEIGEN_DONT_PARALLELIZE
$(SHLIB_OPENMP_CXXFLAGS)
PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"`
$(SHLIB_OPENMP_CXXFLAGS)
CXX_STD = CXX11
and that of rrcov (which I m using for illustration's sake):
PKG_LIBS=$(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)