[Fix] Specify recurring test's target NPU to 8TOPS
authorDongju Chae <dongju.chae@samsung.com>
Wed, 6 Jan 2021 04:54:39 +0000 (13:54 +0900)
committer송욱/On-Device Lab(SR)/Staff Engineer/삼성전자 <wook16.song@samsung.com>
Thu, 7 Jan 2021 01:04:02 +0000 (10:04 +0900)
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>
tests/apptests/tvn_triv2_recurring.cc

index b6c8df5..3c06ccc 100644 (file)
@@ -137,17 +137,10 @@ class TesterTRIV2 {
       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) {