summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@intel.com>2014-07-29 12:55:44 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-09-03 17:09:14 +0800
commit374e8c928de483aa83f940464ed33bed74e6eaf1 (patch)
tree45fba2257280b61a322d2bfdd490fd70ce7fd2cf
parent020ac2234141727bd80a01e5e3933ae3b12efd79 (diff)
GBE: adjust preferred vector length.
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com> Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
-rw-r--r--src/cl_gt_device.h24
1 files 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,