Skip to content

Commit

Permalink
updating makevars
Browse files Browse the repository at this point in the history
  • Loading branch information
michellepistner committed May 16, 2024
1 parent 02f9e0e commit 4097b97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/Makevars.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
## CXX_STD = CXX11

## For standard
PKG_CXXFLAGS = -I../inst/include/ @OPENMP_FLAG@
PKG_LIBS = @OPENMP_FLAG@
PKG_CPPFLAGS = -I../inst/include/
PKG_CXXFLAGS = @OPENMP_FLAG@
PKG_LIBS = @OPENMP_FLAG@

## For MKL - make sure you are using icc compiler in ~.R/Makevars
# Using GCC -- PREFERRED for MKL
Expand Down
5 changes: 2 additions & 3 deletions src/PibbleCollapsed_Uncollapse_sigmaKnown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,9 @@ List uncollapsePibble_sigmaKnown(const Eigen::Map<Eigen::VectorXd> eta, // note
#endif
#pragma omp parallel shared(D, N, Q, LambdaDraw0)
{
#ifdef FIDO_USE_PARALLEL
boost::random::mt19937 rng(omp_get_thread_num()+seed);
#else
boost::random::mt19937 rng(seed);
#ifdef FIDO_USE_PARALLEL
rng.discard(omp_get_thread_num()*iter);
#endif
// storage for computation
MatrixXd LambdaN(D-1, Q);
Expand Down

0 comments on commit 4097b97

Please sign in to comment.