pub enum BarrierOps {
Init {
barrier: Variable,
with_cta_fence: bool,
},
MemCopyAsync {
barrier: Variable,
source: Variable,
source_length: Variable,
offset_source: Variable,
offset_out: Variable,
},
TmaLoad {
barrier: Variable,
tensor_map: Variable,
indices: Vec<Variable>,
offset_out: Variable,
},
TmaLoadIm2col {
barrier: Variable,
tensor_map: Variable,
indices: Vec<Variable>,
offsets: Vec<Variable>,
offset_out: Variable,
},
Arrive {
barrier: Variable,
},
ArriveTx {
barrier: Variable,
arrive_count_update: Variable,
transaction_count_update: Variable,
},
ExpectTx {
barrier: Variable,
transaction_count_update: Variable,
},
Wait {
barrier: Variable,
},
ArriveAndWait {
barrier: Variable,
},
}
Expand description
Operations available on a barrier
Variants§
Init
Initialize the barrier, optionally with a cta proxy fence
MemCopyAsync
Copy source to destination
Fields
TmaLoad
TmaLoadIm2col
Fields
Arrive
Arrives at the barrier (decrements barrier count)
ArriveTx
ExpectTx
Wait
ArriveAndWait
Waits until data is loaded
Trait Implementations§
Source§impl Clone for BarrierOps
impl Clone for BarrierOps
Source§fn clone(&self) -> BarrierOps
fn clone(&self) -> BarrierOps
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BarrierOps
impl Debug for BarrierOps
Source§impl<'de> Deserialize<'de> for BarrierOps
impl<'de> Deserialize<'de> for BarrierOps
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BarrierOps
impl Display for BarrierOps
Source§impl From<<BarrierOps as OperationReflect>::OpCode> for OpCode
impl From<<BarrierOps as OperationReflect>::OpCode> for OpCode
Source§fn from(value: <BarrierOps as OperationReflect>::OpCode) -> Self
fn from(value: <BarrierOps as OperationReflect>::OpCode) -> Self
Converts to this type from the input type.
Source§impl From<BarrierOps> for Instruction
impl From<BarrierOps> for Instruction
Source§fn from(value: BarrierOps) -> Self
fn from(value: BarrierOps) -> Self
Converts to this type from the input type.
Source§impl From<BarrierOps> for Operation
impl From<BarrierOps> for Operation
Source§fn from(value: BarrierOps) -> Self
fn from(value: BarrierOps) -> Self
Converts to this type from the input type.
Source§impl Hash for BarrierOps
impl Hash for BarrierOps
Source§impl OperationReflect for BarrierOps
impl OperationReflect for BarrierOps
Source§type OpCode = BarrierOpCode
type OpCode = BarrierOpCode
Type of the op codes for this operation
Source§fn args(&self) -> Option<Vec<Variable>>
fn args(&self) -> Option<Vec<Variable>>
Get the list of arguments for this operation. If not all arguments are
Variable
, returns
None
instead.Source§fn from_code_and_args(op_code: Self::OpCode, args: &[Variable]) -> Option<Self>
fn from_code_and_args(op_code: Self::OpCode, args: &[Variable]) -> Option<Self>
Create typed operation from an opcode and a list of arguments. Returns
None
if not all
arguments are Variable
.Source§fn is_commutative(&self) -> bool
fn is_commutative(&self) -> bool
Whether this operation is commutative (arguments can be freely reordered). Ignored for
single argument operations.
Source§impl PartialEq for BarrierOps
impl PartialEq for BarrierOps
Source§impl Serialize for BarrierOps
impl Serialize for BarrierOps
Source§impl TypeHash for BarrierOps
impl TypeHash for BarrierOps
impl Eq for BarrierOps
impl StructuralPartialEq for BarrierOps
Auto Trait Implementations§
impl Freeze for BarrierOps
impl RefUnwindSafe for BarrierOps
impl Send for BarrierOps
impl Sync for BarrierOps
impl Unpin for BarrierOps
impl UnwindSafe for BarrierOps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.