JOCL v2.6.0-rc-20250722
JOCL, OpenCL® API Binding for Java™ (public API).
com.jogamp.opencl.test.util.MiscUtils Class Reference
Collaboration diagram for com.jogamp.opencl.test.util.MiscUtils:

Static Public Member Functions

static final void fillBuffer (final ByteBuffer buffer, final int seed)
 
static final int roundUp (final int groupSize, final int globalSize)
 
static final void checkIfEqual (final ByteBuffer a, final ByteBuffer b, final int elements)
 
static final boolean isKnownOSWithoutCLImpl ()
 

Static Public Attributes

static final int ONE_MB = 1048576
 
static final int NUM_ELEMENTS = 10000000
 

Detailed Description

Author
Michael Bien, et.al

Definition at line 44 of file MiscUtils.java.

Member Function Documentation

◆ checkIfEqual()

static final void com.jogamp.opencl.test.util.MiscUtils.checkIfEqual ( final ByteBuffer  a,
final ByteBuffer  b,
final int  elements 
)
static

Definition at line 70 of file MiscUtils.java.

◆ fillBuffer()

static final void com.jogamp.opencl.test.util.MiscUtils.fillBuffer ( final ByteBuffer  buffer,
final int  seed 
)
static

Definition at line 51 of file MiscUtils.java.

◆ isKnownOSWithoutCLImpl()

static final boolean com.jogamp.opencl.test.util.MiscUtils.isKnownOSWithoutCLImpl ( )
static
Returns
true if OpenCL is not available for this operating system, CPU architecture, et cetera. This is meant to be a check that there can't possibly be a driver installed because nobody makes one, not just a check that we didn't see one.

To check whether an OpenCL implementation/library has actually been loaded, use CLImpl#isAvailable().

Definition at line 100 of file MiscUtils.java.

◆ roundUp()

static final int com.jogamp.opencl.test.util.MiscUtils.roundUp ( final int  groupSize,
final int  globalSize 
)
static

Definition at line 61 of file MiscUtils.java.

Member Data Documentation

◆ NUM_ELEMENTS

final int com.jogamp.opencl.test.util.MiscUtils.NUM_ELEMENTS = 10000000
static

Definition at line 49 of file MiscUtils.java.

◆ ONE_MB

final int com.jogamp.opencl.test.util.MiscUtils.ONE_MB = 1048576
static

Definition at line 47 of file MiscUtils.java.


The documentation for this class was generated from the following file: