mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-17 05:41:41 +02:00
fix amd auto suggestion
Platform index zero was always used to search for the device detection. Fix: use correct detected AMD platform index
This commit is contained in:
@@ -52,14 +52,16 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
devVec = getAMDDevices(0);
|
||||
devVec = getAMDDevices(platformIndex);
|
||||
|
||||
|
||||
int deviceCount = devVec.size();
|
||||
|
||||
if(deviceCount == 0)
|
||||
return false;
|
||||
|
||||
{
|
||||
printer::inst()->print_msg(L0,"WARNING: No AMD device found.");
|
||||
return false;
|
||||
}
|
||||
|
||||
generateThreadConfig(platformIndex);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user