Library/ManagedCuda/CudaContext.cs
/// <summary>
/// Blocks until the device has completed all preceding requested tasks. Throws a <see cref="CudaException"/> if one of the
/// preceding tasks failed. If the context was created with the <see cref="CUCtxFlags.SchedAuto"/> flag, the CPU thread will
/// block until the GPU context has finished its work.
/// </summary>
Blocks until the device has completed all preceding requested tasks. Throws a  if one of the
preceding tasks failed. If the context was created with the  flag, the CPU thread will
block until the GPU context has finished its work.
Blocks until the device has completed all preceding requested tasks . Throws a if one of the preceding tasks failed . If the context was created with the flag the CPU thread will block until the GPU context has finished its work .
public void Synchronize()
		{
			if (disposed) throw new ObjectDisposedException(this.ToString());
			CUResult res;
			res = DriverAPINativeMethods.ContextManagement.cuCtxSynchronize();
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuCtxSynchronize", res));
			if (res != CUResult.Success)
				throw new CudaException(res);
		}
public void Synchronize ( ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; CUResult res ; res = DriverAPINativeMethods . ContextManagement . cuCtxSynchronize ( ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; }
Blocks until the device has completed all preceding requested tasks.
Blocks until the device has completed all preceding requested tasks .