1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-31 17:04:23 +00:00

ocl: vectors are hard-set to 1, add appropriate "optimisation".

This commit is contained in:
Noel Maersk 2014-02-24 16:20:11 +02:00
parent ab9fcb1a14
commit 7217da3078

3
ocl.c
View File

@ -459,7 +459,8 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize)
break;
}
if (cgpu->vwidth)
/* Vectors are hard-set to 1 above. */
if (likely(cgpu->vwidth))
clState->vwidth = cgpu->vwidth;
else {
clState->vwidth = preferred_vwidth;