GBE: use the simd width environment variable if set.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Fri, 24 May 2013 04:02:14 +0000 (12:02 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 29 May 2013 05:57:55 +0000 (13:57 +0800)
commitdd6f7b1dccda097787e30e4683f0229a0c90eaf4
tree9ab3536e286943b83aac0f7498865b44ee53b66d
parent777283ad1b3eddb335a0dd874d634db158df3261
GBE: use the simd width environment variable if set.

If the user set OCL_SIMD_WIDTH to 8 or 16, we force the backend
to use it. Without this patch, the OCL_SIMD_WIDTH never have a
chance to take effect, as we always set the functions simdWidth
before we create a gen context.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Tested-by: Lv, Meng <meng.lv@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
backend/src/backend/context.cpp