コード例 #1
0
ファイル: OpenCLEventBase.cs プロジェクト: forki/FSCL.Runtime
        /// <summary>
        ///
        /// </summary>
        protected void HookNotifier()
        {
            statusNotify = new OpenCLEventCallback(StatusNotify);
            OpenCLErrorCode error = CL11.SetEventCallback(Handle, (int)OpenCLCommandExecutionStatus.Complete, statusNotify, IntPtr.Zero);

            OpenCLException.ThrowOnError(error);
        }
コード例 #2
0
ファイル: CL11.cs プロジェクト: cloudRoutine/FSCL.Runtime
 public extern static OpenCLErrorCode SetEventCallback(
     CLEventHandle @event,
     Int32 command_exec_callback_type,
     OpenCLEventCallback pfn_notify,
     IntPtr user_data);
コード例 #3
0
 public extern static OpenCLErrorCode SetEventCallback(
     CLEventHandle @event,
     Int32 command_exec_callback_type,
     OpenCLEventCallback pfn_notify,
     IntPtr user_data);
コード例 #4
0
 /// <summary>
 /// 
 /// </summary>
 protected void HookNotifier()
 {
     statusNotify = new OpenCLEventCallback(StatusNotify);
     OpenCLErrorCode error = CL11.SetEventCallback(Handle, (int)OpenCLCommandExecutionStatus.Complete, statusNotify, IntPtr.Zero);
     OpenCLException.ThrowOnError(error);
 }