mirror of
https://github.com/GOSTSec/sgminer
synced 2025-08-26 13:52:02 +00:00
Do not round up the bufsize to the maximum allocable with scrypt.
This commit is contained in:
parent
3c3fbdce1c
commit
d0f18e83ad
3
ocl.c
3
ocl.c
@ -793,8 +793,7 @@ built:
|
|||||||
if (bufsize > cgpu->max_alloc) {
|
if (bufsize > cgpu->max_alloc) {
|
||||||
applog(LOG_WARNING, "Maximum buffer memory device %d supports says %u", gpu, cgpu->max_alloc);
|
applog(LOG_WARNING, "Maximum buffer memory device %d supports says %u", gpu, cgpu->max_alloc);
|
||||||
applog(LOG_WARNING, "Your scrypt settings come to %u", bufsize);
|
applog(LOG_WARNING, "Your scrypt settings come to %u", bufsize);
|
||||||
} else
|
}
|
||||||
bufsize = cgpu->max_alloc;
|
|
||||||
applog(LOG_DEBUG, "Creating scrypt buffer sized %u", bufsize);
|
applog(LOG_DEBUG, "Creating scrypt buffer sized %u", bufsize);
|
||||||
clState->padbufsize = bufsize;
|
clState->padbufsize = bufsize;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user