diff options
Diffstat (limited to 'src/clpp11.hpp')
-rw-r--r-- | src/clpp11.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/clpp11.hpp b/src/clpp11.hpp index 2a25606c..e5b8b4a7 100644 --- a/src/clpp11.hpp +++ b/src/clpp11.hpp @@ -365,6 +365,14 @@ class Device { return false; } + // Returns the Qualcomm Adreno GPU version (i.e. a650, a730, a740, etc.) + std::string AdrenoVersion() const { + if (IsQualcomm()) { + return GetInfoString(CL_DEVICE_OPENCL_C_VERSION); + } + else { return std::string{""}; } + } + // Retrieves the above extra information (if present) std::string GetExtraInfo() const { if (HasExtension("cl_amd_device_attribute_query")) { return AMDBoardName(); } |