pub unsafe fn set_exec_params(
graph: &CudaGraph,
node: CUgraphNode,
params: &CUDA_KERNEL_NODE_PARAMS,
) -> Result<(), Box<dyn Error>>Expand description
Push updated launch params for one node into the instantiated exec. params is the
(edited) struct from kernel_nodes — same node topology, new geometry/arg values.
§Safety
node must be a kernel-node handle enumerated from THIS graph (via kernel_nodes)
and still alive — i.e. the graph has not been destroyed or re-captured since. params
must be that node’s own params struct (same func, same kernelParams staging, same
topology) with only values edited; a foreign or stale handle is UB in the driver, not
a clean CUresult. This was a safe pub fn taking the raw handle, which is exactly
the shape clippy’s deny-by-default not_unsafe_ptr_arg_deref rejects: a safe signature
promising that ANY pointer argument is fine when the driver contract says otherwise.