Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        protected void HookNotifier()
        {
            statusNotify = new ComputeEventCallback(StatusNotify);
            ComputeErrorCode error = CLInterface.CL11.SetEventCallback(Handle, (int)ComputeCommandExecutionStatus.Complete, statusNotify, IntPtr.Zero);

            ComputeException.ThrowOnError(error);
        }
Beispiel #2
0
 public extern static ComputeErrorCode SetEventCallback(
     CLEventHandle @event,
     Int32 command_exec_callback_type,
     ComputeEventCallback pfn_notify,
     IntPtr user_data);
Beispiel #3
0
 /// <summary>
 /// 
 /// </summary>
 protected void HookNotifier()
 {
     statusNotify = new ComputeEventCallback(StatusNotify);
     ComputeErrorCode error = CLInterface.CL11.SetEventCallback(Handle, (int)ComputeCommandExecutionStatus.Complete, statusNotify, IntPtr.Zero);
     ComputeException.ThrowOnError(error);
 }
Beispiel #4
0
 public ComputeErrorCode SetEventCallback(CLEventHandle @event, int command_exec_callback_type, ComputeEventCallback pfn_notify, IntPtr user_data)
 {
     throw new NotImplementedException();
 }
Beispiel #5
0
 public static unsafe extern ComputeErrorCode SetEventCallback(
     IntPtr @event,
     Int32 command_exec_callback_type,
     /* void (CL_CALLBACK * pfn_notify)(cl_event, cl_int, void *) */ ComputeEventCallback pfn_notify,
     /* void * */ IntPtr user_data);
Beispiel #6
0
 public static extern ComputeErrorCode SetEventCallback(
     CLEventHandle @event,
     Int32 command_exec_callback_type,
     ComputeEventCallback pfn_notify,
     IntPtr user_data);
Beispiel #7
0
 public new ComputeErrorCode SetEventCallback(CLEventHandle @event, Int32 command_exec_callback_type, ComputeEventCallback pfn_notify, IntPtr user_data)
 {
     return StaticSetEventCallback(@event, command_exec_callback_type, pfn_notify, user_data);
 }
Beispiel #8
0
 protected void HookNotifier()
 {
     statusNotify = StatusNotify;
     CL11.SetEventCallback(handle, (int)ComputeCommandExecutionStatus.Complete, statusNotify, IntPtr.Zero);
 }
Beispiel #9
0
 public static extern int SetEventCallback(IntPtr @event, int command_exec_callback_type, ComputeEventCallback pfn_notify, IntPtr user_data);
Beispiel #10
0
 ComputeErrorCode ICL11.SetEventCallback(CLEventHandle @event, int command_exec_callback_type, ComputeEventCallback pfn_notify,
                                         IntPtr user_data)
 {
     return SetEventCallback(@event, command_exec_callback_type, pfn_notify, user_data);
 }
 ComputeErrorCode ICL11.SetEventCallback(CLEventHandle @event, int command_exec_callback_type, ComputeEventCallback pfn_notify,
                                         IntPtr user_data)
 {
     return(SetEventCallback(@event, command_exec_callback_type, pfn_notify, user_data));
 }