Library/ManagedCuda/CudaContext.cs
/// <summary>
/// Disables direct access to memory allocations in a peer context and unregisters any registered allocations.
/// </summary>
/// <param name="peerContext">Peer context to disable direct access to</param>
/// <returns></returns>
Disables direct access to memory allocations in a peer context and unregisters any registered allocations.
Disables direct access to memory allocations in a peer context and unregisters any registered allocations .
public static void DisablePeerAccess(CudaContext peerContext)
		{
			CUResult res;
			res = DriverAPINativeMethods.CudaPeerAccess.cuCtxDisablePeerAccess(peerContext.Context);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuCtxEnablePeerAccess", res));
			if (res != CUResult.Success) throw new CudaException(res);
		}
public static void DisablePeerAccess ( CudaContext peerContext ) { CUResult res ; res = DriverAPINativeMethods . CudaPeerAccess . cuCtxDisablePeerAccess ( peerContext . Context ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; }
Disables direct access to memory allocations in a peer context and unregisters any registered allocations.
Disables direct access to memory allocations in a peer context and unregisters any registered allocations .
None
peerContext
CudaContext
Peer context to disable direct access to
Peer context to disable direct access to