Skip to content

Commit 14cf2b9

Browse files
committed
Document possible use of -fopenmp
1 parent 7ef8e86 commit 14cf2b9

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
* src/RcppExports.cpp: Regenerated
99
* R/RcppExports.R: Idem
1010

11+
* src/Makevars: Document possible use of '-fopenmp'
12+
* src/Makevars.win: Idem
13+
1114
2023-04-18 Dirk Eddelbuettel <[email protected]>
1215

1316
* README.md: Use app.codecov.io as base for codecov link

src/Makevars

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## -*- mode: makefile; -*-
22

3+
## One could add '-fopenmp' here (and below) for multithreaded operations
34
PKG_CXXFLAGS = -I../inst/include
45

5-
## With Rcpp 0.11.0 and later, we no longer need to set PKG_LIBS for
6-
## Rcpp as there is no user-facing library.
6+
## One could add '-fopenmp' here (and above) for multithreaded operations
77
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
88

9-
## With R 3.1.0 or later, you can uncomment the following line to tell R to
10-
## enable compilation with C++11 (where available)
11-
#USE_CXX1X =
9+
## We are not enabling multithreaded operations by default because this would be
10+
## a change in behaviour that would like create trouble for packages using RcppEigen
11+
## as CRAN tests of those packages may seen use of more than two cores and protest

src/Makevars.win

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## -*- mode: makefile; -*-
22

3+
## One could add '-fopenmp' here (and below) for multithreaded operations
34
PKG_CXXFLAGS = -I../inst/include
45

5-
## With Rcpp 0.11.0 and later, we no longer need to set PKG_LIBS for
6-
## Rcpp as there is no user-facing library.
6+
## One could add '-fopenmp' here (and above) for multithreaded operations
77
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
88

9-
## With R 3.1.0 or later, you can uncomment the following line to tell R to
10-
## enable compilation with C++11 (where available)
11-
#USE_CXX1X =
9+
## We are not enabling multithreaded operations by default because this would be
10+
## a change in behaviour that would like create trouble for packages using RcppEigen
11+
## as CRAN tests of those packages may seen use of more than two cores and protest

0 commit comments

Comments
 (0)