MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::detail::gemm_barrier Class Reference

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ gemm_barrier()

mtl::detail::gemm_barrier::gemm_barrier ( unsigned parties)
inlineexplicitnoexcept

Member Function Documentation

◆ wait()

void mtl::detail::gemm_barrier::wait ( )
inlinenoexcept

The documentation for this class was generated from the following file: