From 163474e17193268f9f29eebda6b264d1a951b4ee Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Sat, 16 Sep 2017 18:25:23 +0200 Subject: Fixed an issue with the NVIDIA compute capability not being retrieved properly --- src/clpp11.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV)) + + std::string{"."} + std::to_string(GetInfo(CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV)); } -- cgit v1.2.3