Library/ManagedCuda/CudaDirectXInteropResource.cs
/// <summary>
/// Unmaps the graphics resource.<para/>
/// Once unmapped, the resource may not be accessed by CUDA until they are mapped again.<para/>
/// This function provides the synchronization guarantee that any CUDA work issued in <c>stream</c> before <see cref="UnMap()"/>
/// will complete before any subsequently issued graphics work begins.<para/>
/// If the resource is not presently mapped for access by CUDA then <see cref="CUResult.ErrorNotMapped"/> exception is thrown.
/// </summary>
/// <param name="stream"></param>
Unmaps the graphics resource.
Once unmapped, the resource may not be accessed by CUDA until they are mapped again.
This function provides the synchronization guarantee that any CUDA work issued in stream
will complete before any subsequently issued graphics work begins.
If the resource is not presently mapped for access by CUDA then  exception is thrown.
Unmaps the graphics resource . Once unmapped the resource may not be accessed by CUDA until they are mapped again . This function provides the synchronization guarantee that any CUDA work issued in stream will complete before any subsequently issued graphics work begins . If the resource is not presently mapped for access by CUDA then exception is thrown .
public void UnMap(CUstream stream)
        {
            if (disposed) throw new ObjectDisposedException(this.ToString());
            res = DriverAPINativeMethods.GraphicsInterop.cuGraphicsUnmapResources(1, ref _cudaResource, stream);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuGraphicsUnmapResources", res));
            if (res != CUResult.Success)
                throw new CudaException(res);
            _IsMapped = false;
        }
public void UnMap ( CUstream stream ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; res = DriverAPINativeMethods . GraphicsInterop . cuGraphicsUnmapResources ( 1 , ref _cudaResource , stream ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; _IsMapped = false ; }
Unmaps the graphics resource.
Unmaps the graphics resource .
stream
CUstream
None