Exemplo n.º 1
0
 internal CLStream(CLAccelerator accelerator)
     : base(accelerator)
 {
     CLException.ThrowIfFailed(
         CurrentAPI.CreateCommandQueue(
             accelerator.DeviceId,
             accelerator.ContextPtr,
             out queuePtr));
     responsibleForHandle = true;
 }
Exemplo n.º 2
0
        internal CLStream(CLAccelerator accelerator)
            : base(accelerator)
        {
            CLCommandQueueProperties properties =
                Accelerator.Context.Properties.EnableProfiling
                ? CLCommandQueueProperties.CL_QUEUE_PROFILING_ENABLE
                : default;

            CLException.ThrowIfFailed(
                CurrentAPI.CreateCommandQueue(
                    accelerator.PlatformVersion,
                    accelerator.DeviceId,
                    accelerator.NativePtr,
                    properties,
                    out queuePtr));
            responsibleForHandle = true;
        }