diff --git a/targets/tests/NumericalTests/Utilities/LogFileInformation/LogFileHead/LogFileHead.cpp b/targets/tests/NumericalTests/Utilities/LogFileInformation/LogFileHead/LogFileHead.cpp index e77aa1461df8699507ca29d6b5ec4ad168a6aa66..40a7e7d9902db2d6278e09476832973923eb71e0 100644 --- a/targets/tests/NumericalTests/Utilities/LogFileInformation/LogFileHead/LogFileHead.cpp +++ b/targets/tests/NumericalTests/Utilities/LogFileInformation/LogFileHead/LogFileHead.cpp @@ -25,7 +25,9 @@ std::string LogFileHead::getOutput() for (int i = 0; i < devices.size(); i++) { cudaDeviceProp prop; cudaGetDeviceProperties(&prop, devices.at(i)); - oss << prop.name; + std::string deviceName = prop.name; + deviceName.assign(deviceName.begin(), remove_if(deviceName.begin(), deviceName.end(), &isspace)); + oss << deviceName; if (i < devices.size() - 1) oss << " "; else