diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-02-07 11:59:30 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-02-07 11:59:30 +0100 |
commit | 00be6f7530a16eb17f367b45d498e1e483b61b8d (patch) | |
tree | 47da8a24c723a0c1a583400af95d657d5b7ada59 /include | |
parent | c76f1d9dbb77746012c688a8d60ed45559ad0a4a (diff) |
Added dictionary with short and long OpenCL vendor names to fix issues with Intel having multiple names
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/database.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/internal/database.h b/include/internal/database.h index 9107f978..08e449fa 100644 --- a/include/internal/database.h +++ b/include/internal/database.h @@ -57,6 +57,17 @@ class Database { // The OpenCL device vendors static constexpr auto kDeviceVendorAll = "default"; + static constexpr auto kDeviceVendorIntel = "Intel"; + static constexpr auto kDeviceVendorAMD = "AMD"; + static constexpr auto kDeviceVendorNVIDIA = "NVIDIA"; + + // Alternative names for the above vendors + const std::unordered_map<std::string,std::string> kVendorNames { + {"Intel(R) Corporation", kDeviceVendorIntel}, + {"GenuineIntel", kDeviceVendorIntel}, + {"Advanced Micro Devices, Inc.", kDeviceVendorAMD}, + {"NVIDIA Corporation", kDeviceVendorNVIDIA}, + }; // The database consists of separate database entries, stored together in a vector static const DatabaseEntry XaxpySingle, XaxpyDouble, XaxpyComplexSingle, XaxpyComplexDouble; |