diff --git a/ethminer/main.cpp b/ethminer/main.cpp index 508e33b9d6..1a3c61ace1 100644 --- a/ethminer/main.cpp +++ b/ethminer/main.cpp @@ -246,9 +246,8 @@ class MinerCLI ->check(CLI::Range(1)); app.add_option("--cl-global-work", m_globalWorkSizeMultiplier, - "Set the global work size multipler", true) - ->group(OpenCLGroup) - ->check(CLI::Range(1, 999999999)); + "Set the global work size multipler. Specify negative value for automatic scaling based on # of compute units", true) + ->group(OpenCLGroup); app.add_option("--cl-local-work", m_localWorkSize, "Set the local work size", true) @@ -764,7 +763,7 @@ class MinerCLI unsigned m_openclDeviceCount = 0; vector m_openclDevices; unsigned m_openclThreadsPerHash = 8; - unsigned m_globalWorkSizeMultiplier = CLMiner::c_defaultGlobalWorkSizeMultiplier; + int m_globalWorkSizeMultiplier = CLMiner::c_defaultGlobalWorkSizeMultiplier; unsigned m_localWorkSize = CLMiner::c_defaultLocalWorkSize; #endif #if ETH_ETHASHCUDA