cuda.bindings._v2.driver.graphics_unmap_resources#

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

Unmap graphics resources.

Unmaps the len(resources) 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:
  • resources (object) –

    Resources to unmap. It must be:

    • a Python sequence of ints (as pointer addresses), or

    • None for NULL.

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

See also

cuGraphicsUnmapResources