#[repr(C)]pub struct hipBatchMemOpNodeParams {
pub ctx: hipCtx_t,
pub count: c_uint,
pub paramArray: *mut hipStreamBatchMemOpParams,
pub flags: c_uint,
}Expand description
@brief Structure representing node parameters for batch memory operations in HIP graphs.
hipBatchMemOpNodeParams is used to specify the parameters for batch memory operations in HIP graphs. This struct includes the context to use for the operations, the number of operations, and an array of hipStreamBatchMemOpParams that describe the operations.
@details The structure includes the following fields:
- ctx: The HIP context to use for the operations.
- count: The number of operations in the paramArray.
- paramArray: A pointer to an array of hipStreamBatchMemOpParams.
- flags: Flags to control the node.
Example usage: @code hipBatchMemOpNodeParams nodeParams; nodeParams.ctx = context; nodeParams.count = ARRAY_SIZE; nodeParams.paramArray = myArray; nodeParams.flags = 0;
Pass nodeParams to a HIP graph APIs hipGraphAddBatchMemOpNode, hipGraphBatchMemOpNodeGetParams, hipGraphBatchMemOpNodeSetParams, hipGraphExecBatchMemOpNodeSetParams @endcode
Fields§
§ctx: hipCtx_t§count: c_uint§paramArray: *mut hipStreamBatchMemOpParams§flags: c_uintTrait Implementations§
Source§impl Clone for hipBatchMemOpNodeParams
impl Clone for hipBatchMemOpNodeParams
Source§fn clone(&self) -> hipBatchMemOpNodeParams
fn clone(&self) -> hipBatchMemOpNodeParams
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 hipBatchMemOpNodeParams
impl Debug for hipBatchMemOpNodeParams
impl Copy for hipBatchMemOpNodeParams
Auto Trait Implementations§
impl Freeze for hipBatchMemOpNodeParams
impl RefUnwindSafe for hipBatchMemOpNodeParams
impl !Send for hipBatchMemOpNodeParams
impl !Sync for hipBatchMemOpNodeParams
impl Unpin for hipBatchMemOpNodeParams
impl UnwindSafe for hipBatchMemOpNodeParams
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