SLATE 2024.05.31
Software for Linear Algebra Targeting Exascale
Loading...
Searching...
No Matches
slate::OmpSetMaxActiveLevels Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ OmpSetMaxActiveLevels()

slate::OmpSetMaxActiveLevels::OmpSetMaxActiveLevels ( int  min_active_levels)
inline

Require omp nested levels to have a minimum value.

Parameters
[in]min_active_levelsEnsure that OpenMP max-active-levels-var ICV has this minimum.

The documentation for this class was generated from the following file: