cerr<<"Selected CUDA mining without having compiled with -DETHASHCU=1 or -DBUNDLE=cudaminer"<<endl;
exit(1);
#endif
}
if(mode==OperationMode::DAGInit)
@ -382,17 +417,26 @@ public:
<<"Mining configuration:"<<endl
<<" -C,--cpu When mining, use the CPU."<<endl
<<" -G,--opencl When mining use the GPU via OpenCL."<<endl
<<" -U,--cuda When mining use the GPU via CUDA."<<endl
<<" --opencl-platform <n> When mining using -G/--opencl use OpenCL platform n (default: 0)."<<endl
<<" --opencl-device <n> When mining using -G/--opencl use OpenCL device n (default: 0)."<<endl
<<" -t, --mining-threads <n> Limit number of CPU/GPU miners to n (default: use everything available on selected platform)"<<endl
<<" --allow-opencl-cpu Allows CPU to be considered as an OpenCL device if the OpenCL platform supports it."<<endl
<<" --list-devices List the detected OpenCL devices and exit."<<endl
<<" --list-devices List the detected OpenCL/CUDA devices and exit."<<endl
<<" --current-block Let the miner know the current block number at configuration time. Will help determine DAG size and required GPU memory."<<endl
#if ETH_ETHASHCL || !ETH_TRUE
<<" --cl-extragpu-mem Set the memory (in MB) you believe your GPU requires for stuff other than mining. Windows rendering e.t.c.."<<endl
<<" --cl-local-work Set the OpenCL local work size. Default is "<<toString(ethash_cl_miner::c_defaultLocalWorkSize)<<endl
<<" --cl-global-work Set the OpenCL global work size as a multiple of the local work size. Default is "<<toString(ethash_cl_miner::c_defaultGlobalWorkSizeMultiplier)<<" * "<<toString(ethash_cl_miner::c_defaultLocalWorkSize)<<endl
<<" --cl-ms-per-batch Set the OpenCL target milliseconds per batch (global workgroup size). Default is "<<toString(ethash_cl_miner::c_defaultMSPerBatch)<<". If 0 is given then no autoadjustment of global work size will happen"<<endl
#endif
#if ETH_ETHASHCU || !ETH_TRUE
<<" --cuda-extragpu-mem Set the memory (in MB) you believe your GPU requires for stuff other than mining. Windows rendering e.t.c.."<<endl
<<" --cuda-block-size Set the CUDA block work size. Default is "<<toString(ethash_cu_miner::c_defaultBlockSize)<<endl
<<" --cuda-grid-size Set the CUDA grid size. Default is "<<toString(ethash_cu_miner::c_defaultGridSize)<<endl
<<" --cuda-streams Set the number of CUDA streams. Default is "<<toString(ethash_cu_miner::c_defaultNumStreams)<<endl
<<" --cuda-turbo Get a bit of extra hashrate at the cost of high CPU load... Default is false"<<endl
<<" --cuda-devices <0 1 ..n> Select which GPU's to mine on. Default is to use all"<<endl