1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-01 01:14:22 +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; break;
} }
if (cgpu->vwidth) /* Vectors are hard-set to 1 above. */
if (likely(cgpu->vwidth))
clState->vwidth = cgpu->vwidth; clState->vwidth = cgpu->vwidth;
else { else {
clState->vwidth = preferred_vwidth; clState->vwidth = preferred_vwidth;