Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Commit

Permalink
Allow negative value for cl-global
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-m-cyr committed Jun 6, 2018
1 parent 681123f commit 33eca16
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ethminer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -764,7 +763,7 @@ class MinerCLI
unsigned m_openclDeviceCount = 0;
vector<unsigned> 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
Expand Down

0 comments on commit 33eca16

Please sign in to comment.