@@ -72,7 +72,7 @@ using namespace std;
72
72
using namespace dev ;
73
73
74
74
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 ;
76
76
77
77
unsigned const c_nonceLinear = 1 ;
78
78
unsigned const c_nonceRandom = 2 ;
@@ -774,7 +774,6 @@ void ethash_cl_miner::search(bytes _challenge, uint64_t _target, h160 _miningAcc
774
774
Timer kernelTimer;
775
775
// put in a rough guess for now, in case we are throttling
776
776
int kernelTime = 100 ;
777
- Timer kernelLaunch;
778
777
int batchCount = 0 ;
779
778
780
779
{
@@ -858,15 +857,9 @@ void ethash_cl_miner::search(bytes _challenge, uint64_t _target, h160 _miningAcc
858
857
m_searchKernel.setArg (0 , m_precompBuffer[m_buf]);
859
858
m_searchKernel.setArg (1 , m_searchBuffer[m_buf]);
860
859
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
-
865
860
m_queue[m_buf].enqueueNDRangeKernel (m_searchKernel, cl::NullRange, m_globalWorkSize, s_workgroupSize);
866
861
m_pending.push_back ({nonce, m_buf});
867
862
868
- kernelLaunch.restart ();
869
-
870
863
m_results[m_buf] = (search_results*) m_queue[m_buf].enqueueMapBuffer (m_searchBuffer[m_buf], CL_FALSE, CL_MAP_READ, 0 ,
871
864
sizeof (search_results), 0 , &m_mapEvents[m_buf]);
872
865
m_buf = (m_buf + 1 ) % l_bufferCount;
0 commit comments