CL: make the scratch size as a device resource attribute.
authorZhigang Gong <zhigang.gong@intel.com>
Fri, 14 Feb 2014 08:11:36 +0000 (16:11 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Mon, 17 Feb 2014 02:20:18 +0000 (10:20 +0800)
commit9bcd8b0fb9a0cecbba06a33315c5b076ffb54f89
tree2f9f772ac5cc60f0bb70f79c5e5eba075bef5108
parentc09c658110a70594b6b026fac27a7ffcd0d48382
CL: make the scratch size as a device resource attribute.

Actually, the scratch size is much like the local memory size
which should be a device dependent information.

This patch is to put scratch mem size to the device attribute
structure. And when the kernel needs more than the maximum scratch
memory, we just return a out-of-resource error rather than trigger
an assertion.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: Song, Ruiling <ruiling.song@intel.com>
src/cl_command_queue_gen7.c
src/cl_device_id.h
src/cl_gen75_device.h
src/cl_gen7_device.h