Class CLVersion

    • 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

      • 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
      • getMajor

        public short getMajor()
        See Also:
        major
      • getMinor

        public short getMinor()
        See Also:
        minor
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object