summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-10-04 20:57:45 +0200
committerpsychocrypt <psychocrypt@users.noreply.github.com>2017-10-04 23:15:33 +0200
commitbf07d73ca12f871466e6e1eccf6818b77d2d3c6d (patch)
tree2c4dc4b646039c4ece97ef99733b24df2eb68f16 /xmrstak/backend
parent8ee452eefae9be9d467602052131d3c5c9c0afb9 (diff)
downloadxmr-stak-bf07d73ca12f871466e6e1eccf6818b77d2d3c6d.zip
xmr-stak-bf07d73ca12f871466e6e1eccf6818b77d2d3c6d.tar.gz
fix amd auto suggestion
Platform index zero was always used to search for the device detection. Fix: use correct detected AMD platform index
Diffstat (limited to 'xmrstak/backend')
-rw-r--r--xmrstak/backend/amd/autoAdjust.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/xmrstak/backend/amd/autoAdjust.hpp b/xmrstak/backend/amd/autoAdjust.hpp
index dac0cfb..6157b25 100644
--- a/xmrstak/backend/amd/autoAdjust.hpp
+++ b/xmrstak/backend/amd/autoAdjust.hpp
@@ -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;
OpenPOWER on IntegriCloud