Package com.jogamp.opencl
Class CLVersion
- java.lang.Object
-
- com.jogamp.opencl.CLVersion
-
- All Implemented Interfaces:
Comparable<CLVersion>
public class CLVersion extends Object implements Comparable<CLVersion>
Version of an OpenCL Implementation. All comparison operations use thegetSpecVersion()
for comparison.- Author:
- Michael Bien
-
-
Field Summary
Fields Modifier and Type Field Description static CLVersion
CL_1_0
static CLVersion
CL_1_1
static CLVersion
CL_1_2
static CLVersion
CL_2_0
static CLVersion
CL_2_1
String
fullversion
The full version String is defined as:OpenCL[space][major_version].[minor_version][space][platform-specific information]
String
implversion
The platform specific part of the version string.short
major
Mayor version number.short
minor
Minor version number.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(CLVersion other)
boolean
equals(Object obj)
Returns true if bothfullversion
Strings match.String
getFullVersion()
Returns the full, unfiltered version string.String
getImplVersion()
short
getMajor()
short
getMinor()
String
getSpecVersion()
Returns'"OpenCL " + major + "." + minor'
.int
hashCode()
boolean
isAtLeast(int major, int minor)
boolean
isAtLeast(CLVersion other)
boolean
isEqual(int major, int minor)
boolean
isEqual(CLVersion other)
String
toString()
-
-
-
Field Detail
-
CL_1_0
public static final CLVersion CL_1_0
-
CL_1_1
public static final CLVersion CL_1_1
-
CL_1_2
public static final CLVersion CL_1_2
-
CL_2_0
public static final CLVersion CL_2_0
-
CL_2_1
public static final CLVersion CL_2_1
-
fullversion
public final String fullversion
The full version String is defined as:OpenCL[space][major_version].[minor_version][space][platform-specific information]
-
implversion
public final String implversion
The platform specific part of the version string.- See Also:
fullversion
-
minor
public final short minor
Minor version number.- See Also:
fullversion
-
major
public final short major
Mayor version number.- See Also:
fullversion
-
-
Constructor Detail
-
CLVersion
protected CLVersion(String version)
-
-
Method Detail
-
compareTo
public int compareTo(CLVersion other)
- Specified by:
compareTo
in interfaceComparable<CLVersion>
-
isAtLeast
public boolean isAtLeast(CLVersion other)
-
isAtLeast
public boolean isAtLeast(int major, int minor)
-
isEqual
public boolean isEqual(CLVersion other)
-
isEqual
public boolean isEqual(int major, int minor)
-
getSpecVersion
public String getSpecVersion()
Returns'"OpenCL " + major + "." + minor'
.
-
getFullVersion
public String getFullVersion()
Returns the full, unfiltered version string.- See Also:
fullversion
-
getImplVersion
public String getImplVersion()
- See Also:
implversion
-
getMajor
public short getMajor()
- See Also:
major
-
getMinor
public short getMinor()
- See Also:
minor
-
equals
public boolean equals(Object obj)
Returns true if bothfullversion
Strings match.
-
-