#include <gpr/linalg/BackendInterface.h>
Public Member Functions | |
| constexpr int | total () const noexcept |
| constexpr bool | fits (int cpu_share) const noexcept |
Public Attributes | |
| int | workers = 1 |
| int | nested_blas = 1 |
CPU threads a provider may use on one rank. workers run independent tasks (tiles, kernel blocks); each may open a nested BLAS team of nested_blas threads. The provider spends workers * nested_blas threads at most; callers hand over a budget within the rank's CPU share.
Definition at line 139 of file BackendInterface.h.
|
inlinenodiscardconstexprnoexcept |
Definition at line 147 of file BackendInterface.h.
|
inlinenodiscardconstexprnoexcept |
Definition at line 143 of file BackendInterface.h.
| int gpr::linalg::ThreadBudget::nested_blas = 1 |
Definition at line 141 of file BackendInterface.h.
| int gpr::linalg::ThreadBudget::workers = 1 |
Definition at line 140 of file BackendInterface.h.