Cryptonight OpenCL: fix for long input data
This commit is contained in:
parent
e0eed7d5d6
commit
bd8cf54a0b
6 changed files with 700 additions and 704 deletions
|
@ -38,10 +38,11 @@ void xmrig::Cn0Kernel::enqueue(cl_command_queue queue, uint32_t nonce, size_t th
|
|||
|
||||
|
||||
// __kernel void cn0(__global ulong *input, __global uint4 *Scratchpad, __global ulong *states, uint Threads)
|
||||
void xmrig::Cn0Kernel::setArgs(cl_mem input, cl_mem scratchpads, cl_mem states, uint32_t threads)
|
||||
void xmrig::Cn0Kernel::setArgs(cl_mem input, int inlen, cl_mem scratchpads, cl_mem states, uint32_t threads)
|
||||
{
|
||||
setArg(0, sizeof(cl_mem), &input);
|
||||
setArg(1, sizeof(cl_mem), &scratchpads);
|
||||
setArg(2, sizeof(cl_mem), &states);
|
||||
setArg(3, sizeof(uint32_t), &threads);
|
||||
setArg(1, sizeof(int), &inlen);
|
||||
setArg(2, sizeof(cl_mem), &scratchpads);
|
||||
setArg(3, sizeof(cl_mem), &states);
|
||||
setArg(4, sizeof(uint32_t), &threads);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue