code: public static int cuGraphicsUnmapResources( int count, CUgraphicsResource resources[], CUstream hStream)
      {
          return checkResult(cuGraphicsUnmapResourcesNative(count, resources, hStream));
      }
docs: Unmap graphics resources.
  
  <pre>
  CUresult cuGraphicsUnmapResources (
  unsigned int  count,
  CUgraphicsResource* resources,
  CUstream hStream )
  </pre>
  <div>
  <p>Unmap graphics resources.  Unmaps the
  <tt>count</tt> graphics resources in <tt>resources</tt>.
  </p>
  <p>Once unmapped, the resources in <tt>resources</tt> may not be accessed by CUDA until they are mapped
  again.
  </p>
  <p>This function provides the synchronization
  guarantee that any CUDA work issued in <tt>stream</tt> before
  cuGraphicsUnmapResources() will complete before any subsequently issued
  graphics work begins.
  </p>
  <p>If <tt>resources</tt> includes any
  duplicate entries then CUDA_ERROR_INVALID_HANDLE is returned. If any
  of <tt>resources</tt> are not presently mapped for access by CUDA then
  CUDA_ERROR_NOT_MAPPED is returned.
  </p>
  <div>
  <span>Note:</span>
  <p>Note that this
  function may also return error codes from previous, asynchronous
  launches.
  </p>
  </div>
  </p>
  </div>
  
  @param count Number of resources to unmap
  @param resources Resources to unmap
  @param hStream Stream with which to synchronize
  
  @return CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED,
  CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_HANDLE,
  CUDA_ERROR_NOT_MAPPED, CUDA_ERROR_UNKNOWN
  
  @see JCudaDriver#cuGraphicsMapResources