MCPcopy Create free account
hub / github.com/KnowingNothing/MatmulTutorial / producer_tail

Function producer_tail

include/pipeline.h:189–194  ·  view source on GitHub ↗

Prevents early exit of producer blocks in Cluster. This should be called once before kernel exits.

Source from the content-addressed store, hash-verified

187 // Prevents early exit of producer blocks in Cluster.
188 // This should be called once before kernel exits.
189 DEVICE void producer_tail(PipelineState state) {
190 for (int count = 0; count < Stages; ++count) {
191 producer_acquire(state);
192 ++state;
193 }
194 }
195
196 DEVICE ProducerBarrierType* producer_get_barrier(PipelineState state) {
197 return producer_get_barrier(state.index());

Callers

nothing calls this directly

Calls 1

producer_acquireFunction · 0.85

Tested by

no test coverage detected