/// <summary> /// Enqueues a barrier. /// </summary> /// <remarks> A barrier ensures that all queued commands have finished execution before the next batch of commands can begin execution. </remarks> public void AddBarrier() { ComputeErrorCode error = CL10.EnqueueBarrier(Handle); ComputeException.ThrowOnError(error); }
/// <summary> /// Enqueues a barrier. /// </summary> /// <remarks> A barrier ensures that all queued commands have finished execution before the next batch of commands can begin execution. </remarks> public void AddBarrier() { OpenCLErrorCode error = CL10.EnqueueBarrier(Handle); OpenCLException.ThrowOnError(error); }