.. index:: pair: struct; gpr::linalg::ThreadBudget .. _doxid-structgpr_1_1linalg_1_1_thread_budget: struct gpr::linalg::ThreadBudget ================================ .. toctree:: :hidden: 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. .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct ThreadBudget { // fields int :target:`workers` = 1; int :target:`nested_blas` = 1; // methods int :target:`total`() const; bool :target:`fits`(int cpu_share) const; };