class gpr::linalg::ScopedTileKernelThreads¶
Thread split for a library-mode call that DistributedState::tile_kernels sends to the tile kernels. The library selection runs tiles on the calling thread and threads inside BLAS; for the duration of the scope the configured threads go to independent tiles and each product runs on one thread, the split of the reproducible selection. The tile pool count is the inline copy of the translation unit that runs the kernels, so the scope lives in a header. No effect under the reproducible selection.
#include <gpr/linalg/DistributedState.h>
class ScopedTileKernelThreads {
public:
// construction
ScopedTileKernelThreads(const DistributedState& st);
ScopedTileKernelThreads(const ScopedTileKernelThreads&);
~ScopedTileKernelThreads();
// methods
ScopedTileKernelThreads& operator=(const ScopedTileKernelThreads&);
};