diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-11-19 16:31:08 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-11-19 16:31:08 +0100 |
commit | a3a8b44f598b3eca18ab226112bf5c2bc3b19df8 (patch) | |
tree | d9302e2e174817b91142739c254211cef0317acb /src/clpp11.hpp | |
parent | c6690df8962dc48112558c09531eeda9d93d1e97 (diff) |
Some fixed for the new auto-tuner to be compatible with the Python scripts
Diffstat (limited to 'src/clpp11.hpp')
-rw-r--r-- | src/clpp11.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/clpp11.hpp b/src/clpp11.hpp index 82fc44fd..0db64ad9 100644 --- a/src/clpp11.hpp +++ b/src/clpp11.hpp @@ -352,6 +352,13 @@ class Device { std::string{"."} + std::to_string(GetInfo<cl_uint>(CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV)); } + // Retrieves the above extra information (if present) + std::string GetExtraInfo() const { + if (HasExtension("cl_amd_device_attribute_query")) { return AMDBoardName(); } + if (HasExtension("cl_nv_device_attribute_query")) { return NVIDIAComputeCapability(); } + else { return std::string{""}; } + } + // Accessor to the private data-member const RawDeviceID& operator()() const { return device_; } private: |