Function rcudnn_sys::cudaGraphicsUnmapResources[][src]

pub unsafe extern "C" fn cudaGraphicsUnmapResources(
    count: c_int,
    resources: *mut cudaGraphicsResource_t,
    stream: cudaStream_t
) -> cudaError_t
Expand description

\brief Unmap graphics resources.

Unmaps the \p count graphics resources in \p resources.

Once unmapped, the resources in \p resources may not be accessed by CUDA until they are mapped again.

This function provides the synchronization guarantee that any CUDA work issued in \p stream before ::cudaGraphicsUnmapResources() will complete before any subsequently issued graphics work begins.

If \p resources contains any duplicate entries then ::cudaErrorInvalidResourceHandle is returned. If any of \p resources are not presently mapped for access by CUDA then ::cudaErrorUnknown is returned.

\param count - Number of resources to unmap \param resources - Resources to unmap \param stream - Stream for synchronization

\return ::cudaSuccess, ::cudaErrorInvalidResourceHandle, ::cudaErrorUnknown \note_null_stream \notefnerr \note_init_rt \note_callback

\sa ::cudaGraphicsMapResources, ::cuGraphicsUnmapResources