Module: OpenCL::CommandQueue::OpenCL21
- Included in:
- OpenCL::CommandQueue
- Defined in:
- lib/opencl_ruby_ffi/CommandQueue.rb
Instance Method Summary collapse
-
#device_default ⇒ Object
Return the default CommandQueue for the underlying Device.
-
#enqueue_svm_migrate_mem(svn_ptrs, options = {}) ⇒ Object
Enqueues a command to migrate SVM memory area ==== Attributes.
Instance Method Details
#device_default ⇒ Object
Return the default CommandQueue for the underlying Device
1764 1765 1766 1767 1768 1769 |
# File 'lib/opencl_ruby_ffi/CommandQueue.rb', line 1764 def device_default ptr = MemoryPointer::new( CommandQueue ) error = OpenCL.clGetCommandQueueInfo(self, DEVICE_DEFAULT, CommandQueue.size, ptr, nil) error_check(error) return CommandQueue::new( ptr.read_pointer ) end |
#enqueue_svm_migrate_mem(svn_ptrs, options = {}) ⇒ Object
Enqueues a command to migrate SVM memory area
Attributes
-
svm_ptrs
- a single or an Array of SVM memory area to migrate -
options
- a hash containing named options
Options
-
:sizes
- a single or an Array of sizes to transfer -
:flags
- a single or an Array of :cl_mem_migration flags -
:event_wait_list
- if provided, a list of Event to wait upon before executing the command
Returns
the Event associated with the command
1786 1787 1788 |
# File 'lib/opencl_ruby_ffi/CommandQueue.rb', line 1786 def enqueue_svm_migrate_mem( svn_ptrs, = {} ) return OpenCL.enqueue_svm_migrate_mem( self, svn_ptrs, = {} ) end |