JOCL v2.6.0-rc-20250722
JOCL, OpenCL® API Binding for Java™ (public API).
com.jogamp.opencl.CLVersion Class Reference

Version of an OpenCL Implementation. More...

Inheritance diagram for com.jogamp.opencl.CLVersion:
Collaboration diagram for com.jogamp.opencl.CLVersion:

Public Member Functions

int compareTo (final CLVersion other)
 
boolean isAtLeast (final CLVersion other)
 
boolean isAtLeast (final int major, final int minor)
 
boolean isEqual (final CLVersion other)
 
boolean isEqual (final int major, final int minor)
 
String getSpecVersion ()
 Returns '"OpenCL " + major + "." + minor'. More...
 
String getFullVersion ()
 Returns the full, unfiltered version string. More...
 
String getImplVersion ()
 
short getMajor ()
 
short getMinor ()
 
String toString ()
 
int hashCode ()
 
boolean equals (final Object obj)
 Returns true if both fullversion Strings match. More...
 

Public Attributes

final String fullversion
 The full version String is defined as: OpenCL[space][major_version]. More...
 
final String implversion
 The platform specific part of the version string. More...
 
final short minor
 Minor version number. More...
 
final short major
 Mayor version number. More...
 

Static Public Attributes

static final CLVersion CL_1_0 = new CLVersion("OpenCL 1.0")
 
static final CLVersion CL_1_1 = new CLVersion("OpenCL 1.1")
 
static final CLVersion CL_1_2 = new CLVersion("OpenCL 1.2")
 
static final CLVersion CL_2_0 = new CLVersion("OpenCL 2.0")
 
static final CLVersion CL_2_1 = new CLVersion("OpenCL 2.1")
 

Protected Member Functions

 CLVersion (final String version)
 

Detailed Description

Version of an OpenCL Implementation.

All comparison operations use the getSpecVersion() for comparison.

Author
Michael Bien

Definition at line 42 of file CLVersion.java.

Constructor & Destructor Documentation

◆ CLVersion()

com.jogamp.opencl.CLVersion.CLVersion ( final String  version)
protected

Definition at line 73 of file CLVersion.java.

Member Function Documentation

◆ compareTo()

int com.jogamp.opencl.CLVersion.compareTo ( final CLVersion  other)

Definition at line 87 of file CLVersion.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equals()

boolean com.jogamp.opencl.CLVersion.equals ( final Object  obj)

Returns true if both fullversion Strings match.

Definition at line 167 of file CLVersion.java.

◆ getFullVersion()

String com.jogamp.opencl.CLVersion.getFullVersion ( )

Returns the full, unfiltered version string.

See also
fullversion

Definition at line 128 of file CLVersion.java.

Here is the caller graph for this function:

◆ getImplVersion()

String com.jogamp.opencl.CLVersion.getImplVersion ( )
See also
implversion

Definition at line 135 of file CLVersion.java.

◆ getMajor()

short com.jogamp.opencl.CLVersion.getMajor ( )
See also
major

Definition at line 142 of file CLVersion.java.

◆ getMinor()

short com.jogamp.opencl.CLVersion.getMinor ( )
See also
minor

Definition at line 149 of file CLVersion.java.

◆ getSpecVersion()

String com.jogamp.opencl.CLVersion.getSpecVersion ( )

Returns '"OpenCL " + major + "." + minor'.

Definition at line 120 of file CLVersion.java.

Here is the caller graph for this function:

◆ hashCode()

int com.jogamp.opencl.CLVersion.hashCode ( )

Definition at line 159 of file CLVersion.java.

◆ isAtLeast() [1/2]

boolean com.jogamp.opencl.CLVersion.isAtLeast ( final CLVersion  other)

Definition at line 101 of file CLVersion.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isAtLeast() [2/2]

boolean com.jogamp.opencl.CLVersion.isAtLeast ( final int  major,
final int  minor 
)

Definition at line 105 of file CLVersion.java.

Here is the call graph for this function:

◆ isEqual() [1/2]

boolean com.jogamp.opencl.CLVersion.isEqual ( final CLVersion  other)

Definition at line 109 of file CLVersion.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isEqual() [2/2]

boolean com.jogamp.opencl.CLVersion.isEqual ( final int  major,
final int  minor 
)

Definition at line 113 of file CLVersion.java.

◆ toString()

String com.jogamp.opencl.CLVersion.toString ( )

Definition at line 154 of file CLVersion.java.

Here is the call graph for this function:

Member Data Documentation

◆ CL_1_0

final CLVersion com.jogamp.opencl.CLVersion.CL_1_0 = new CLVersion("OpenCL 1.0")
static

Definition at line 46 of file CLVersion.java.

◆ CL_1_1

final CLVersion com.jogamp.opencl.CLVersion.CL_1_1 = new CLVersion("OpenCL 1.1")
static

Definition at line 47 of file CLVersion.java.

◆ CL_1_2

final CLVersion com.jogamp.opencl.CLVersion.CL_1_2 = new CLVersion("OpenCL 1.2")
static

Definition at line 48 of file CLVersion.java.

◆ CL_2_0

final CLVersion com.jogamp.opencl.CLVersion.CL_2_0 = new CLVersion("OpenCL 2.0")
static

Definition at line 49 of file CLVersion.java.

◆ CL_2_1

final CLVersion com.jogamp.opencl.CLVersion.CL_2_1 = new CLVersion("OpenCL 2.1")
static

Definition at line 50 of file CLVersion.java.

◆ fullversion

final String com.jogamp.opencl.CLVersion.fullversion

The full version String is defined as: OpenCL[space][major_version].

[minor_version][space][platform-specific information]

Definition at line 56 of file CLVersion.java.

◆ implversion

final String com.jogamp.opencl.CLVersion.implversion

The platform specific part of the version string.

See also
fullversion

Definition at line 61 of file CLVersion.java.

◆ major

final short com.jogamp.opencl.CLVersion.major

Mayor version number.

See also
fullversion

Definition at line 71 of file CLVersion.java.

◆ minor

final short com.jogamp.opencl.CLVersion.minor

Minor version number.

See also
fullversion

Definition at line 66 of file CLVersion.java.


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