diff options
author | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-09-29 22:25:56 +0200 |
---|---|---|
committer | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-09-30 23:46:08 +0200 |
commit | d80cc9061d2459130dae6608cb29765055c44906 (patch) | |
tree | 084de13c85c62c73aaa43d343cb37ccccf0d5dc6 /xmrstak/backend | |
parent | a3c034e46ab933fe07d0c6e829074d79866dd4b5 (diff) | |
download | xmr-stak-d80cc9061d2459130dae6608cb29765055c44906.zip xmr-stak-d80cc9061d2459130dae6608cb29765055c44906.tar.gz |
rename `Params` to `params`
Diffstat (limited to 'xmrstak/backend')
-rw-r--r-- | xmrstak/backend/amd/autoAdjust.hpp | 4 | ||||
-rw-r--r-- | xmrstak/backend/amd/jconf.hpp | 2 | ||||
-rw-r--r-- | xmrstak/backend/amd/minethd.cpp | 2 | ||||
-rw-r--r-- | xmrstak/backend/backendConnector.cpp | 6 | ||||
-rw-r--r-- | xmrstak/backend/cpu/autoAdjust.hpp | 4 | ||||
-rw-r--r-- | xmrstak/backend/cpu/autoAdjustHwloc.hpp | 4 | ||||
-rw-r--r-- | xmrstak/backend/cpu/jconf.hpp | 2 | ||||
-rw-r--r-- | xmrstak/backend/cpu/minethd.cpp | 2 | ||||
-rw-r--r-- | xmrstak/backend/nvidia/autoAdjust.hpp | 4 | ||||
-rw-r--r-- | xmrstak/backend/nvidia/jconf.hpp | 2 | ||||
-rw-r--r-- | xmrstak/backend/nvidia/minethd.cpp | 2 |
11 files changed, 17 insertions, 17 deletions
diff --git a/xmrstak/backend/amd/autoAdjust.hpp b/xmrstak/backend/amd/autoAdjust.hpp index c936e30..c6f2ed7 100644 --- a/xmrstak/backend/amd/autoAdjust.hpp +++ b/xmrstak/backend/amd/autoAdjust.hpp @@ -102,8 +102,8 @@ private: configTpl.replace("PLATFORMINDEX",std::to_string(platformIndex)); configTpl.replace("NUMGPUS",std::to_string(devVec.size())); configTpl.replace("GPUCONFIG",conf); - configTpl.write(Params::inst().configFileAMD); - printer::inst()->print_msg(L0, "AMD: GPU configuration stored in file '%s'", Params::inst().configFileAMD.c_str()); + configTpl.write(params::inst().configFileAMD); + printer::inst()->print_msg(L0, "AMD: GPU configuration stored in file '%s'", params::inst().configFileAMD.c_str()); } std::vector<GpuContext> devVec; diff --git a/xmrstak/backend/amd/jconf.hpp b/xmrstak/backend/amd/jconf.hpp index db41dff..da024a4 100644 --- a/xmrstak/backend/amd/jconf.hpp +++ b/xmrstak/backend/amd/jconf.hpp @@ -19,7 +19,7 @@ public: return oInst; }; - bool parse_config(const char* sFilename = Params::inst().configFileAMD.c_str()); + bool parse_config(const char* sFilename = params::inst().configFileAMD.c_str()); struct thd_cfg { size_t index; diff --git a/xmrstak/backend/amd/minethd.cpp b/xmrstak/backend/amd/minethd.cpp index 2b7ce77..5f36428 100644 --- a/xmrstak/backend/amd/minethd.cpp +++ b/xmrstak/backend/amd/minethd.cpp @@ -95,7 +95,7 @@ std::vector<iBackend*>* minethd::thread_starter(uint32_t threadOffset, miner_wor { std::vector<iBackend*>* pvThreads = new std::vector<iBackend*>(); - if(!configEditor::file_exist(Params::inst().configFileAMD)) + if(!configEditor::file_exist(params::inst().configFileAMD)) { autoAdjust adjust; if(!adjust.printConfig()) diff --git a/xmrstak/backend/backendConnector.cpp b/xmrstak/backend/backendConnector.cpp index e0ac85a..6106267 100644 --- a/xmrstak/backend/backendConnector.cpp +++ b/xmrstak/backend/backendConnector.cpp @@ -65,7 +65,7 @@ std::vector<iBackend*>* BackendConnector::thread_starter(miner_work& pWork) std::vector<iBackend*>* pvThreads = new std::vector<iBackend*>; #ifndef CONF_NO_CUDA - if(Params::inst().useNVIDIA) + if(params::inst().useNVIDIA) { plugin nvidiaplugin("NVIDIA", "xmrstak_cuda_backend"); std::vector<iBackend*>* nvidiaThreads = nvidiaplugin.startBackend(static_cast<uint32_t>(pvThreads->size()), pWork, environment::inst()); @@ -76,7 +76,7 @@ std::vector<iBackend*>* BackendConnector::thread_starter(miner_work& pWork) #endif #ifndef CONF_NO_OPENCL - if(Params::inst().useAMD) + if(params::inst().useAMD) { plugin amdplugin("AMD", "xmrstak_opencl_backend"); std::vector<iBackend*>* amdThreads = amdplugin.startBackend(static_cast<uint32_t>(pvThreads->size()), pWork, environment::inst()); @@ -87,7 +87,7 @@ std::vector<iBackend*>* BackendConnector::thread_starter(miner_work& pWork) #endif #ifndef CONF_NO_CPU - if(Params::inst().useCPU) + if(params::inst().useCPU) { auto cpuThreads = cpu::minethd::thread_starter(static_cast<uint32_t>(pvThreads->size()), pWork); pvThreads->insert(std::end(*pvThreads), std::begin(cpuThreads), std::end(cpuThreads)); diff --git a/xmrstak/backend/cpu/autoAdjust.hpp b/xmrstak/backend/cpu/autoAdjust.hpp index 639c27b..294bc6f 100644 --- a/xmrstak/backend/cpu/autoAdjust.hpp +++ b/xmrstak/backend/cpu/autoAdjust.hpp @@ -100,8 +100,8 @@ public: } configTpl.replace("CPUCONFIG",conf); - configTpl.write(Params::inst().configFileCPU); - printer::inst()->print_msg(L0, "CPU configuration stored in file '%s'", Params::inst().configFileCPU.c_str()); + configTpl.write(params::inst().configFileCPU); + printer::inst()->print_msg(L0, "CPU configuration stored in file '%s'", params::inst().configFileCPU.c_str()); return true; } diff --git a/xmrstak/backend/cpu/autoAdjustHwloc.hpp b/xmrstak/backend/cpu/autoAdjustHwloc.hpp index 8431956..ad3b863 100644 --- a/xmrstak/backend/cpu/autoAdjustHwloc.hpp +++ b/xmrstak/backend/cpu/autoAdjustHwloc.hpp @@ -77,8 +77,8 @@ public: } configTpl.replace("CPUCONFIG",conf); - configTpl.write(Params::inst().configFileCPU); - printer::inst()->print_msg(L0, "CPU configuration stored in file '%s'", Params::inst().configFileCPU.c_str()); + configTpl.write(params::inst().configFileCPU); + printer::inst()->print_msg(L0, "CPU configuration stored in file '%s'", params::inst().configFileCPU.c_str()); /* Destroy topology object. */ hwloc_topology_destroy(topology); diff --git a/xmrstak/backend/cpu/jconf.hpp b/xmrstak/backend/cpu/jconf.hpp index 03dfcc1..3c7da49 100644 --- a/xmrstak/backend/cpu/jconf.hpp +++ b/xmrstak/backend/cpu/jconf.hpp @@ -19,7 +19,7 @@ public: return oInst; }; - bool parse_config(const char* sFilename = Params::inst().configFileCPU.c_str()); + bool parse_config(const char* sFilename = params::inst().configFileCPU.c_str()); struct thd_cfg { bool bDoubleMode; diff --git a/xmrstak/backend/cpu/minethd.cpp b/xmrstak/backend/cpu/minethd.cpp index d786bee..b02540a 100644 --- a/xmrstak/backend/cpu/minethd.cpp +++ b/xmrstak/backend/cpu/minethd.cpp @@ -251,7 +251,7 @@ std::vector<iBackend*> minethd::thread_starter(uint32_t threadOffset, miner_work { std::vector<iBackend*> pvThreads; - if(!configEditor::file_exist(Params::inst().configFileCPU)) + if(!configEditor::file_exist(params::inst().configFileCPU)) { autoAdjust adjust; if(!adjust.printConfig()) diff --git a/xmrstak/backend/nvidia/autoAdjust.hpp b/xmrstak/backend/nvidia/autoAdjust.hpp index 2354dec..4f74abf 100644 --- a/xmrstak/backend/nvidia/autoAdjust.hpp +++ b/xmrstak/backend/nvidia/autoAdjust.hpp @@ -102,8 +102,8 @@ private: } configTpl.replace("GPUCONFIG",conf); - configTpl.write(Params::inst().configFileNVIDIA); - printer::inst()->print_msg(L0, "NVIDIA: GPU configuration stored in file '%s'", Params::inst().configFileNVIDIA.c_str()); + configTpl.write(params::inst().configFileNVIDIA); + printer::inst()->print_msg(L0, "NVIDIA: GPU configuration stored in file '%s'", params::inst().configFileNVIDIA.c_str()); } std::vector<nvid_ctx> nvidCtxVec; diff --git a/xmrstak/backend/nvidia/jconf.hpp b/xmrstak/backend/nvidia/jconf.hpp index 2093408..b09a162 100644 --- a/xmrstak/backend/nvidia/jconf.hpp +++ b/xmrstak/backend/nvidia/jconf.hpp @@ -17,7 +17,7 @@ public: return oInst; }; - bool parse_config(const char* sFilename = Params::inst().configFileNVIDIA.c_str()); + bool parse_config(const char* sFilename = params::inst().configFileNVIDIA.c_str()); struct thd_cfg { uint32_t id; diff --git a/xmrstak/backend/nvidia/minethd.cpp b/xmrstak/backend/nvidia/minethd.cpp index 2e3ef01..b4080fe 100644 --- a/xmrstak/backend/nvidia/minethd.cpp +++ b/xmrstak/backend/nvidia/minethd.cpp @@ -121,7 +121,7 @@ std::vector<iBackend*>* minethd::thread_starter(uint32_t threadOffset, miner_wor { std::vector<iBackend*>* pvThreads = new std::vector<iBackend*>(); - if(!configEditor::file_exist(Params::inst().configFileNVIDIA)) + if(!configEditor::file_exist(params::inst().configFileNVIDIA)) { autoAdjust adjust; if(!adjust.printConfig()) |