Module: OpenCL::Device::OpenCL11
- Included in:
- OpenCL::Device
- Defined in:
- lib/opencl_ruby_ffi/Device.rb
Instance Method Summary collapse
-
#host_unified_memory ⇒ Object
Returns the OpenCL::Device::host_unified_memory info.
-
#native_vector_width_char ⇒ Object
Returns the OpenCL::Device::native_vector_width_char info.
-
#native_vector_width_double ⇒ Object
Returns the OpenCL::Device::native_vector_width_double info.
-
#native_vector_width_float ⇒ Object
Returns the OpenCL::Device::native_vector_width_float info.
-
#native_vector_width_half ⇒ Object
Returns the OpenCL::Device::native_vector_width_half info.
-
#native_vector_width_int ⇒ Object
Returns the OpenCL::Device::native_vector_width_int info.
-
#native_vector_width_long ⇒ Object
Returns the OpenCL::Device::native_vector_width_long info.
-
#native_vector_width_short ⇒ Object
Returns the OpenCL::Device::native_vector_width_short info.
-
#opencl_c_version ⇒ Object
Returns the OpenCL::Device::opencl_c_version info.
-
#opencl_c_version_number ⇒ Object
returs a floating point number corresponding to the OpenCL C version of the Device.
-
#preferred_vector_width_half ⇒ Object
Returns the OpenCL::Device::preferred_vector_width_half info.
Instance Method Details
#host_unified_memory ⇒ Object
Returns the OpenCL::Device::host_unified_memory info
146 |
# File 'lib/opencl_ruby_ffi/Device.rb', line 146 get_info("Device", :cl_bool, "host_unified_memory") |
#native_vector_width_char ⇒ Object
Returns the OpenCL::Device::native_vector_width_char info
147 |
# File 'lib/opencl_ruby_ffi/Device.rb', line 147 get_info("Device", :cl_uint, "native_vector_width_char") |
#native_vector_width_double ⇒ Object
Returns the OpenCL::Device::native_vector_width_double info
152 |
# File 'lib/opencl_ruby_ffi/Device.rb', line 152 get_info("Device", :cl_uint, "native_vector_width_double") |
#native_vector_width_float ⇒ Object
Returns the OpenCL::Device::native_vector_width_float info
151 |
# File 'lib/opencl_ruby_ffi/Device.rb', line 151 get_info("Device", :cl_uint, "native_vector_width_float") |
#native_vector_width_half ⇒ Object
Returns the OpenCL::Device::native_vector_width_half info
153 |
# File 'lib/opencl_ruby_ffi/Device.rb', line 153 get_info("Device", :cl_uint, "native_vector_width_half") |
#native_vector_width_int ⇒ Object
Returns the OpenCL::Device::native_vector_width_int info
149 |
# File 'lib/opencl_ruby_ffi/Device.rb', line 149 get_info("Device", :cl_uint, "native_vector_width_int") |
#native_vector_width_long ⇒ Object
Returns the OpenCL::Device::native_vector_width_long info
150 |
# File 'lib/opencl_ruby_ffi/Device.rb', line 150 get_info("Device", :cl_uint, "native_vector_width_long") |
#native_vector_width_short ⇒ Object
Returns the OpenCL::Device::native_vector_width_short info
148 |
# File 'lib/opencl_ruby_ffi/Device.rb', line 148 get_info("Device", :cl_uint, "native_vector_width_short") |
#opencl_c_version ⇒ Object
Returns the OpenCL::Device::opencl_c_version info
154 |
# File 'lib/opencl_ruby_ffi/Device.rb', line 154 get_info("Device", :string, "opencl_c_version") |
#opencl_c_version_number ⇒ Object
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_half ⇒ Object
Returns the OpenCL::Device::preferred_vector_width_half info
145 |
# File 'lib/opencl_ruby_ffi/Device.rb', line 145 get_info("Device", :cl_uint, "preferred_vector_width_half") |