MCPcopy Create free account
hub / github.com/KnowingNothing/MatmulTutorial / operator++

Method operator++

include/barrier.h:185–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 DEVICE uint32_t count() const { return count_; }
184
185 DEVICE void operator++() {
186 if constexpr (Stages > 0) {
187 ++index_;
188 ++count_;
189 if (index_ == Stages) {
190 index_ = 0;
191 phase_ ^= 1;
192 }
193 }
194 }
195
196 DEVICE PipelineState &operator=(const PipelineState &other) {
197 index_ = other.index();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected