test: Perform test cases depending on current HW capability 43/235743/2
authorInki Dae <inki.dae@samsung.com>
Tue, 9 Jun 2020 07:04:40 +0000 (16:04 +0900)
committerInki Dae <inki.dae@samsung.com>
Tue, 9 Jun 2020 09:37:27 +0000 (18:37 +0900)
commitb3fe7a74f7133487eb2affb293b93034523d09aa
tree43d3ff8c4f32cb2cc7a80ff104edd9089f4fc111
parent866847fa03116b464ffed29dcdcae73104f36f30
test: Perform test cases depending on current HW capability

This patch adds a new feature which detects Machine ID in runtime,
and then performs test cases properly depending on whether current
Platform is able to use GPU or NPU for the inference.

Linux kernel exposes device tree sysfs files which describe
HW information so this patch reads /sys/firmware/devicetree/base/model
file to get Machine name in runtime.

Based on this information, test case and profiler applications
decide whether inference should be performed on a given accelerator -
GPU or NPU - according on pre-defined HW table which contains
what kinds of HW accelerators can be used for the inference.

Change-Id: If052c9860dbb72f36c73baf6eb52f627bdde08a9
Signed-off-by: Inki Dae <inki.dae@samsung.com>
test/src/inference_engine_profiler.cpp
test/src/inference_engine_tc.cpp
test/src/inference_engine_test_common.cpp
test/src/inference_engine_test_common.h