diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-09-16 18:25:23 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-09-16 18:25:23 +0200 |
commit | 163474e17193268f9f29eebda6b264d1a951b4ee (patch) | |
tree | 02a3dec134699c50a3de24cf5528de59ef319bbe /src/clpp11.hpp | |
parent | 4e317f5e85916a275ff3d22225f7cd42cea03d9b (diff) |
Fixed an issue with the NVIDIA compute capability not being retrieved properly
Diffstat (limited to 'src/clpp11.hpp')
-rw-r--r-- | src/clpp11.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clpp11.hpp b/src/clpp11.hpp index df21e110..7c1457b0 100644 --- a/src/clpp11.hpp +++ b/src/clpp11.hpp @@ -325,8 +325,8 @@ class Device { #ifndef CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV #define CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV 0x4001 #endif - return std::string{"SM"} + GetInfoString(CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV) + - std::string{"."} + GetInfoString(CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV); + return std::string{"SM"} + std::to_string(GetInfo<cl_uint>(CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV)) + + std::string{"."} + std::to_string(GetInfo<cl_uint>(CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV)); } |