Skip to content

Commit d0a3421

Browse files
reverted attempts to stagger kernel runs
1 parent c82fd48 commit d0a3421

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# cmake global
22
cmake_minimum_required(VERSION 2.8.12)
33

4-
set(PROJECT_VERSION "2.1.12")
4+
set(PROJECT_VERSION "2.1.13")
55
if (${CMAKE_VERSION} VERSION_GREATER 3.0)
66
cmake_policy(SET CMP0042 OLD) # fix MACOSX_RPATH
77
cmake_policy(SET CMP0048 NEW) # allow VERSION argument in project()

libethash-cl/ethash_cl_miner.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ using namespace std;
7272
using namespace dev;
7373

7474
unsigned const ethash_cl_miner::c_defaultLocalWorkSize = 128;
75-
unsigned const ethash_cl_miner::c_defaultWorkSizeMultiplier = 32768;
75+
unsigned const ethash_cl_miner::c_defaultWorkSizeMultiplier = 196608;
7676

7777
unsigned const c_nonceLinear = 1;
7878
unsigned const c_nonceRandom = 2;
@@ -774,7 +774,6 @@ void ethash_cl_miner::search(bytes _challenge, uint64_t _target, h160 _miningAcc
774774
Timer kernelTimer;
775775
// put in a rough guess for now, in case we are throttling
776776
int kernelTime = 100;
777-
Timer kernelLaunch;
778777
int batchCount = 0;
779778

780779
{
@@ -858,15 +857,9 @@ void ethash_cl_miner::search(bytes _challenge, uint64_t _target, h160 _miningAcc
858857
m_searchKernel.setArg(0, m_precompBuffer[m_buf]);
859858
m_searchKernel.setArg(1, m_searchBuffer[m_buf]);
860859

861-
// make sure the kernel runs are staggered to hide latency here on the host
862-
if (kernelLaunch.elapsedMilliseconds() < 10)
863-
this_thread::sleep_for(chrono::milliseconds(10));
864-
865860
m_queue[m_buf].enqueueNDRangeKernel(m_searchKernel, cl::NullRange, m_globalWorkSize, s_workgroupSize);
866861
m_pending.push_back({nonce, m_buf});
867862

868-
kernelLaunch.restart();
869-
870863
m_results[m_buf] = (search_results*) m_queue[m_buf].enqueueMapBuffer(m_searchBuffer[m_buf], CL_FALSE, CL_MAP_READ, 0,
871864
sizeof(search_results), 0, &m_mapEvents[m_buf]);
872865
m_buf = (m_buf + 1) % l_bufferCount;

0 commit comments

Comments
 (0)