Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        protected void HookNotifier()
        {
            statusNotify = new OpenCLEventCallback(StatusNotify);
            OpenCLErrorCode error = CL11.SetEventCallback(Handle, (int)OpenCLCommandExecutionStatus.Complete, statusNotify, IntPtr.Zero);

            OpenCLException.ThrowOnError(error);
        }
Esempio n. 2
0
 public extern static OpenCLErrorCode SetEventCallback(
     CLEventHandle @event,
     Int32 command_exec_callback_type,
     OpenCLEventCallback pfn_notify,
     IntPtr user_data);
Esempio n. 3
0
 public extern static OpenCLErrorCode SetEventCallback(
     CLEventHandle @event,
     Int32 command_exec_callback_type,
     OpenCLEventCallback pfn_notify,
     IntPtr user_data);
 /// <summary>
 /// 
 /// </summary>
 protected void HookNotifier()
 {
     statusNotify = new OpenCLEventCallback(StatusNotify);
     OpenCLErrorCode error = CL11.SetEventCallback(Handle, (int)OpenCLCommandExecutionStatus.Complete, statusNotify, IntPtr.Zero);
     OpenCLException.ThrowOnError(error);
 }