Ejemplo n.º 1
0
        public static CLCommandQueueHandle CreateCommandQueuetWrapper(CLContextHandle context, CLDeviceHandle device, ComputeCommandQueueFlags properties)
        {
            var handle = CreateCommandQueue(context, device, properties, out ComputeErrorCode errcode_ret);

            ComputeException.ThrowOnError(errcode_ret);
            return(handle);
        }
Ejemplo n.º 2
0
 public extern static CLProgramHandle CreateProgramWithBuiltInKernels(
     CLContextHandle context,
     Int32 num_devices,
     [MarshalAs(UnmanagedType.LPArray)] CLDeviceHandle[] device_list,
     String kernel_names,
     [MarshalAs(UnmanagedType.LPArray)] IntPtr[] lengths,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 3
0
        public static CLProgramHandle CreateProgramWithSourceWrapper(CLContextHandle context, int count, string[] strings, IntPtr[] lengths)
        {
            var handle = CreateProgramWithSource(context, count, strings, lengths, out ComputeErrorCode errcode_ret);

            ComputeException.ThrowOnError(errcode_ret);
            return(handle);
        }
Ejemplo n.º 4
0
        public static CLProgramHandle CreateProgramWithBinaryWrapper(CLContextHandle context, int num_devices, CLDeviceHandle[] device_list, string kernel_names, IntPtr[] lengths)
        {
            var handle = CreateProgramWithBuiltInKernels(context, num_devices, device_list, kernel_names, lengths, out ComputeErrorCode errcode_ret);

            ComputeException.ThrowOnError(errcode_ret);
            return(handle);
        }
Ejemplo n.º 5
0
        public static CLProgramHandle CreateProgramWithILWrapper(CLContextHandle context, IntPtr il, IntPtr length)
        {
            var handle = CreateProgramWithIL(context, il, length, out ComputeErrorCode errcode_ret);

            ComputeException.ThrowOnError(errcode_ret);
            return(handle);
        }
Ejemplo n.º 6
0
 public extern static CLMemoryHandle CreateFromGLTexture3D(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     Int32 target,
     Int32 miplevel,
     Int32 texture,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 7
0
 public extern static ComputeErrorCode GetSupportedImageFormats(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     ComputeMemoryType image_type,
     Int32 num_entries,
     [Out, MarshalAs(UnmanagedType.LPArray)] ComputeImageFormat[] image_formats,
     out Int32 num_image_formats);
Ejemplo n.º 8
0
        public static CLSamplerHandle CreateSamplerWrapper(CLContextHandle context, bool normalized_coords, ComputeImageAddressing addressing_mode, ComputeImageFiltering filter_mode)
        {
            var handle = CreateSampler(context, normalized_coords, addressing_mode, filter_mode, out ComputeErrorCode errcode_ret);

            ComputeException.ThrowOnError(errcode_ret);
            return(handle);
        }
Ejemplo n.º 9
0
        public static CLProgramHandle CreateProgramWithBinaryWrapper(CLContextHandle context,
                                                                     int num_devices, CLDeviceHandle[] device_list, IntPtr[] lengths, IntPtr[] binaries, int[] binary_status)
        {
            var handle = CreateProgramWithBinary(context, num_devices, device_list, lengths, binaries, binary_status, out ComputeErrorCode errcode_ret);

            ComputeException.ThrowOnError(errcode_ret);
            return(handle);
        }
Ejemplo n.º 10
0
 public static void GetContextInfoWrapper(CLContextHandle context,
                                          ComputeContextInfo param_name,
                                          IntPtr param_value_size,
                                          IntPtr param_value,
                                          out IntPtr param_value_size_ret)
 {
     ComputeException.ThrowOnError(GetContextInfo(context, param_name, param_value_size, param_value, out param_value_size_ret));
 }
Ejemplo n.º 11
0
 public extern static CLProgramHandle CreateProgramWithBinary(
     CLContextHandle context,
     Int32 num_devices,
     [MarshalAs(UnmanagedType.LPArray)] CLDeviceHandle[] device_list,
     [MarshalAs(UnmanagedType.LPArray)] IntPtr[] lengths,
     [MarshalAs(UnmanagedType.LPArray)] IntPtr[] binaries,
     [MarshalAs(UnmanagedType.LPArray)] Int32[] binary_status,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 12
0
 public extern static CLMemoryHandle CreateImage2D(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     ref ComputeImageFormat image_format,
     IntPtr image_width,
     IntPtr image_height,
     IntPtr image_row_pitch,
     IntPtr host_ptr,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 13
0
 public new static CLMemoryHandle CreateFromGLTexture3D(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     Int32 target,
     Int32 miplevel,
     Int32 texture,
     out ComputeErrorCode errcode_ret)
 {
     Trace.WriteLine("WARNING! clCreateFromGLTexture3D has been deprecated in OpenCL 1.2.");
     return(CL11.CreateFromGLTexture3D(context, flags, target, miplevel, texture, out errcode_ret));
 }
Ejemplo n.º 14
0
Archivo: CL12.cs Proyecto: ddrinka/Cloo
 public static new CLMemoryHandle CreateFromGLTexture3D(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     Int32 target,
     Int32 miplevel,
     Int32 texture,
     out ComputeErrorCode errcode_ret)
 {
     Trace.WriteLine("WARNING! clCreateFromGLTexture3D has been deprecated in OpenCL 1.2.");
     return CL11.CreateFromGLTexture3D(context, flags, target, miplevel, texture, out errcode_ret);
 }
Ejemplo n.º 15
0
 public new static CLMemoryHandle CreateImage2D(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     ref ComputeImageFormat image_format,
     IntPtr image_width,
     IntPtr image_height,
     IntPtr image_row_pitch,
     IntPtr host_ptr,
     out ComputeErrorCode errcode_ret)
 {
     Trace.WriteLine("WARNING! clCreateImage2D has been deprecated in OpenCL 1.2.");
     return(CL11.CreateImage2D(context, flags, ref image_format, image_width, image_height, image_row_pitch, host_ptr, out errcode_ret));
 }
Ejemplo n.º 16
0
Archivo: CL12.cs Proyecto: ddrinka/Cloo
 public static new CLMemoryHandle CreateImage2D(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     ref ComputeImageFormat image_format,
     IntPtr image_width,
     IntPtr image_height,
     IntPtr image_row_pitch,
     IntPtr host_ptr,
     out ComputeErrorCode errcode_ret)
 {
     Trace.WriteLine("WARNING! clCreateImage2D has been deprecated in OpenCL 1.2.");
     return CL11.CreateImage2D(context, flags, ref image_format, image_width, image_height, image_row_pitch, host_ptr, out errcode_ret);
 }
Ejemplo n.º 17
0
 public new static CLMemoryHandle CreateImage3D(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     ref ComputeImageFormat image_format,
     IntPtr image_width,
     IntPtr image_height,
     IntPtr image_depth,
     IntPtr image_row_pitch,
     IntPtr image_slice_pitch,
     IntPtr host_ptr,
     out ComputeErrorCode errcode_ret)
 {
     RILogManager.Default?.SendTrace("WARNING! clCreateImage3D has been deprecated in OpenCL 1.2.");
     return(CL11.CreateImage3D(context, flags, ref image_format, image_width, image_height, image_depth, image_row_pitch, image_slice_pitch, host_ptr, out errcode_ret));
 }
Ejemplo n.º 18
0
 public static extern ComputeErrorCode GetContextInfo(
     CLContextHandle context,
     ComputeContextInfo param_name,
     IntPtr param_value_size,
     IntPtr param_value,
     out IntPtr param_value_size_ret);
Ejemplo n.º 19
0
 public static extern ComputeErrorCode RetainContext(
     CLContextHandle context);
Ejemplo n.º 20
0
 public static extern CLMemoryHandle CreateImage3D(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     ref ComputeImageFormat image_format,
     IntPtr image_width,
     IntPtr image_height,
     IntPtr image_depth,
     IntPtr image_row_pitch,
     IntPtr image_slice_pitch,
     IntPtr host_ptr,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 21
0
 public static extern CLProgramHandle CreateProgramWithSource(
     CLContextHandle context,
     Int32 count,
     [In] String[] strings,
     [MarshalAs(UnmanagedType.LPArray)] IntPtr[] lengths,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 22
0
 public ComputeErrorCode RetainContext(CLContextHandle context)
 {
     return StaticRetainContext(context);
 }
Ejemplo n.º 23
0
 public static extern CLMemoryHandle CreateFromGLRenderbuffer(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     Int32 renderbuffer,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 24
0
 public CLMemoryHandle CreateFromGLBuffer(CLContextHandle context, ComputeMemoryFlags flags, Int32 bufobj, out ComputeErrorCode errcode_ret)
 {
     return StaticCreateFromGLBuffer(context, flags, bufobj, out errcode_ret);
 }
Ejemplo n.º 25
0
 public extern static CLCommandQueueHandle CreateCommandQueueWithProperties(
     CLContextHandle context,
     CLDeviceHandle device,
     [MarshalAs(UnmanagedType.LPArray)] ComputeCommandQueueFlags[] properties,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 26
0
 public CLMemoryHandle CreateBuffer(CLContextHandle context, ComputeMemoryFlags flags, IntPtr size, IntPtr host_ptr, out ComputeErrorCode errcode_ret)
 {
     return StaticCreateBuffer(context, flags, size, host_ptr, out errcode_ret);
 }
Ejemplo n.º 27
0
 public CLCommandQueueHandle CreateCommandQueueWithProperties(CLContextHandle context, CLDeviceHandle device, ComputeCommandQueueFlags properties, out ComputeErrorCode errcode_ret)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 28
0
 public void ComputeSvmFree(CLContextHandle context, CLMemoryHandle svm_pointer)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 29
0
 public CLMemoryHandle ComputeSvmAlloc(CLContextHandle context, ComputeMemoryFlags flags, IntPtr size, int alignment)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 30
0
 public extern static ComputeErrorCode TerminateContextKHR(
     CLContextHandle context);
Ejemplo n.º 31
0
 CLProgramHandle ICL10.CreateProgramWithBinary(CLContextHandle context, int num_devices, CLDeviceHandle[] device_list,
                                               IntPtr[] lengths, IntPtr[] binaries, int[] binary_status,
                                               out ComputeErrorCode errcode_ret)
 {
     return(CreateProgramWithBinary(context, num_devices, device_list, lengths, binaries, binary_status, out errcode_ret));
 }
Ejemplo n.º 32
0
 public CLMemoryHandle CreateFromGLTexture(CLContextHandle context, ComputeMemoryFlags flags, int texture_target, int miplevel, int texture, out ComputeErrorCode errcode_ret)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 33
0
 public extern static CLSamplerHandle CreateSampler(
     CLContextHandle context,
     [MarshalAs(UnmanagedType.Bool)] bool normalized_coords,
     ComputeImageAddressing addressing_mode,
     ComputeImageFiltering filter_mode,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 34
0
 CLMemoryHandle ICL10.CreateFromGLTexture3D(CLContextHandle context, ComputeMemoryFlags flags, int target, int miplevel,
                                            int texture, out ComputeErrorCode errcode_ret)
 {
     return(CreateFromGLTexture3D(context, flags, target, miplevel, texture, out errcode_ret));
 }
Ejemplo n.º 35
0
 public ComputeErrorCode LinkProgram(CLContextHandle context, int num_devices, [MarshalAs(UnmanagedType.LPArray)] CLDeviceHandle[] device_list, string options, int num_input_programs, ComputeProgramBuildNotifier pfn_notify, IntPtr user_data, out ComputeErrorCode errcode_ret)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 36
0
 public extern static ComputeErrorCode ReleaseContext(
     CLContextHandle context);
Ejemplo n.º 37
0
 public static extern CLCommandQueueHandle CreateCommandQueue(
     CLContextHandle context,
     CLDeviceHandle device,
     ComputeCommandQueueFlags properties,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 38
0
 public extern static CLCommandQueueHandle CreateCommandQueue(
     CLContextHandle context,
     CLDeviceHandle device,
     ComputeCommandQueueFlags properties,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 39
0
 public static extern CLMemoryHandle CreateFromGLTexture3D(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     Int32 target,
     Int32 miplevel,
     Int32 texture,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 40
0
 public extern static CLProgramHandle CreateProgramWithSource(
     CLContextHandle context,
     Int32 count,
     String[] strings,
     [MarshalAs(UnmanagedType.LPArray)] IntPtr[] lengths,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 41
0
 public static extern CLProgramHandle CreateProgramWithBinary(
     CLContextHandle context,
     Int32 num_devices,
     [MarshalAs(UnmanagedType.LPArray)] CLDeviceHandle[] device_list,
     [MarshalAs(UnmanagedType.LPArray)] IntPtr[] lengths,
     [MarshalAs(UnmanagedType.LPArray)] IntPtr[] binaries,
     [MarshalAs(UnmanagedType.LPArray)] Int32[] binary_status,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 42
0
 CLMemoryHandle ICL10.CreateFromGLBuffer(CLContextHandle context, ComputeMemoryFlags flags, int bufobj,
                                         out ComputeErrorCode errcode_ret)
 {
     return(CreateFromGLBuffer(context, flags, bufobj, out errcode_ret));
 }
Ejemplo n.º 43
0
 public static extern CLSamplerHandle CreateSampler(
     CLContextHandle context,
     [MarshalAs(UnmanagedType.Bool)] bool normalized_coords,
     ComputeImageAddressing addressing_mode,
     ComputeImageFiltering filter_mode,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 44
0
 public CLSamplerHandle CreateSamplerWithProperties(CLContextHandle context, [MarshalAs(UnmanagedType.LPArray)] ComputeSamplerInfo[] normalized_coords, out ComputeErrorCode errcode_ret)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 45
0
 public static extern ComputeErrorCode GetSupportedImageFormats(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     ComputeMemoryType image_type,
     Int32 num_entries,
     [Out, MarshalAs(UnmanagedType.LPArray)] ComputeImageFormat[] image_formats,
     out Int32 num_image_formats);
Ejemplo n.º 46
0
 public CLEventHandle CreateUserEvent(CLContextHandle context, out ComputeErrorCode errcode_ret)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 47
0
 public static extern CLMemoryHandle CreateBuffer(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     IntPtr size,
     IntPtr host_ptr,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 48
0
 public ComputeErrorCode GetContextInfo(CLContextHandle context, ComputeContextInfo param_name, IntPtr param_value_size, IntPtr param_value, out IntPtr param_value_size_ret)
 {
     return StaticGetContextInfo(context, param_name, param_value_size, param_value, out param_value_size_ret);
 }
Ejemplo n.º 49
0
 CLProgramHandle ICL10.CreateProgramWithSource(CLContextHandle context, int count, string[] strings, IntPtr[] lengths,
                                               out ComputeErrorCode errcode_ret)
 {
     return(CreateProgramWithSource(context, count, strings, lengths, out errcode_ret));
 }
Ejemplo n.º 50
0
 public static extern CLMemoryHandle StaticCreateFromGLBuffer(CLContextHandle context, ComputeMemoryFlags flags, Int32 bufobj, out ComputeErrorCode errcode_ret);
Ejemplo n.º 51
0
 public CLMemoryHandle CreateFromGLTexture2D(CLContextHandle context, ComputeMemoryFlags flags, Int32 target, Int32 miplevel, Int32 texture, out ComputeErrorCode errcode_ret)
 {
     return StaticCreateFromGLTexture2D(context, flags, target, miplevel, texture, out errcode_ret);
 }
Ejemplo n.º 52
0
 public static void ReleaseContextWrapper(CLContextHandle context)
 {
     ComputeException.ThrowOnError(ReleaseContext(context));
 }
Ejemplo n.º 53
0
 public extern static CLMemoryHandle CreateFromGLRenderbuffer(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     Int32 renderbuffer,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 54
0
 public CLMemoryHandle CreateImage(CLContextHandle context, ComputeMemoryFlags flags, ref ComputeImageFormat image_format, ref ComputeImageDescription image_desc, IntPtr host_ptr, out ComputeErrorCode errcode_ret)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 55
0
 public extern static ComputeErrorCode GetContextInfo(
     CLContextHandle context,
     ComputeContextInfo param_name,
     IntPtr param_value_size,
     IntPtr param_value,
     out IntPtr param_value_size_ret);
Ejemplo n.º 56
0
 public CLMemoryHandle CreateImage2D(CLContextHandle context, ComputeMemoryFlags flags, ref ComputeImageFormat image_format, IntPtr image_width, IntPtr image_height, IntPtr image_row_pitch, IntPtr host_ptr, out ComputeErrorCode errcode_ret)
 {
     return StaticCreateImage2D(context, flags,ref image_format, image_width, image_height, image_row_pitch, host_ptr, out errcode_ret);
 }
Ejemplo n.º 57
0
 public extern static CLMemoryHandle CreateBuffer(
     CLContextHandle context,
     ComputeMemoryFlags flags,
     IntPtr size,
     IntPtr host_ptr,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 58
0
 public CLMemoryHandle CreatePipe(CLContextHandle context, ComputeMemoryFlags flags, int pipe_packet_size, int pipe_max_packets, [MarshalAs(UnmanagedType.LPArray)] IntPtr[] properties, out ComputeErrorCode errcode_ret)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 59
0
 public extern static CLEventHandle CreateUserEvent(
     CLContextHandle context,
     out ComputeErrorCode errcode_ret);
Ejemplo n.º 60
0
 public CLProgramHandle CreateProgramWithBuiltInKernels(CLContextHandle context, int num_devices, [MarshalAs(UnmanagedType.LPArray)] CLDeviceHandle[] device_list, string kernel_names, out ComputeErrorCode errcode_ret)
 {
     throw new NotImplementedException();
 }