internal CLStream(CLAccelerator accelerator) : base(accelerator) { CLException.ThrowIfFailed( CurrentAPI.CreateCommandQueue( accelerator.DeviceId, accelerator.ContextPtr, out queuePtr)); responsibleForHandle = true; }
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; }