mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-18 05:51:45 +02:00
nvidia: fix return value if no device is found
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user