DPC++ Runtime
Runtime libraries for oneAPI DPC++
|
|
Go to the documentation of this file.
26 #define _PI_OPENCL_PLUGIN_VERSION 1
28 #define _PI_OPENCL_PLUGIN_VERSION_STRING \
29 _PI_PLUGIN_VERSION_STRING(_PI_OPENCL_PLUGIN_VERSION)
55 std::regex rx(
"OpenCL ([0-9]+)\\.([0-9]+)");
58 if (std::regex_search(version, match, rx) && (match.size() == 3)) {
59 ocl_major = strtoul(match[1].str().c_str(),
nullptr, 10);
60 ocl_minor = strtoul(match[2].str().c_str(),
nullptr, 10);
83 return (*
this < v) || (*
this == v);
87 return (*
this > v) || (*
this == v);
108 inline const OpenCLVersion
V1_0(1, 0);
109 inline const OpenCLVersion
V1_1(1, 1);
110 inline const OpenCLVersion
V1_2(1, 2);
111 inline const OpenCLVersion
V2_0(2, 0);
112 inline const OpenCLVersion
V2_1(2, 1);
113 inline const OpenCLVersion
V2_2(2, 2);
114 inline const OpenCLVersion
V3_0(3, 0);
118 #endif // PI_OPENCL_HPP
const OpenCLVersion V1_0(1, 0)
bool operator!=(const OpenCLVersion &v) const
const OpenCLVersion V1_1(1, 1)
bool operator==(const OpenCLVersion &v) const
bool operator<(const OpenCLVersion &v) const
OpenCLVersion(const char *version)
const OpenCLVersion V2_1(2, 1)
OpenCLVersion(const std::string &version)
const OpenCLVersion V2_0(2, 0)
bool operator>(const OpenCLVersion &v) const
OpenCLVersion(unsigned int ocl_major, unsigned int ocl_minor)
bool operator<=(const OpenCLVersion &v) const
const OpenCLVersion V1_2(1, 2)
const OpenCLVersion V3_0(3, 0)
bool operator>=(const OpenCLVersion &v) const
const OpenCLVersion V2_2(2, 2)