Browse Source

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

build-mingw
Noel Maersk 11 years ago
parent
commit
7217da3078
  1. 3
      ocl.c

3
ocl.c

@ -459,7 +459,8 @@ _clState *initCl(unsigned int gpu, char *name, size_t nameSize) @@ -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;

Loading…
Cancel
Save