Ejemplo n.º 1
0
 public extern static OpenCLErrorCode EnqueueUnmapMemObject(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle memobj,
     IntPtr mapped_ptr,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event);
Ejemplo n.º 2
0
 public extern static OpenCLErrorCode 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, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event);
Ejemplo n.º 3
0
 new public static OpenCLErrorCode SetCommandQueueProperty(
     CLCommandQueueHandle command_queue,
     OpenCLCommandQueueProperties properties,
     [MarshalAs(UnmanagedType.Bool)] bool enable,
     out OpenCLCommandQueueProperties old_properties)
 {
     //Trace.WriteLine("WARNING! clSetCommandQueueProperty has been deprecated in OpenCL 1.1.");
     return(CL10.SetCommandQueueProperty(command_queue, properties, enable, out old_properties));
 }
Ejemplo n.º 4
0
 public extern static OpenCLErrorCode 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, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event);
Ejemplo n.º 5
0
 public extern static OpenCLErrorCode EnqueueCopyBufferToImage(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle src_buffer,
     CLMemoryHandle dst_image,
     IntPtr src_offset,
     ref SysIntX3 dst_origin,
     ref SysIntX3 region,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event);
Ejemplo n.º 6
0
 public extern static OpenCLErrorCode 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, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event);
Ejemplo n.º 7
0
 public extern static IntPtr EnqueueMapBuffer(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle buffer,
     [MarshalAs(UnmanagedType.Bool)] bool blocking_map,
     OpenCLMemoryMappingFlags map_flags,
     IntPtr offset,
     IntPtr cb,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event,
     out OpenCLErrorCode errcode_ret);
Ejemplo n.º 8
0
 public extern static OpenCLErrorCode 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, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event);
Ejemplo n.º 9
0
 public extern static IntPtr EnqueueMapImage(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle image,
     [MarshalAs(UnmanagedType.Bool)] bool blocking_map,
     OpenCLMemoryMappingFlags 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, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event,
     out OpenCLErrorCode errcode_ret);
Ejemplo n.º 10
0
 public extern static OpenCLErrorCode EnqueueReadBufferRect(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle buffer,
     [MarshalAs(UnmanagedType.Bool)] bool blocking_read,
     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,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event);
Ejemplo n.º 11
0
 public extern static OpenCLErrorCode GetCommandQueueInfo(
     CLCommandQueueHandle command_queue,
     OpenCLCommandQueueInfo param_name,
     IntPtr param_value_size,
     IntPtr param_value,
     out IntPtr param_value_size_ret);
Ejemplo n.º 12
0
 public extern static OpenCLErrorCode EnqueueWaitForEvents(
     CLCommandQueueHandle command_queue,
     Int32 num_events,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_list);
Ejemplo n.º 13
0
 public extern static OpenCLErrorCode EnqueueTask(
     CLCommandQueueHandle command_queue,
     CLKernelHandle kernel,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst=1)] CLEventHandle[] new_event);
Ejemplo n.º 14
0
 public extern static OpenCLErrorCode EnqueueUnmapMemObject(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle memobj,
     IntPtr mapped_ptr,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst=1)] CLEventHandle[] new_event);
Ejemplo n.º 15
0
 public extern static IntPtr EnqueueMapBuffer(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle buffer,
     [MarshalAs(UnmanagedType.Bool)] bool blocking_map,
     OpenCLMemoryMappingFlags map_flags,
     IntPtr offset,
     IntPtr cb,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event,
     out OpenCLErrorCode errcode_ret);
Ejemplo n.º 16
0
 public extern static OpenCLErrorCode 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, MarshalAs(UnmanagedType.LPArray, SizeConst=1)] CLEventHandle[] new_event);
Ejemplo n.º 17
0
 public extern static OpenCLErrorCode 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, MarshalAs(UnmanagedType.LPArray, SizeConst=1)] CLEventHandle[] new_event);
Ejemplo n.º 18
0
 public extern static OpenCLErrorCode SetCommandQueueProperty(
     CLCommandQueueHandle command_queue,
     OpenCLCommandQueueProperties properties,
     [MarshalAs(UnmanagedType.Bool)] bool enable,
     out OpenCLCommandQueueProperties old_properties);
Ejemplo n.º 19
0
 public extern static OpenCLErrorCode SetCommandQueueProperty(
     CLCommandQueueHandle command_queue,
     OpenCLCommandQueueProperties properties,
     [MarshalAs(UnmanagedType.Bool)] bool enable,
     out OpenCLCommandQueueProperties old_properties);
Ejemplo n.º 20
0
 public extern static OpenCLErrorCode Finish(
     CLCommandQueueHandle command_queue);
Ejemplo n.º 21
0
 public extern static OpenCLErrorCode GetCommandQueueInfo(
     CLCommandQueueHandle command_queue,
     OpenCLCommandQueueInfo param_name,
     IntPtr param_value_size,
     IntPtr param_value,
     out IntPtr param_value_size_ret);
Ejemplo n.º 22
0
 public extern static OpenCLErrorCode RetainCommandQueue(
     CLCommandQueueHandle command_queue);
Ejemplo n.º 23
0
 public extern static OpenCLErrorCode Finish(
     CLCommandQueueHandle command_queue);
Ejemplo n.º 24
0
 public extern static OpenCLErrorCode EnqueueTask(
     CLCommandQueueHandle command_queue,
     CLKernelHandle kernel,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event);
Ejemplo n.º 25
0
 public extern static OpenCLErrorCode EnqueueCopyBuffer(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle src_buffer,
     CLMemoryHandle dst_buffer,
     IntPtr src_offset,
     IntPtr dst_offset,
     IntPtr cb,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst=1)] CLEventHandle[] new_event);
Ejemplo n.º 26
0
 public extern static OpenCLErrorCode EnqueueMarker(
     CLCommandQueueHandle command_queue,
     out CLEventHandle new_event);
Ejemplo n.º 27
0
 public extern static OpenCLErrorCode EnqueueCopyImage(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle src_image,
     CLMemoryHandle dst_image,
     ref SysIntX3 src_origin,
     ref SysIntX3 dst_origin,
     ref SysIntX3 region,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst=1)] CLEventHandle[] new_event);
Ejemplo n.º 28
0
 public extern static OpenCLErrorCode EnqueueWaitForEvents(
     CLCommandQueueHandle command_queue,
     Int32 num_events,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_list);
Ejemplo n.º 29
0
 public extern static IntPtr EnqueueMapImage(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle image,
     [MarshalAs(UnmanagedType.Bool)] bool blocking_map,
     OpenCLMemoryMappingFlags 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, MarshalAs(UnmanagedType.LPArray, SizeConst = 1)] CLEventHandle[] new_event,
     out OpenCLErrorCode errcode_ret);
Ejemplo n.º 30
0
 public extern static OpenCLErrorCode EnqueueBarrier(
     CLCommandQueueHandle command_queue);
Ejemplo n.º 31
0
 public extern static OpenCLErrorCode 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, MarshalAs(UnmanagedType.LPArray, SizeConst=1)] CLEventHandle[] new_event);
Ejemplo n.º 32
0
 public extern static OpenCLErrorCode 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, MarshalAs(UnmanagedType.LPArray, SizeConst=1)] CLEventHandle[] new_event);
Ejemplo n.º 33
0
 public extern static OpenCLErrorCode EnqueueMarker(
     CLCommandQueueHandle command_queue,
     out CLEventHandle new_event);
Ejemplo n.º 34
0
 new public static OpenCLErrorCode SetCommandQueueProperty(
     CLCommandQueueHandle command_queue,
     OpenCLCommandQueueProperties properties,
     [MarshalAs(UnmanagedType.Bool)] bool enable,
     out OpenCLCommandQueueProperties old_properties)
 {
     //Trace.WriteLine("WARNING! clSetCommandQueueProperty has been deprecated in OpenCL 1.1.");
     return CL10.SetCommandQueueProperty(command_queue, properties, enable, out old_properties);
 }
Ejemplo n.º 35
0
 public extern static OpenCLErrorCode EnqueueBarrier(
     CLCommandQueueHandle command_queue);
Ejemplo n.º 36
0
 ReleaseCommandQueue(
     CLCommandQueueHandle command_queue);
Ejemplo n.º 37
0
 public extern static OpenCLErrorCode 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,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst=1)] CLEventHandle[] new_event);
Ejemplo n.º 38
0
 public extern static OpenCLErrorCode RetainCommandQueue(
     CLCommandQueueHandle command_queue);
Ejemplo n.º 39
0
 public extern static OpenCLErrorCode EnqueueReadBufferRect(
     CLCommandQueueHandle command_queue,
     CLMemoryHandle buffer,
     [MarshalAs(UnmanagedType.Bool)] bool blocking_read,
     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,
     Int32 num_events_in_wait_list,
     [MarshalAs(UnmanagedType.LPArray)] CLEventHandle[] event_wait_list,
     [Out, MarshalAs(UnmanagedType.LPArray, SizeConst=1)] CLEventHandle[] new_event);
Ejemplo n.º 40
0
 ReleaseCommandQueue(
     CLCommandQueueHandle command_queue);