mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 12:34:27 +00:00
Pick worksize 256 with Cypress if none is specified.
This commit is contained in:
parent
be06cf7083
commit
482322a4b7
8
ocl.c
8
ocl.c
@ -468,8 +468,12 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
|
||||
clState->wsize = cgpu->work_size;
|
||||
else if (strstr(name, "Tahiti"))
|
||||
clState->wsize = 64;
|
||||
else
|
||||
clState->wsize = (clState->max_work_size <= 256 ? clState->max_work_size : 256) / clState->vwidth;
|
||||
else {
|
||||
if (strstr(name, "Cypress"))
|
||||
clState->wsize = 256;
|
||||
else
|
||||
clState->wsize = (clState->max_work_size <= 256 ? clState->max_work_size : 256) / clState->vwidth;
|
||||
}
|
||||
cgpu->work_size = clState->wsize;
|
||||
|
||||
#ifdef USE_SCRYPT
|
||||
|
Loading…
x
Reference in New Issue
Block a user