mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
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:
committed by
GitHub
parent
0a1456d8f9
commit
3bdd2f99b5
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user