예제 #1
0
        ///<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 = CL12.EnqueueBarrier(Handle);

            ComputeException.ThrowOnError(error);
        }