diff options
author | fireice-uk <fireice-uk@users.noreply.github.com> | 2017-10-22 14:14:57 +0100 |
---|---|---|
committer | fireice-uk <fireice-uk@users.noreply.github.com> | 2017-10-22 14:18:32 +0100 |
commit | 203fad6181ee224762d5e37828849605c10f5adf (patch) | |
tree | fa45d1816538ee964ee13f1f82f7fff550e3dcbb /xmrstak | |
parent | 610f4f0fa72c60daa14dc0661f58ba23563afb61 (diff) | |
download | xmr-stak-203fad6181ee224762d5e37828849605c10f5adf.zip xmr-stak-203fad6181ee224762d5e37828849605c10f5adf.tar.gz |
Proper removal of gpu_thread_num
Diffstat (limited to 'xmrstak')
-rw-r--r-- | xmrstak/backend/amd/jconf.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/xmrstak/backend/amd/jconf.cpp b/xmrstak/backend/amd/jconf.cpp index c2bf1fa..0617aeb 100644 --- a/xmrstak/backend/amd/jconf.cpp +++ b/xmrstak/backend/amd/jconf.cpp @@ -48,7 +48,7 @@ using namespace rapidjson; /* * This enum needs to match index in oConfigValues, otherwise we will get a runtime error */ -enum configEnum { iGpuThreadNum, aGpuThreadsConf, iPlatformIdx }; +enum configEnum { aGpuThreadsConf, iPlatformIdx }; struct configVal { configEnum iName; @@ -58,7 +58,6 @@ struct configVal { //Same order as in configEnum, as per comment above configVal oConfigValues[] = { - { iGpuThreadNum, "gpu_thread_num", kNumberType }, { aGpuThreadsConf, "gpu_threads_conf", kArrayType }, { iPlatformIdx, "platform_index", kNumberType } }; @@ -235,14 +234,6 @@ bool jconf::parse_config(const char* sFilename) } size_t n_thd = prv->configValues[aGpuThreadsConf]->Size(); - if(prv->configValues[iGpuThreadNum]->GetUint64() != n_thd) - { - printer::inst()->print_msg(L0, - "Invalid config file. Your GPU config array has %llu members, while you want to use %llu threads.", - int_port(n_thd), int_port(prv->configValues[iGpuThreadNum]->GetUint64())); - return false; - } - thd_cfg c; for(size_t i=0; i < n_thd; i++) { |