lib/opencl_ruby_ffi/ext/device_fission.rb
# Returns the list of partition types supported by the Device
Returns the list of partition types supported by the Device
Returns the list of partition types supported by the Device
def partition_types_ext
        ptr1 = MemoryPointer::new( :size_t, 1)
        error = OpenCL.clGetDeviceInfo(self, PARTITION_TYPES_EXT, 0, nil, ptr1)
        error_check(error)
        ptr2 = MemoryPointer::new( ptr1.read_size_t )
        error = OpenCL.clGetDeviceInfo(self, PARTITION_TYPES_EXT, ptr1.read_size_t, ptr2, nil)
        error_check(error)
        arr = ptr2.get_array_of_cl_device_partition_property_ext(0, ptr1.read_size_t/ OpenCL.find_type(:cl_device_partition_property_ext).size)
        arr.reject! { |e| e == 0 }
        return arr.collect { |e| PartitionEXT::new(e.to_i) }
      end
def partition_types_ext ptr1 = MemoryPointer :: new ( :size_t , 1 ) error = OpenCL . clGetDeviceInfo ( self , PARTITION_TYPES_EXT , 0 , nil , ptr1 ) error_check ( error ) ptr2 = MemoryPointer :: new ( ptr1 . read_size_t ) error = OpenCL . clGetDeviceInfo ( self , PARTITION_TYPES_EXT , ptr1 . read_size_t , ptr2 , nil ) error_check ( error ) arr = ptr2 . get_array_of_cl_device_partition_property_ext ( 0 , ptr1 . read_size_t / OpenCL . find_type ( :cl_device_partition_property_ext ) . size ) arr . reject! { | e | e == 0 } return arr . collect { | e | PartitionEXT :: new ( e . to_i ) } end
Returns the list of partition types supported by the Device
Returns the list of partition types supported by the Device