Skip to content

Commit

Permalink
fix amd auto suggestion
Browse files Browse the repository at this point in the history
Platform index zero was always used to search for the device detection.

Fix: use correct detected AMD platform index
  • Loading branch information
psychocrypt committed Oct 4, 2017
1 parent 8ee452e commit bf07d73
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions xmrstak/backend/amd/autoAdjust.hpp
Expand Up @@ -52,14 +52,16 @@ class autoAdjust
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;
Expand Down

0 comments on commit bf07d73

Please sign in to comment.