Esempio n. 1
0
        internal ComputeEvent(CLEventHandle handle, ComputeCommandQueue queue)
        {
            Handle = handle;
            SetID(Handle.Value);

            CommandQueue = queue;
            Type         = (ComputeCommandType)GetInfo <CLEventHandle, ComputeEventInfo, int>(Handle, ComputeEventInfo.CommandType, CL12.GetEventInfo);
            Context      = queue.Context;

            if (ComputeTools.ParseVersionString(CommandQueue.Device.Platform.Version, 1) > new Version(1, 0))
            {
                HookNotifier();
            }

            Trace.WriteLine("Create " + this + " in Thread(" + Thread.CurrentThread.ManagedThreadId + ").", "Information");
        }
Esempio n. 2
0
 internal ComputeEvent(CLEventHandle handle, ComputeCommandQueue queue) : this(handle, queue, 0)
 {
     Type = (ComputeCommandType)GetInfo <CLEventHandle, ComputeEventInfo, int>(Handle, ComputeEventInfo.CommandType, CL12.GetEventInfo);
 }
Esempio n. 3
0
 /// <summary>
 /// Creates an see<see cref="ComputeExternalEvent"/> from an external handle
 /// </summary>
 /// <param name="handle"></param>
 /// <param name="queue"></param>
 public ComputeExternalEvent(CLEventHandle handle, ComputeCommandQueue queue)
     : base(handle, queue)
 {
 }