Class: OpenCL::CommandQueue::Properties
- Defined in:
- lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb
Instance Method Summary collapse
-
#names ⇒ Object
Returns an Array of String representing the different flags set.
Methods inherited from Bitfield
#&, #^, #coerce, #flags, #flags=, #include?, #initialize, #inspect, #to_i, #to_int, #to_s, #|
Constructor Details
This class inherits a constructor from OpenCL::Bitfield
Instance Method Details
#names ⇒ Object
Returns an Array of String representing the different flags set
1218 1219 1220 1221 1222 1223 1224 |
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 1218 def names fs = [] %w( OUT_OF_ORDER_EXEC_MODE_ENABLE PROFILING_ENABLE ON_DEVICE ON_DEVICE_DEFAULT ).each { |f| fs.push(f) if self.include?( self.class.const_get(f) ) } return fs end |
Constant Summary collapse
- OUT_OF_ORDER_EXEC_MODE_ENABLE =
(1 << 0)
- PROFILING_ENABLE =
(1 << 1)
- ON_DEVICE =
(1 << 2)
- ON_DEVICE_DEFAULT =
(1 << 3)