Module: OpenCL::Context::OpenCL20
- Included in:
- OpenCL::Context
- Defined in:
- lib/opencl_ruby_ffi/Context.rb
Instance Method Summary collapse
-
#create_pipe(pipe_packet_size, pipe_max_packets, opts = {}) ⇒ Object
Creates a Pipe in the Context.
-
#svm_alloc(size, options = {}) ⇒ Object
Creates an SVMPointer pointing to an SVM area of memory in the Context.
-
#svm_free(svm_pointer) ⇒ Object
Frees an SVMPointer.
Instance Method Details
#create_pipe(pipe_packet_size, pipe_max_packets, opts = {}) ⇒ Object
Creates a Pipe in the Context
Attributes
-
pipe_packet_size
- size of a packet in the Pipe -
pipe_max_packets
- size of the Pipe in packet
Options
-
:flags
- a single or an Array of :cl_mem_flags specifying the flags to be used when creating the Buffer
464 465 466 |
# File 'lib/opencl_ruby_ffi/Context.rb', line 464 def create_pipe( pipe_packet_size, pipe_max_packets, opts = {} ) return OpenCL.create_pipe( self, pipe_packet_size, pipe_max_packets, opts ) end |
#svm_alloc(size, options = {}) ⇒ Object
Creates an SVMPointer pointing to an SVM area of memory in the Context
Attributes
-
size
- the size of the mmemory area to allocate -
options
- a hash containing named options
Options
-
:alignment
- imposes the minimum alignment in byte
478 479 480 |
# File 'lib/opencl_ruby_ffi/Context.rb', line 478 def svm_alloc(size, = {}) return OpenCL.svm_alloc( self, size, ) end |