cl_fill_image: Use CL_DEVICE_VERSION instead of CL_DEVICE_NUMERIC_VER… (#2043)

…SION

CL_DEVICE_NUMERIC_VERSION is only available from OpenCL 3.0 Use
CL_DEVICE_VERSION instead.
This commit is contained in:
Sreelakshmi Haridas Maruthur
2024-12-03 09:55:37 -07:00
committed by GitHub
parent 0a1456d8f9
commit 3bdd2f99b5
2 changed files with 7 additions and 13 deletions

View File

@@ -26,7 +26,10 @@
class Version {
public:
Version(): m_major(0), m_minor(0) {}
Version(cl_uint major, cl_uint minor): m_major(major), m_minor(minor) {}
int major() const { return m_major; }
int minor() const { return m_minor; }
bool operator>(const Version &rhs) const
{
return to_uint() > rhs.to_uint();