Runtime: change default tiling mode to TILE_X from TILE_Y.
authorZhigang Gong <zhigang.gong@intel.com>
Fri, 9 May 2014 05:12:28 +0000 (13:12 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 9 May 2014 05:18:20 +0000 (13:18 +0800)
commitee3840a5fb03c33d5b352a912508634a58e6a0ed
tree315ac4d6de30ea0879177629fbbcea8f093e46c2
parentc5e3f688271f9cd733b5ccba1830c290cbdeac64
Runtime: change default tiling mode to TILE_X from TILE_Y.

Nanhai found that tiling mode does matter the performance much
for some cases. So make the tiling mode configurable at runtime
and make the default tiling mode as TILE_X which is much
better than the original TILE_Y for many cases.

At runtime, it is easy to change the default tiling mode as below
export OCL_TILING=0 # enable NO_TILE
export OCL_TILING=1 # enable TILE_X
export OCL_TILING=2 # enable TILE_Y

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
src/cl_mem.c