diff options
author | psychocrypt <psychocryptHPC@gmail.com> | 2018-03-27 22:06:32 +0200 |
---|---|---|
committer | psychocrypt <psychocryptHPC@gmail.com> | 2018-03-28 21:42:36 +0200 |
commit | aad565391ed64dbcea47c14d8a288ea64b810f96 (patch) | |
tree | 8fd50bd1e9883dbf8ce05f9dbcb9a2ff3f8536a0 /xmrstak/cli/cli-miner.cpp | |
parent | 38c0955aad49587113146ac5f898024695c4dc9a (diff) | |
download | xmr-stak-aad565391ed64dbcea47c14d8a288ea64b810f96.zip xmr-stak-aad565391ed64dbcea47c14d8a288ea64b810f96.tar.gz |
add cli option `--noAMDCache`
allow to disable the OpenCl cache
- usefull for read only systems
- usefull for unknown errors during cache reading
Diffstat (limited to 'xmrstak/cli/cli-miner.cpp')
-rw-r--r-- | xmrstak/cli/cli-miner.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmrstak/cli/cli-miner.cpp b/xmrstak/cli/cli-miner.cpp index 2e84ec5..c425f04 100644 --- a/xmrstak/cli/cli-miner.cpp +++ b/xmrstak/cli/cli-miner.cpp @@ -79,6 +79,7 @@ void help() #endif #ifndef CONF_NO_OPENCL cout<<" --noAMD disable the AMD miner backend"<<endl; + cout<<" --noAMDCache disable the AMD(OpenCL) cache for precompiled binaries"<<endl; cout<<" --amd FILE AMD backend miner config file"<<endl; #endif #ifndef CONF_NO_CUDA @@ -449,6 +450,10 @@ int main(int argc, char *argv[]) { params::inst().useAMD = false; } + else if(opName.compare("--noAMDCache") == 0) + { + params::inst().AMDCache = false; + } else if(opName.compare("--noNVIDIA") == 0) { params::inst().useNVIDIA = false; |