nvidia: fix return value if no device is found

This commit is contained in:
psychocrypt
2017-09-30 23:46:08 +02:00
parent 94b7327acc
commit c30c258b91
2 changed files with 3 additions and 5 deletions
+2 -4
View File
@@ -44,7 +44,6 @@ public:
*/
bool printConfig()
{
int platformIndex = getAMDPlatformIdx();
if(platformIndex == -1)
@@ -58,13 +57,12 @@ public:
int deviceCount = devVec.size();
if(deviceCount == 0)
if(deviceCount == 0)
return false;
generateThreadConfig(platformIndex);
return true;
}
private:
+1 -1
View File
@@ -38,7 +38,7 @@ public:
{
int deviceCount = 0;
if(cuda_get_devicecount(&deviceCount) == 0)
std::exit(0);
return false;
// evaluate config parameter for if auto adjustment is needed
// evaluate config parameter for if auto adjustment is needed
for(int i = 0; i < deviceCount; i++)