OSDN Git Service

Query the kernel API to check the EU counts of GPU device
authorZhao Yakui <yakui.zhao@intel.com>
Sun, 20 Nov 2016 19:41:42 +0000 (14:41 -0500)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 21 Nov 2016 14:21:50 +0000 (22:21 +0800)
commitbcec25eb02ca7c98aad5d573f88a3b05419b93ec
tree5e9b1d9d3ad731cea40e697d67e35b967c265e44
parentefc8d00e4dbe3387db60c3d127b52e0d613ca54d
Query the kernel API to check the EU counts of GPU device

This info can be used to configure the max EU threads of GPU device.
>eu_total * 6

V2->V3: Refresh the patches again.
V1->V2: Remove the extra bit_field of has_eu_flag. Instead the eu_total > 0
can be used.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Charles Daniel <daniel.charles@intel.com>
src/intel_driver.c
src/intel_driver.h