From 374e8c928de483aa83f940464ed33bed74e6eaf1 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Tue, 29 Jul 2014 12:55:44 +0800 Subject: GBE: adjust preferred vector length. Signed-off-by: Zhigang Gong Reviewed-by: "Song, Ruiling" --- src/cl_gt_device.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/cl_gt_device.h b/src/cl_gt_device.h index 63c90472..fc8aefdd 100644 --- a/src/cl_gt_device.h +++ b/src/cl_gt_device.h @@ -21,20 +21,20 @@ .device_type = CL_DEVICE_TYPE_GPU, .vendor_id = 0, /* == device_id (set when requested) */ .max_work_item_dimensions = 3, -.preferred_vector_width_char = 16, -.preferred_vector_width_short = 16, -.preferred_vector_width_int = 16, -.preferred_vector_width_long = 16, -.preferred_vector_width_float = 16, +.preferred_vector_width_char = 8, +.preferred_vector_width_short = 8, +.preferred_vector_width_int = 4, +.preferred_vector_width_long = 2, +.preferred_vector_width_float = 4, .preferred_vector_width_double = 0, .preferred_vector_width_half = 0, -.native_vector_width_char = 16, -.native_vector_width_short = 16, -.native_vector_width_int = 16, -.native_vector_width_long = 16, -.native_vector_width_float = 16, -.native_vector_width_double = 16, -.native_vector_width_half = 16, +.native_vector_width_char = 8, +.native_vector_width_short = 8, +.native_vector_width_int = 4, +.native_vector_width_long = 2, +.native_vector_width_float = 4, +.native_vector_width_double = 2, +.native_vector_width_half = 8, .preferred_wg_sz_mul = 16, .address_bits = 32, .max_mem_alloc_size = 256 * 1024 * 1024, -- cgit v1.2.3