cerr<<"Selected GPU mining without having compiled with -DETHASHCL=1"<<endl;
exit(1);
#endif
}
}
if(mode==OperationMode::DAGInit)
if(mode==OperationMode::DAGInit)
doInitDAG(m_initDAG);
doInitDAG(m_initDAG);
@ -344,10 +354,12 @@ public:
<<" --allow-opencl-cpu Allows CPU to be considered as an OpenCL device if the OpenCL platform supports it."<<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 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
<<" --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-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(dev::eth::Ethash::defaultLocalWorkSize)<<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(dev::eth::Ethash::defaultGlobalWorkSizeMultiplier)<<" * "<<toString(dev::eth::Ethash::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(dev::eth::Ethash::defaultMSPerBatch)<<". If 0 is given then no autoadjustment of global work size will happen"<<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