summaryrefslogtreecommitdiff
path: root/src/cl_device_id.c
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@intel.com>2014-06-20 18:07:23 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-06-23 10:33:25 +0800
commit019b690a35907a196f2943699291b35a6b8ea6ab (patch)
tree5ce9545694cec4a26c26fb0e0bae0ae1062a1023 /src/cl_device_id.c
parent412360bf2dd50d0b0e76fd9ffff87f00e150d0ab (diff)
runtime: choose the actual EU number as the max compute units.
Use the EU number as compute unit make more sense. Signed-off-by: Zhigang Gong <zhigang.gong@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'src/cl_device_id.c')
-rw-r--r--src/cl_device_id.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cl_device_id.c b/src/cl_device_id.c
index 1a2565cd..f8c5c863 100644
--- a/src/cl_device_id.c
+++ b/src/cl_device_id.c
@@ -38,7 +38,7 @@
static struct _cl_device_id intel_ivb_gt2_device = {
INIT_ICD(dispatch)
- .max_compute_unit = 128,
+ .max_compute_unit = 16,
.max_thread_per_unit = 8,
.max_work_item_sizes = {512, 512, 512},
.max_work_group_size = 1024,
@@ -49,7 +49,7 @@ static struct _cl_device_id intel_ivb_gt2_device = {
static struct _cl_device_id intel_ivb_gt1_device = {
INIT_ICD(dispatch)
- .max_compute_unit = 64,
+ .max_compute_unit = 8,
.max_thread_per_unit = 8,
.max_work_item_sizes = {512, 512, 512},
.max_work_group_size = 512,
@@ -60,7 +60,7 @@ static struct _cl_device_id intel_ivb_gt1_device = {
static struct _cl_device_id intel_baytrail_t_device = {
INIT_ICD(dispatch)
- .max_compute_unit = 32,
+ .max_compute_unit = 4,
.max_thread_per_unit = 8,
.max_work_item_sizes = {512, 512, 512},
.max_work_group_size = 256,
@@ -72,7 +72,7 @@ static struct _cl_device_id intel_baytrail_t_device = {
/* XXX we clone IVB for HSW now */
static struct _cl_device_id intel_hsw_gt1_device = {
INIT_ICD(dispatch)
- .max_compute_unit = 70,
+ .max_compute_unit = 10,
.max_thread_per_unit = 7,
.max_work_item_sizes = {512, 512, 512},
.max_work_group_size = 512,
@@ -83,7 +83,7 @@ static struct _cl_device_id intel_hsw_gt1_device = {
static struct _cl_device_id intel_hsw_gt2_device = {
INIT_ICD(dispatch)
- .max_compute_unit = 140,
+ .max_compute_unit = 20,
.max_thread_per_unit = 7,
.max_work_item_sizes = {512, 512, 512},
.max_work_group_size = 1024,
@@ -94,7 +94,7 @@ static struct _cl_device_id intel_hsw_gt2_device = {
static struct _cl_device_id intel_hsw_gt3_device = {
INIT_ICD(dispatch)
- .max_compute_unit = 280,
+ .max_compute_unit = 40,
.max_thread_per_unit = 7,
.max_work_item_sizes = {512, 512, 512},
.max_work_group_size = 1024,