.. index:: pair: class; gpr::linalg::ScopedSolveThreads .. _doxid-classgpr_1_1linalg_1_1_scoped_solve_threads: class gpr::linalg::ScopedSolveThreads ===================================== .. toctree:: :hidden: Overview ~~~~~~~~ Raises the BLAS thread count to the kernel-block worker count for the scope of a large dense solve and restores it afterwards. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class ScopedSolveThreads { public: // construction :target:`ScopedSolveThreads`(); :target:`ScopedSolveThreads`(const ScopedSolveThreads&); :target:`~ScopedSolveThreads`(); // methods :ref:`ScopedSolveThreads`& :target:`operator=`(const :ref:`ScopedSolveThreads`&); static int :ref:`solveThreadTarget`(); }; .. _details-classgpr_1_1linalg_1_1_scoped_solve_threads: 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 ------- .. index:: pair: function; solveThreadTarget .. _doxid-classgpr_1_1linalg_1_1_scoped_solve_threads_1a26e2922b6edc353f7c5eea78e4c6ea0a: .. ref-code-block:: cpp :class: doxyrest-title-code-block 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.