コード例 #1
0
 public new static ComputeErrorCode EnqueueMarker(
     CLCommandQueueHandle command_queue,
     out CLEventHandle new_event)
 {
     RILogManager.Default?.SendTrace("WARNING! clEnqueueMarker has been deprecated in OpenCL 1.2.");
     return(CL11.EnqueueMarker(command_queue, out new_event));
 }
コード例 #2
0
 public new static ComputeErrorCode EnqueueMarker(
     CLCommandQueueHandle command_queue,
     out CLEventHandle new_event)
 {
     Trace.WriteLine("WARNING! clEnqueueMarker has been deprecated in OpenCL 1.2.");
     return(CL11.EnqueueMarker(command_queue, out new_event));
 }
コード例 #3
0
ファイル: CL11.cs プロジェクト: Togene/BeCalm
 ComputeErrorCode ICL11.EnqueueWriteBufferRect(CLCommandQueueHandle command_queue, CLMemoryHandle buffer, bool blocking_write,
                                               ref SysIntX3 buffer_offset, ref SysIntX3 host_offset, ref SysIntX3 region,
                                               IntPtr buffer_row_pitch, IntPtr buffer_slice_pitch, IntPtr host_row_pitch,
                                               IntPtr host_slice_pitch, IntPtr ptr, int num_events_in_wait_list,
                                               CLEventHandle[] event_wait_list, CLEventHandle[] new_event)
 {
     return EnqueueWriteBufferRect(command_queue, buffer, blocking_write, ref buffer_offset, ref host_offset, ref region, buffer_row_pitch, buffer_slice_pitch, host_row_pitch, host_slice_pitch, ptr, num_events_in_wait_list, event_wait_list, new_event);
 }
コード例 #4
0
ファイル: CL11.cs プロジェクト: Togene/BeCalm
 ComputeErrorCode ICL11.EnqueueCopyBufferRect(CLCommandQueueHandle command_queue, CLMemoryHandle src_buffer,
                                              CLMemoryHandle dst_buffer, ref SysIntX3 src_origin, ref SysIntX3 dst_origin,
                                              ref SysIntX3 region, IntPtr src_row_pitch, IntPtr src_slice_pitch,
                                              IntPtr dst_row_pitch, IntPtr dst_slice_pitch, int num_events_in_wait_list,
                                              CLEventHandle[] event_wait_list, CLEventHandle[] new_event)
 {
     return EnqueueCopyBufferRect(command_queue, src_buffer, dst_buffer, ref src_origin, ref dst_origin, ref region, src_row_pitch, src_slice_pitch, dst_row_pitch, dst_slice_pitch, num_events_in_wait_list, event_wait_list, new_event);
 }
コード例 #5
0
        internal ComputeEvent(CLEventHandle handle, ComputeCommandQueue queue)
        {
            Handle = handle;
            SetID(Handle.Value);

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

            if (ComputeTools.ParseVersionString(CommandQueue.Device.Platform.Version, 1) > new Version(1, 0))
                HookNotifier();
        }
コード例 #6
0
ファイル: ComputeEvent.cs プロジェクト: JustasB/cudafy
        internal ComputeEvent(CLEventHandle handle, ComputeCommandQueue queue)
        {
            Handle = handle;
            SetID(Handle.Value);

            CommandQueue = queue;
            Type = (ComputeCommandType)GetInfo<CLEventHandle, ComputeEventInfo, int>(Handle, ComputeEventInfo.CommandType, CL10.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");
        }
コード例 #7
0
 public extern static ComputeErrorCode GetEventInfo(
     CLEventHandle @event,
     ComputeEventInfo param_name,
     IntPtr param_value_size,
     IntPtr param_value,
     out IntPtr param_value_size_ret);
コード例 #8
0
ファイル: CL10.cs プロジェクト: aokomoriuta/StudiesOfOpenTK
 public static extern ComputeErrorCode EnqueueMarker(
     CLCommandQueueHandle command_queue,
     out CLEventHandle new_event);
コード例 #9
0
ファイル: CL10.cs プロジェクト: aokomoriuta/StudiesOfOpenTK
 public static extern ComputeErrorCode RetainEvent(
     CLEventHandle @event);
コード例 #10
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueWriteImage(CLCommandQueueHandle command_queue, CLMemoryHandle image, [MarshalAs(UnmanagedType.Bool)] bool blocking_write, ref SysIntX3 origin, ref SysIntX3 region, IntPtr input_row_pitch, IntPtr input_slice_pitch, IntPtr ptr, int num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, CLEventHandle new_event)
 {
     throw new NotImplementedException();
 }
コード例 #11
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode ReleaseEvent(CLEventHandle @event)
 {
     return StaticReleaseEvent(@event);
 }
コード例 #12
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueReleaseGLObjects(CLCommandQueueHandle command_queue, Int32 num_objects, [MarshalAs(UnmanagedType.LPArray)] CLMemoryHandle[] mem_objects, Int32 num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event)
 {
     return StaticEnqueueReleaseGLObjects(command_queue, num_objects, mem_objects, num_events_in_wait_list, event_wait_list, out new_event);
 }
コード例 #13
0
 extern static ComputeErrorCode RetainEvent(
     CLEventHandle @event);
コード例 #14
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueSVMMap(CLCommandQueueHandle command_queue, ComputeBoolean blocking_map, ComputeMemoryMappingFlags flags, IntPtr svm_ptr, IntPtr size, int num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event)
 {
     throw new NotImplementedException();
 }
コード例 #15
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueSVMUnMap(CLCommandQueueHandle command_queue, IntPtr svm_ptr, IntPtr size, int num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event)
 {
     throw new NotImplementedException();
 }
コード例 #16
0
 ComputeErrorCode ICL10.EnqueueMarker(CLCommandQueueHandle command_queue, out CLEventHandle new_event)
 {
     return(EnqueueMarker(command_queue, out new_event));
 }
コード例 #17
0
 public static void GetEventProfilingInfoWrapper(CLEventHandle @event, ComputeCommandProfilingInfo param_name, IntPtr param_value_size, IntPtr param_value, out IntPtr param_value_size_ret)
 {
     ComputeException.ThrowOnError(GetEventProfilingInfo(@event, param_name, param_value_size, param_value, out param_value_size_ret));
 }
コード例 #18
0
 ComputeErrorCode ICL10.GetEventProfilingInfo(CLEventHandle @event, ComputeCommandProfilingInfo param_name,
                                              IntPtr param_value_size, IntPtr param_value, out IntPtr param_value_size_ret)
 {
     return(GetEventProfilingInfo(@event, param_name, param_value_size, param_value, out param_value_size_ret));
 }
コード例 #19
0
 ComputeErrorCode ICL10.ReleaseEvent(CLEventHandle @event)
 {
     return(ReleaseEvent(@event));
 }
コード例 #20
0
 extern static ComputeErrorCode GetEventProfilingInfo(
     CLEventHandle @event,
     ComputeCommandProfilingInfo param_name,
     IntPtr param_value_size,
     IntPtr param_value,
     out IntPtr param_value_size_ret);
コード例 #21
0
 public extern static ComputeErrorCode SetUserEventStatus(
     CLEventHandle @event,
     Int32 execution_status);
コード例 #22
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueUnmapMemObject(CLCommandQueueHandle command_queue, CLMemoryHandle memobj, IntPtr mapped_ptr, Int32 num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event)
 {
     return StaticEnqueueUnmapMemObject(command_queue, memobj, mapped_ptr, num_events_in_wait_list, event_wait_list, out new_event);
 }
コード例 #23
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));
 }
コード例 #24
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueWriteBufferRect(CLCommandQueueHandle command_queue, CLMemoryHandle buffer, [MarshalAs(UnmanagedType.Bool)] bool blocking_write, ref SysIntX3 buffer_offset, ref SysIntX3 host_offset, ref SysIntX3 region, IntPtr buffer_row_pitch, IntPtr buffer_slice_pitch, IntPtr host_row_pitch, IntPtr host_slice_pitch, IntPtr ptr, int num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event)
 {
     throw new NotImplementedException();
 }
コード例 #25
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueSVMFree(CLCommandQueueHandle command_queue, int num_svm_pointers, [MarshalAs(UnmanagedType.LPArray)] IntPtr[] svm_pointers, ComputeFreeFunctionCallback pfn_free, IntPtr user_data, int num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event)
 {
     throw new NotImplementedException();
 }
コード例 #26
0
 public static extern ComputeErrorCode RetainEvent(
     CLEventHandle @event);
コード例 #27
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueSVMMemcpy(CLCommandQueueHandle command_queue, ComputeBoolean blocking_copy, IntPtr dst_ptr, IntPtr src_ptr, IntPtr size, int num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event)
 {
     throw new NotImplementedException();
 }
コード例 #28
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueCopyImageToBuffer(CLCommandQueueHandle command_queue, CLMemoryHandle src_image, CLMemoryHandle dst_buffer, ref SysIntX3 src_origin, ref SysIntX3 region, IntPtr dst_offset, Int32 num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event)
 {
     return StaticEnqueueCopyImageToBuffer(command_queue, src_image, dst_buffer, ref src_origin, ref region, dst_offset, num_events_in_wait_list, event_wait_list, out new_event);
 }
コード例 #29
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueTask(CLCommandQueueHandle command_queue, CLKernelHandle kernel, Int32 num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event)
 {
     return StaticEnqueueTask(command_queue, kernel, num_events_in_wait_list, event_wait_list, out new_event);
 }
コード例 #30
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueFillBuffer(CLCommandQueueHandle command_queue, CLMemoryHandle buffer, IntPtr pattern, IntPtr pattern_size, IntPtr offset, IntPtr size, int num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event)
 {
     throw new NotImplementedException();
 }
コード例 #31
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueWriteBuffer(CLCommandQueueHandle command_queue, CLMemoryHandle buffer, [MarshalAs(UnmanagedType.Bool)] bool blocking_write, IntPtr offset, IntPtr cb, IntPtr ptr, Int32 num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event)
 {
     return StaticEnqueueWriteBuffer(command_queue, buffer, blocking_write, offset, cb, ptr, num_events_in_wait_list, event_wait_list, out new_event);
 }
コード例 #32
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueFillImage(CLCommandQueueHandle command_queue, CLMemoryHandle image, IntPtr fill_color, ref SysIntX3 origin, ref SysIntX3 region, int num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event)
 {
     throw new NotImplementedException();
 }
コード例 #33
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueWriteImage(CLCommandQueueHandle command_queue, CLMemoryHandle image, [MarshalAs(UnmanagedType.Bool)] bool blocking_write, ref SysIntX3 origin, ref SysIntX3 region, IntPtr input_row_pitch, IntPtr input_slice_pitch, IntPtr ptr, Int32 num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event)
 {
     return StaticEnqueueWriteImage(command_queue, image, blocking_write, ref origin, ref region, input_row_pitch, input_slice_pitch, ptr, num_events_in_wait_list, event_wait_list, out new_event);
 }
コード例 #34
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public IntPtr EnqueueMapBuffer(CLCommandQueueHandle command_queue, CLMemoryHandle buffer, [MarshalAs(UnmanagedType.Bool)] bool blocking_map, ComputeMemoryMappingFlags map_flags, IntPtr offset, IntPtr cb, Int32 num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event, out ComputeErrorCode errcode_ret)
 {
     return StaticEnqueueMapBuffer(command_queue, buffer, blocking_map, map_flags, offset, cb, num_events_in_wait_list, event_wait_list, out new_event, out errcode_ret);
 }
コード例 #35
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode GetEventProfilingInfo(CLEventHandle @event, ComputeCommandProfilingInfo param_name, IntPtr param_value_size, IntPtr param_value, out IntPtr param_value_size_ret)
 {
     return StaticGetEventProfilingInfo(@event, param_name, param_value_size, param_value, out param_value_size_ret);
 }
コード例 #36
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public IntPtr EnqueueMapImage(CLCommandQueueHandle command_queue, CLMemoryHandle image, [MarshalAs(UnmanagedType.Bool)] bool blocking_map, ComputeMemoryMappingFlags map_flags, ref SysIntX3 origin, ref SysIntX3 region, out IntPtr image_row_pitch, out IntPtr image_slice_pitch, Int32 num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event, out ComputeErrorCode errcode_ret)
 {
     return StaticEnqueueMapImage(command_queue, image, blocking_map, map_flags, ref origin, ref region, out image_row_pitch, out image_slice_pitch, num_events_in_wait_list, event_wait_list, out new_event, out errcode_ret);
 }
コード例 #37
0
 private void StatusNotify(CLEventHandle eventHandle, int cmdExecStatusOrErr, IntPtr userData)
 {
     status = new ComputeCommandStatusArgs(this, (ComputeCommandExecutionStatus)cmdExecStatusOrErr);
     switch (cmdExecStatusOrErr)
     {
         case (int)ComputeCommandExecutionStatus.Complete: OnCompleted(this, status); break;
         default: OnAborted(this, status); break;
     }
 }
コード例 #38
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueMarker(CLCommandQueueHandle command_queue, out CLEventHandle new_event)
 {
     return StaticEnqueueMarker(command_queue, out new_event);
 }
コード例 #39
0
ファイル: CL10.cs プロジェクト: aokomoriuta/StudiesOfOpenTK
 public static extern ComputeErrorCode GetEventProfilingInfo(
     CLEventHandle @event,
     ComputeCommandProfilingInfo param_name,
     IntPtr param_value_size,
     IntPtr param_value,
     out IntPtr param_value_size_ret);
コード例 #40
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueMarkerWithWaitList(CLCommandQueueHandle command_queue, int num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event)
 {
     throw new NotImplementedException();
 }
コード例 #41
0
ファイル: CL10.cs プロジェクト: gandalfliang/cloo_netstandard
 public extern static ComputeErrorCode EnqueueMarker(
     CLCommandQueueHandle command_queue,
     out CLEventHandle new_event);
コード例 #42
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueMigrateMemObjects(CLCommandQueueHandle command_queue, int num_mem_objects, [MarshalAs(UnmanagedType.LPArray)] CLMemoryHandle[] mem_objects, ComputeMemoryMigrationFlags flags, int num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event)
 {
     throw new NotImplementedException();
 }
コード例 #43
0
 public extern static ComputeErrorCode ReleaseEvent(
     CLEventHandle @event);
コード例 #44
0
ファイル: CL10.cs プロジェクト: nathanpackard/openCLoo
 public ComputeErrorCode EnqueueNDRangeKernel(CLCommandQueueHandle command_queue, CLKernelHandle kernel, Int32 work_dim, [MarshalAs(UnmanagedType.LPArray)] IntPtr[] global_work_offset, [MarshalAs(UnmanagedType.LPArray)] IntPtr[] global_work_size, [MarshalAs(UnmanagedType.LPArray)] IntPtr[] local_work_size, Int32 num_events_in_wait_list, [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list, out CLEventHandle new_event)
 {
     return StaticEnqueueNDRangeKernel(command_queue, kernel, work_dim, global_work_offset, global_work_size, local_work_size, num_events_in_wait_list, event_wait_list, out new_event);
 }
コード例 #45
0
 public extern static ComputeErrorCode SetEventCallback(
     CLEventHandle @event,
     Int32 command_exec_callback_type,
     ComputeEventCallback pfn_notify,
     IntPtr user_data);
コード例 #46
0
 ComputeErrorCode ICL11.SetUserEventStatus(CLEventHandle @event, int execution_status)
 {
     return(SetUserEventStatus(@event, execution_status));
 }