mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-01 01:14:22 +00:00
opencl: rename queue_scrypt_kernel() to queue_kernel().
There are no other kernels, and differentiating kernels in the future should be done in a universal way, preferably not by choosing a function. Note how queue_kernel() is used (passed as function reference).
This commit is contained in:
parent
3787f47155
commit
4ea508850e
@ -990,7 +990,7 @@ static _clState *clStates[MAX_GPUDEVICES];
|
||||
#define CL_SET_ARG(var) status |= clSetKernelArg(*kernel, num++, sizeof(var), (void *)&var)
|
||||
#define CL_SET_VARG(args, var) status |= clSetKernelArg(*kernel, num++, args * sizeof(uint), (void *)var)
|
||||
|
||||
static cl_int queue_scrypt_kernel(_clState *clState, dev_blk_ctx *blk, __maybe_unused cl_uint threads)
|
||||
static cl_int queue_kernel(_clState *clState, dev_blk_ctx *blk, __maybe_unused cl_uint threads)
|
||||
{
|
||||
unsigned char *midstate = blk->work->midstate;
|
||||
cl_kernel *kernel = &clState->kernel;
|
||||
@ -1306,7 +1306,7 @@ static bool opencl_thread_init(struct thr_info *thr)
|
||||
return false;
|
||||
}
|
||||
|
||||
thrdata->queue_kernel_parameters = &queue_scrypt_kernel;
|
||||
thrdata->queue_kernel_parameters = &queue_kernel;
|
||||
|
||||
thrdata->res = (uint32_t *)calloc(buffersize, 1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user