Module: OpenCL::Device::OpenCL11

Included in:
OpenCL::Device
Defined in:
lib/opencl_ruby_ffi/Device.rb

Instance Method Summary collapse

Instance Method Details

#host_unified_memoryObject

Returns the OpenCL::Device::host_unified_memory info

Returns:

  • cl_bool



146
# File 'lib/opencl_ruby_ffi/Device.rb', line 146

get_info("Device", :cl_bool, "host_unified_memory")

#native_vector_width_charObject

Returns the OpenCL::Device::native_vector_width_char info

Returns:

  • cl_uint



147
# File 'lib/opencl_ruby_ffi/Device.rb', line 147

get_info("Device", :cl_uint, "native_vector_width_char")

#native_vector_width_doubleObject

Returns the OpenCL::Device::native_vector_width_double info

Returns:

  • cl_uint



152
# File 'lib/opencl_ruby_ffi/Device.rb', line 152

get_info("Device", :cl_uint, "native_vector_width_double")

#native_vector_width_floatObject

Returns the OpenCL::Device::native_vector_width_float info

Returns:

  • cl_uint



151
# File 'lib/opencl_ruby_ffi/Device.rb', line 151

get_info("Device", :cl_uint, "native_vector_width_float")

#native_vector_width_halfObject

Returns the OpenCL::Device::native_vector_width_half info

Returns:

  • cl_uint



153
# File 'lib/opencl_ruby_ffi/Device.rb', line 153

get_info("Device", :cl_uint, "native_vector_width_half")

#native_vector_width_intObject

Returns the OpenCL::Device::native_vector_width_int info

Returns:

  • cl_uint



149
# File 'lib/opencl_ruby_ffi/Device.rb', line 149

get_info("Device", :cl_uint, "native_vector_width_int")

#native_vector_width_longObject

Returns the OpenCL::Device::native_vector_width_long info

Returns:

  • cl_uint



150
# File 'lib/opencl_ruby_ffi/Device.rb', line 150

get_info("Device", :cl_uint, "native_vector_width_long")

#native_vector_width_shortObject

Returns the OpenCL::Device::native_vector_width_short info

Returns:

  • cl_uint



148
# File 'lib/opencl_ruby_ffi/Device.rb', line 148

get_info("Device", :cl_uint, "native_vector_width_short")

#opencl_c_versionObject

Returns the OpenCL::Device::opencl_c_version info

Returns:

  • string



154
# File 'lib/opencl_ruby_ffi/Device.rb', line 154

get_info("Device", :string,  "opencl_c_version")

#opencl_c_version_numberObject

returs a floating point number corresponding to the OpenCL C version of the Device



157
158
159
160
161
# File 'lib/opencl_ruby_ffi/Device.rb', line 157

def opencl_c_version_number
  ver = self.opencl_c_version
  n = ver.scan(/OpenCL C (\d+\.\d+)/)
  return n.first.first.to_f
end

#preferred_vector_width_halfObject

Returns the OpenCL::Device::preferred_vector_width_half info

Returns:

  • cl_uint



145
# File 'lib/opencl_ruby_ffi/Device.rb', line 145

get_info("Device", :cl_uint, "preferred_vector_width_half")