Skip to content

Commit

Permalink
Update sn3d.h
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Nov 19, 2024
1 parent c2367f1 commit 805909f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sn3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ inline char outputlinebuf[1024] = "";
inline bool outputstartofline = true;
inline tm timebuf{};

#ifndef GPU_ON
#pragma omp threadprivate(stdrng, output_file, outputlinebuf, outputstartofline, timebuf)
#endif

// if not set, force Simpson integrator on GPU mode (since gsl doesn't work there!)
#ifndef USE_SIMPSON_INTEGRATOR
#define USE_SIMPSON_INTEGRATOR false
Expand All @@ -93,10 +97,6 @@ inline thread_local auto gslworkspace =

#ifdef _OPENMP

#ifndef GPU_ON
#pragma omp threadprivate(stdrng, output_file, outputlinebuf, outputstartofline, timebuf)
#endif

#endif

#ifdef __NVCOMPILER_CUDA_ARCH__
Expand Down

0 comments on commit 805909f

Please sign in to comment.