SLATE 2024.05.31
Software for Linear Algebra Targeting Exascale
|
Constructor ensures that OpenMP max-active-levels-var ICV has a minimum value; destructor resets original value. More...
#include <OmpSetMaxActiveLevels.hh>
Public Member Functions | |
OmpSetMaxActiveLevels (int min_active_levels) | |
Require omp nested levels to have a minimum value. | |
~OmpSetMaxActiveLevels () | |
Reset omp nested levels variable. | |
Constructor ensures that OpenMP max-active-levels-var ICV has a minimum value; destructor resets original value.
This provides safety in case an exception is thrown, which would otherwise by-pass the reset.
|
inline |
Require omp nested levels to have a minimum value.
[in] | min_active_levels | Ensure that OpenMP max-active-levels-var ICV has this minimum. |