Skip to content

Commit c684e9b

Browse files
committed
only omp 5.0
1 parent 184673f commit c684e9b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

modules/core/task/include/task.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ class Task {
179179
} else {
180180
functions_order_.clear();
181181
}
182+
#if _OPENMP >= 201811
182183
omp_pause_resource_all(omp_pause_soft);
184+
#endif
183185
}
184186

185187
protected:

0 commit comments

Comments
 (0)