cuda.bindings._v2.driver.graphics_unmap_resources#

cuda.bindings._v2.driver.graphics_unmap_resources(
unsigned int count,
resources,
intptr_t h_stream,
)#

Unmap graphics resources.

Unmaps the count graphics resources in resources. Once unmapped, the resources in resources may not be accessed by CUDA until they are mapped again. This function provides the synchronization guarantee that any CUDA work issued in stream before graphics_unmap_resources() will complete before any subsequently issued graphics work begins. If resources includes any duplicate entries then CUDA_ERROR_INVALID_HANDLE is returned. If any of resources are not presently mapped for access by CUDA then CUDA_ERROR_NOT_MAPPED is returned.

Parameters:
  • count (unsigned int) – Number of resources to unmap.

  • resources (object) –

    Resources to unmap. It can be:

    • an int as the pointer address to the array, or

    • a Python sequence of ints (as pointer addresses).

  • h_stream (intptr_t) – Stream with which to synchronize.

See also

cuGraphicsUnmapResources