Object that can be argument in OpenCL kernels. Built-in implementations: [[CLBuffer]], java numbers, primitive arrays and `ByteBuffer`s.
(set-arg arg kernel n)
Specific implementation of setting the kernel arguments.
A wrapper for `cl_mem` objects, that also holds a `Pointer` to the cl mem object, context that created it, and size in bytes. It is useful in many functions that need that (redundant in Java) data because of the C background of OpenCL functions.
(enq-copy* this queue dst src-offset dst-offset cb wait-events ev)
A specific implementation for copying this `cl-mem` object to another cl mem.
(enq-fill* this queue pattern offset multiplier wait-events ev)
A specific implementation for filling this `cl-mem` object.
An object that represents memory that participates in OpenCL operations. It can be on the device ([[CLMem]]), or on the host. Built-in implementations: cl buffer, Java primitive arrays and `ByteBuffer`s.
JOCL `Pointer` to this object.
Memory size of this cl or host object in bytes.
A wrapper for SVM Buffer objects, that also holds a context that created it, `Pointer`, size in bytes, and can create a `ByteBuffer`. It is useful in many functions that need that (redundant in Java) data because of the C background of OpenCL functions.
(byte-buffer this offset size)
Creates a Java `ByteBuffer` for this SVM memory.