mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-02 17:22:33 +00:00
Put sanity limit on work size since some nvidia fail :(
This commit is contained in:
parent
f490143a9a
commit
1dfbe60353
3
ocl.c
3
ocl.c
@ -303,6 +303,9 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
|
|||||||
}
|
}
|
||||||
if (opt_debug)
|
if (opt_debug)
|
||||||
applog(LOG_DEBUG, "Max work group size reported %d", clState->max_work_size);
|
applog(LOG_DEBUG, "Max work group size reported %d", clState->max_work_size);
|
||||||
|
/* Some nvidia cards report 1024 but fail when set larger than 512 !? */
|
||||||
|
if (clState->max_work_size > 512)
|
||||||
|
clState->max_work_size = 512;
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////
|
||||||
// Load CL file, build CL program object, create CL kernel object
|
// Load CL file, build CL program object, create CL kernel object
|
||||||
|
Loading…
x
Reference in New Issue
Block a user