MCPcopy Create free account
hub / github.com/KomputeProject/kompute / OpMemoryBarrier

Method OpMemoryBarrier

src/OpMemoryBarrier.cpp:7–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace kp {
6
7OpMemoryBarrier::OpMemoryBarrier(
8 const std::vector<std::shared_ptr<Tensor>>& tensors,
9 const vk::AccessFlagBits& srcAccessMask,
10 const vk::AccessFlagBits& dstAccessMask,
11 const vk::PipelineStageFlagBits& srcStageMask,
12 const vk::PipelineStageFlagBits& dstStageMask,
13 bool barrierOnPrimary)
14 : mSrcAccessMask(srcAccessMask)
15 , mDstAccessMask(dstAccessMask)
16 , mSrcStageMask(srcStageMask)
17 , mDstStageMask(dstStageMask)
18 , mBarrierOnPrimary(barrierOnPrimary)
19 , mTensors(tensors)
20{
21 KP_LOG_DEBUG("Kompute OpMemoryBarrier constructor");
22}
23
24OpMemoryBarrier::~OpMemoryBarrier()
25{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected