Class: OpenCL::Device::AtomicCapabilities
- Defined in:
- lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb
Overview
Bitfield that maps the :cl_device_atomic_capabilities
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
1127 1128 1129 1130 1131 1132 1133 |
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 1127 def names fs = [] %w( ORDER_RELAXED ORDER_ACQ_REL ORDER_SEQ_CST SCOPE_WORK_ITEM SCOPE_WORK_GROUP SCOPE_DEVICE SCOPE_ALL_DEVICES ).each { |f| fs.push(f) if self.include?( self.class.const_get(f) ) } return fs end |
Constant Summary collapse
- ORDER_RELAXED =
(1 << 0)
- ORDER_ACQ_REL =
(1 << 1)
- ORDER_SEQ_CST =
(1 << 2)
- SCOPE_WORK_ITEM =
(1 << 3)
- SCOPE_WORK_GROUP =
(1 << 4)
- SCOPE_DEVICE =
(1 << 5)
- SCOPE_ALL_DEVICES =
(1 << 6)