This patch specifies recurring test's target NPU to 8TOPS.
Later, it will be changed to 2TOPS when testdata is ready.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
if (stat (hw_dev.c_str(), &stat_buf) != 0)
return -EEXIST;
- int num_devices = getnumNPUdeviceByType (TRIV2_TYPE);
- if (num_devices <= 0)
- return -ENODEV;
-
- /** use any available TRIV2 device. (0 <= dev_id < num_devices) */
- int dev_id = num_devices - 1;
-
dir_ = dir;
hw_dev_ = hw_dev;
- return getNPUdeviceByType (&dev_, TRIV2_TYPE, dev_id);
+ return getNPUdeviceByTypeAny (&dev_, TRIV2_TYPE, default_tops);
}
void trigger_internal_task (int32_t *ret) {