Function cuGraphKernelNodeGetParams_v2

Source
pub unsafe extern "C" fn cuGraphKernelNodeGetParams_v2(
    hNode: CUgraphNode,
    nodeParams: *mut CUDA_KERNEL_NODE_PARAMS,
) -> CUresult
Expand description

\brief Returns a kernel node’s parameters

Returns the parameters of kernel node \p hNode in \p nodeParams. The \p kernelParams or \p extra array returned in \p nodeParams, as well as the argument values it points to, are owned by the node. This memory remains valid until the node is destroyed or its parameters are modified, and should not be modified directly. Use ::cuGraphKernelNodeSetParams to update the parameters of this node.

The params will contain either \p kernelParams or \p extra, according to which of these was most recently set on the node.

\param hNode - Node to get the parameters for \param nodeParams - Pointer to return the parameters

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_VALUE \note_graph_thread_safety \notefnerr

\sa ::cuLaunchKernel, ::cuGraphAddKernelNode, ::cuGraphKernelNodeSetParams