![]() |
QMCPACK
|
For linear algebra only. More...
Public Member Functions | |
OMPThreadCountProtectorLA () | |
~OMPThreadCountProtectorLA () | |
Private Types | |
using | Protector = Concurrency::ThreadCountProtector< Executor::OPENMP > |
Private Attributes | |
std::unique_ptr< Protector > | handle_ |
For linear algebra only.
A service class to restore active avaiable threads upon destruction as the thread count recorded during construction It protects any side effects from linear algebra library calls changing the number of active avaiable threads. Known trouble maker: OpenBLAS https://github.com/xianyi/OpenBLAS/issues/3940
Definition at line 25 of file OMPThreadCountProtectorLA.hpp.
|
private |
Definition at line 27 of file OMPThreadCountProtectorLA.hpp.
Definition at line 17 of file OMPThreadCountProtectorLA.cpp.
References OMPThreadCountProtectorLA::handle_.
|
default |
|
private |
Definition at line 28 of file OMPThreadCountProtectorLA.hpp.
Referenced by OMPThreadCountProtectorLA::OMPThreadCountProtectorLA().