@ -42,29 +42,21 @@ void run_ethash_search(
cudaStream_t stream,
volatile uint32_t* g_output,
uint64_t start_nonce,
uint32_t parallelHash
uint32_t parallelHash
)
{
//printf("parallelHash = %d\n", parallelHash);
if(parallelHash == 1)
ethash_search <1> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce);
else if(parallelHash == 2)
ethash_search <2> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce);
else if(parallelHash == 3)
ethash_search <3> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce);
else if(parallelHash == 4)
ethash_search <4> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce);
else if(parallelHash == 5)
ethash_search <5> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce);
else if(parallelHash == 6)
ethash_search <6> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce);
else if(parallelHash == 7)
ethash_search <7> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce);
else if(parallelHash == 8)
ethash_search <8> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce);
else
ethash_search <1> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce);
switch (parallelHash)
{
case 1: ethash_search <1> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce); break;
case 2: ethash_search <2> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce); break;
case 3: ethash_search <3> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce); break;
case 4: ethash_search <4> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce); break;
case 5: ethash_search <5> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce); break;
case 6: ethash_search <6> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce); break;
case 7: ethash_search <7> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce); break;
case 8: ethash_search <8> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce); break;
default: ethash_search <4> <<<blocks, threads, sharedbytes, stream >>>(g_output, start_nonce); break;
}
CUDA_SAFE_CALL(cudaGetLastError());
}