class gpr::linalg::ScopedSolveThreads¶
Overview¶
Raises the BLAS thread count to the kernel-block worker count for the scope of a large dense solve and restores it afterwards. More…
#include <gpr/linalg/ScalapackBackend.h>
class ScopedSolveThreads {
public:
// construction
ScopedSolveThreads();
ScopedSolveThreads(const ScopedSolveThreads&);
~ScopedSolveThreads();
// methods
ScopedSolveThreads& operator=(const ScopedSolveThreads&);
static int solveThreadTarget();
};
Detailed Documentation¶
Raises the BLAS thread count to the kernel-block worker count for the scope of a large dense solve and restores it afterwards.
Methods¶
static int solveThreadTarget()
Kernel workers can be reassigned to a dense solve. CPU affinity caps that budget; it does not grant every rank all CPUs in an allocation.