CUDA fix bug with listing device names

This commit is contained in:
Tom Deakin 2015-07-16 18:14:11 +01:00
parent 153b6f2105
commit 39a63b7d32

View File

@ -321,6 +321,7 @@ void parseArguments(int argc, char *argv[])
std::cout << "Devices:" << std::endl;
for (int i = 0; i < count; i++)
{
cudaSetDevice(i);
std::cout << i << ": " << getDeviceName() << std::endl;
}
std::cout << std::endl;