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

Allow negative value for cl-global #1225

Merged
merged 1 commit into from
Jun 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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