MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / to_raw

Method to_raw

crates/cust/src/graph.rs:84–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82 }
83
84 pub fn to_raw(self) -> cuda::CUDA_KERNEL_NODE_PARAMS {
85 cuda::CUDA_KERNEL_NODE_PARAMS {
86 func: self.func,
87 gridDimX: self.grid_dim.x,
88 gridDimY: self.grid_dim.y,
89 gridDimZ: self.grid_dim.z,
90 blockDimX: self.block_dim.x,
91 blockDimY: self.block_dim.y,
92 blockDimZ: self.block_dim.z,
93 kernelParams: Box::into_raw(self.params),
94 sharedMemBytes: self.shared_mem_bytes,
95 extra: ptr::null_mut(),
96 }
97 }
98
99 /// Makes a new invocation from its raw counterpart.
100 ///

Callers 4

add_kernel_nodeMethod · 0.45
node_typeMethod · 0.45
kernel_node_paramsMethod · 0.45
launchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected