Library/ManagedCuda/CudaGraphicsInteropResourceCollection.cs
/// <summary>
/// Unmaps all graphics resources.<para/>
/// Once unmapped, the resources 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="UnmapAllResources()"/>
/// will complete before any subsequently issued graphics work begins.<para/>
/// If any of the resources are not presently mapped for access by CUDA then <see cref="CUResult.ErrorNotMapped"/> exception is thrown.
/// </summary>
/// <param name="stream"></param>
Unmaps all graphics resources.
Once unmapped, the 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
will complete before any subsequently issued graphics work begins.
If any of the resources are not presently mapped for access by CUDA then  exception is thrown.
Unmaps all graphics resources . Once unmapped the 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 will complete before any subsequently issued graphics work begins . If any of the resources are not presently mapped for access by CUDA then exception is thrown .
public void UnmapAllResources(CUstream stream)
        {
            if (disposed) throw new ObjectDisposedException(this.ToString());
            CUResult res;
            res = DriverAPINativeMethods.GraphicsInterop.cuGraphicsUnmapResources((uint)_CUResources.Count, _CUResources.ToArray(), stream);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuGraphicsUnmapResources", res));
            if (res != CUResult.Success)
                throw new CudaException(res);
            foreach (var elem in _resources)
                elem.SetIsUnmapped();
        }
public void UnmapAllResources ( CUstream stream ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; CUResult res ; res = DriverAPINativeMethods . GraphicsInterop . cuGraphicsUnmapResources ( ( uint ) _CUResources . Count , _CUResources . ToArray ( ) , stream ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; foreach ( var elem in _resources ) elem . SetIsUnmapped ( ) ; }
Unmaps all graphics resources.
Unmaps all graphics resources .
stream
CUstream
None