Skip to content

Commit 8d371df

Browse files
authored
Set omp_wait_policy=passive
1 parent 568e3f6 commit 8d371df

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/jigsaw.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,6 +1133,8 @@
11331133

11341134
# ifdef __lib_jigsaw
11351135

1136+
# include <cstdlib>
1137+
11361138
# include "liblib/init_jig_t.hpp"
11371139
# include "liblib/init_msh_t.hpp"
11381140

@@ -1170,6 +1172,8 @@
11701172
__unreferenced(_time) ; // why does MSVC need this??
11711173
# endif//__use_timers
11721174

1175+
putenv("OMP_WAIT_POLICY=PASSIVE");
1176+
11731177
/*--------------------------------- init. geo. kernel */
11741178
mp_float::exactinit() ;
11751179

@@ -1590,6 +1594,8 @@
15901594

15911595
# if defined(__cmd_jigsaw)
15921596

1597+
# include <cstdlib>
1598+
15931599
__normal_call iptr_type main ( // cmd-jigsaw
15941600
int _argc ,
15951601
char **_argv
@@ -1612,6 +1618,8 @@
16121618
__unreferenced(_time) ; // why does MSVC need this??
16131619
# endif//__use_timers
16141620

1621+
putenv("OMP_WAIT_POLICY=PASSIVE");
1622+
16151623
/*--------------------------------- init. geo. kernel */
16161624
mp_float::exactinit() ;
16171625

0 commit comments

Comments
 (0)