[NPU/CONF] Bug fix due to wrong config loads in NPU driver API
authorDongju Chae <dongju.chae@samsung.com>
Mon, 4 Nov 2019 05:24:32 +0000 (14:24 +0900)
committer송욱/On-Device Lab(SR)/Staff Engineer/삼성전자 <wook16.song@samsung.com>
Thu, 7 Nov 2019 02:18:27 +0000 (11:18 +0900)
This commit fixes the bug due to wrong config loads in NPU driver API.
We should not use `load_conf_default()` because it may overlap user-provided configs.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
src/core/npu/NPUdrvAPI.c

index c91b814..223165f 100644 (file)
@@ -81,7 +81,7 @@ void init_npu_api(void)
 {
   int i;
 
-  load_conf_default();
+  load_conf(NULL);
 
   pthread_mutex_init(&napi_priv.mutex, NULL);
   for (i=0; i<MAX_NUM_DEVICE; i++) {