Pass vendor macro to opencl kernel
This commit is contained in:
@@ -87,7 +87,7 @@ public:
|
||||
String name() const;
|
||||
String extensions() const;
|
||||
String version() const;
|
||||
String vendor() const;
|
||||
String vendorName() const;
|
||||
String OpenCL_C_Version() const;
|
||||
String OpenCLVersion() const;
|
||||
int deviceVersionMajor() const;
|
||||
@@ -164,14 +164,13 @@ public:
|
||||
enum
|
||||
{
|
||||
UNKNOWN_VENDOR=0,
|
||||
AMD=1,
|
||||
INTEL=2,
|
||||
NVIDIA=3
|
||||
VENDOR_AMD=1,
|
||||
VENDOR_INTEL=2,
|
||||
VENDOR_NVIDIA=3
|
||||
};
|
||||
|
||||
bool isAMD() const;
|
||||
bool isIntel() const;
|
||||
bool isNvidia() const;
|
||||
int vendorID() const;
|
||||
inline bool isAMD() const { return vendorID() == VENDOR_AMD; };
|
||||
inline bool isIntel() const { return vendorID() == VENDOR_INTEL; };
|
||||
|
||||
int maxClockFrequency() const;
|
||||
int maxComputeUnits() const;
|
||||
|
Reference in New Issue
Block a user