Skip to content
Snippets Groups Projects
Commit edf17056 authored by Timon Habenicht's avatar Timon Habenicht
Browse files

deletes space in device names

parent 9ee70add
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment