diff options
author | psychocrypt <psychocryptHPC@gmail.com> | 2018-04-14 23:17:33 +0200 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2018-06-04 21:07:11 +0000 |
commit | ee5d2c522f5dc9e5564433c05da2f3cc2a9e0ff4 (patch) | |
tree | 096905de879c533a5e2859be8e587eef297e0b3a /xmrstak/cli | |
parent | 6d09cbbff27c427e09767bc22c2eb56fa9e17a54 (diff) | |
download | xmr-stak-ee5d2c522f5dc9e5564433c05da2f3cc2a9e0ff4.zip xmr-stak-ee5d2c522f5dc9e5564433c05da2f3cc2a9e0ff4.tar.gz |
allow non AMD OpenCL driver and devices
- add CLI flag to explicitly use non AMD OpenCL and devices
- adjust OpenCL output (use OpenCL instead of AMD if --altOpenCL is sued)
- optimize NVIDIA OpenCL auto suggestion
Diffstat (limited to 'xmrstak/cli')
-rw-r--r-- | xmrstak/cli/cli-miner.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/xmrstak/cli/cli-miner.cpp b/xmrstak/cli/cli-miner.cpp index 0c52e10..2407c29 100644 --- a/xmrstak/cli/cli-miner.cpp +++ b/xmrstak/cli/cli-miner.cpp @@ -80,6 +80,8 @@ void help() #ifndef CONF_NO_OPENCL cout<<" --noAMD disable the AMD miner backend"<<endl; cout<<" --noAMDCache disable the AMD(OpenCL) cache for precompiled binaries"<<endl; + cout<<" --openCLVendor VENDOR use OpenCL driver of VENDOR and devices [AMD,NVIDIA]"<<endl; + cout<<" default: AMD"<<endl; cout<<" --amd FILE AMD backend miner config file"<<endl; #endif #ifndef CONF_NO_CUDA @@ -452,6 +454,24 @@ int main(int argc, char *argv[]) { params::inst().useAMD = false; } + else if(opName.compare("--openCLVendor") == 0) + { + ++i; + if( i >=argc ) + { + printer::inst()->print_msg(L0, "No argument for parameter '--openCLVendor' given"); + win_exit(); + return 1; + } + std::string vendor(argv[i]); + params::inst().openCLVendor = vendor; + if(vendor != "AMD" && vendor != "NVIDIA") + { + printer::inst()->print_msg(L0, "'--openCLVendor' must be 'AMD' or 'NVIDIA'"); + win_exit(); + return 1; + } + } else if(opName.compare("--noAMDCache") == 0) { params::inst().AMDCache = false; |