summaryrefslogtreecommitdiff
path: root/src/cl_gt_device.h
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@intel.com>2014-07-01 12:50:36 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-07-01 15:26:01 +0800
commit43138b8dccdbafa9ee095ca5dcbf9fa5e85dfdb2 (patch)
treec86fd4fd3359705f59d69875be61e201c9283fff /src/cl_gt_device.h
parenta1ebbf7d61fa357a645b28580aafa44a20d4197b (diff)
runtime: fix potential curbe allocation issue.
According to spec, different platforms have different curbe allocation restrication. The previous code set the curbe allocated size to 480 statically which is not correct. This patch change to always set the curbe entry num to 64 which is the maximum work group size. And set proper curbe allocation size according to the platform's hard limitation and a relatively reasonable kernel argument usage limitation. v3: when we call load_vte_state, we already know the eaxctly constant urb size used in the current kernel. We could choose a smallest valid curbe size for this kernel. And if the size exceed the hardware limitation, we report it as a warning here. Signed-off-by: Zhigang Gong <zhigang.gong@intel.com> Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
Diffstat (limited to 'src/cl_gt_device.h')
-rw-r--r--src/cl_gt_device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl_gt_device.h b/src/cl_gt_device.h
index 63c90472..97ba7e22 100644
--- a/src/cl_gt_device.h
+++ b/src/cl_gt_device.h
@@ -39,7 +39,7 @@
.address_bits = 32,
.max_mem_alloc_size = 256 * 1024 * 1024,
.image_support = CL_TRUE,
-.max_read_image_args = 128,
+.max_read_image_args = 16,
.max_write_image_args = 8,
.image_max_array_size = 2048,
.image2d_max_width = 8192,