summaryrefslogtreecommitdiff
path: root/src/cupp11.hpp
diff options
context:
space:
mode:
authorTyler Sorensen <tylersorensen3221@hotmail.com>2018-07-14 19:50:47 -0400
committerTyler Sorensen <tylersorensen3221@hotmail.com>2018-07-14 19:50:47 -0400
commit7709a7308bce5492e06d8867a4dd9dff5b2ba950 (patch)
treeed35acf41257752ec165480c2298edf17080da4c /src/cupp11.hpp
parent36093429fd444d0a1fc7de25dfaf7f2f775cfabc (diff)
Applied feedback from Cedric from first pull request
Diffstat (limited to 'src/cupp11.hpp')
-rw-r--r--src/cupp11.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cupp11.hpp b/src/cupp11.hpp
index a1cb1614..ce765844 100644
--- a/src/cupp11.hpp
+++ b/src/cupp11.hpp
@@ -327,6 +327,11 @@ public:
std::string AMDBoardName() const { return ""; }
std::string NVIDIAComputeCapability() const { return Capabilities(); }
+ // Returns if the Nvidia chip is a Volta or later archicture (major version 7 or higher)
+ bool IsPostNVIDIAVolta() const {
+ return GetInfo(CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR) >= 7;
+ }
+
// Retrieves the above extra information
std::string GetExtraInfo() const { return NVIDIAComputeCapability(); }