/// <summary>
        /// Issues all previously enqueued commands to the <see cref="ComputeCommandQueue.Device"/>.
        /// </summary>
        /// <remarks> This method only guarantees that all previously enqueued commands get issued to the OpenCL device. There is no guarantee that they will be complete after this method returns. </remarks>
        public void Flush()
        {
            ComputeErrorCode error = CL10.Flush(Handle);

            ComputeException.ThrowOnError(error);
        }
Exemple #2
0
        /// <summary>
        /// Issues all previously enqueued commands to the <see cref="OpenCLCommandQueue.Device"/>.
        /// </summary>
        /// <remarks> This method only guarantees that all previously enqueued commands get issued to the OpenCL device. There is no guarantee that they will be complete after this method returns. </remarks>
        public void Flush()
        {
            OpenCLErrorCode error = CL10.Flush(Handle);

            OpenCLException.ThrowOnError(error);
        }