|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
Reusable sense-reversing barrier for a fixed party count. More...
#include <gemm_blocked.hpp>
Public Member Functions | |
| gemm_barrier (unsigned parties) noexcept | |
| void | wait () noexcept |
Reusable sense-reversing barrier for a fixed party count.
Used to synchronize the ic-threads of one jc-team around their shared packed-B panel: the leader packs B, all wait (publish), the team computes, all wait again (so the leader does not overwrite B for the next pc while members still read it). The release/acquire on sense_ establishes happens-before from the leader's pack to the members' reads (and from members' reads back to the leader's repack). parties <= 1 makes wait() a no-op (single-member team). The pool never nests, so this is the only synchronization inside a GEMM parallel region.
|
inlineexplicitnoexcept |
|
inlinenoexcept |