1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Do not round up the bufsize to the maximum allocable with scrypt.

This commit is contained in:
Con Kolivas 2013-03-15 22:00:52 +11:00
parent 3c3fbdce1c
commit d0f18e83ad

3
ocl.c
View File

@ -793,8 +793,7 @@ built:
if (bufsize > 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);
} else
bufsize = cgpu->max_alloc;
}
applog(LOG_DEBUG, "Creating scrypt buffer sized %u", bufsize);
clState->padbufsize = bufsize;