Function cudaGraphConditionalHandleCreate

Source
pub unsafe extern "C" fn cudaGraphConditionalHandleCreate(
    pHandle_out: *mut cudaGraphConditionalHandle,
    graph: cudaGraph_t,
    defaultLaunchValue: c_uint,
    flags: c_uint,
) -> cudaError_t
Expand description

\brief Create a conditional handle

Creates a conditional handle associated with \p hGraph.

The conditional handle must be associated with a conditional node in this graph or one of its children.

Handles not associated with a conditional node may cause graph instantiation to fail.

\param pHandle_out - Pointer used to return the handle to the caller. \param hGraph - Graph which will contain the conditional node using this handle. \param defaultLaunchValue - Optional initial value for the conditional variable. \param flags - Currently must be cudaGraphCondAssignDefault or 0.

\return ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_NOT_SUPPORTED \note_graph_thread_safety \notefnerr

\sa ::cuGraphAddNode,