summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsychocrypt <psychocryptHPC@gmail.com>2018-02-02 21:15:50 +0100
committerGitHub <noreply@github.com>2018-02-02 21:15:50 +0100
commitf98eb563db944641e0df91b951a1f8970e7d14a9 (patch)
treea0092461ea7f795a466a3ade23ff361a76d34543
parenta8e83eec94288cf00d5003071d24221b29f30cab (diff)
parent064804bd17be1216dba42fa55c820294c5e763a3 (diff)
downloadxmr-stak-f98eb563db944641e0df91b951a1f8970e7d14a9.zip
xmr-stak-f98eb563db944641e0df91b951a1f8970e7d14a9.tar.gz
Merge pull request #1026 from ryanhattam/patch-1
Fix Disabling AMD GPUs
-rw-r--r--xmrstak/backend/amd/jconf.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmrstak/backend/amd/jconf.cpp b/xmrstak/backend/amd/jconf.cpp
index 07afb19..f126342 100644
--- a/xmrstak/backend/amd/jconf.cpp
+++ b/xmrstak/backend/amd/jconf.cpp
@@ -56,9 +56,10 @@ struct configVal {
Type iType;
};
-//Same order as in configEnum, as per comment above
+// Same order as in configEnum, as per comment above
+// kNullType means any type
configVal oConfigValues[] = {
- { aGpuThreadsConf, "gpu_threads_conf", kArrayType },
+ { aGpuThreadsConf, "gpu_threads_conf", kNullType },
{ iPlatformIdx, "platform_index", kNumberType }
};
@@ -68,6 +69,8 @@ inline bool checkType(Type have, Type want)
{
if(want == have)
return true;
+ else if(want == kNullType)
+ return true;
else if(want == kTrueType && have == kFalseType)
return true;
else if(want == kFalseType && have == kTrueType)
OpenPOWER on IntegriCloud