Module openj9.cuda
Package com.ibm.cuda

Class CudaBuffer

java.lang.Object
com.ibm.cuda.CudaBuffer
All Implemented Interfaces:
AutoCloseable

public final class CudaBuffer extends Object implements AutoCloseable
The CudaBuffer class represents a region of memory on a specific device.

Data may be transferred between the device and the Java host via the various copyTo or copyFrom methods. A buffer may be filled with a specific pattern through use of one of the fillXxx methods.

When no longer required, a buffer must be closed.