[Engine/Handler] Fix undefined reference to un-implemented functions
authorWook Song <wook16.song@samsung.com>
Mon, 29 Jul 2019 06:30:06 +0000 (15:30 +0900)
committer채동주/On-Device Lab(SR)/Staff Engineer/삼성전자 <dongju.chae@samsung.com>
Mon, 29 Jul 2019 09:57:20 +0000 (18:57 +0900)
This patch fixes build errors due to undefined reference to
un-implemented functions, exitNEcomm and initNEcomm.

Signed-off-by: Wook Song <wook16.song@samsung.com>
core/npu-engine/src/ne-handler.c

index 7cd6761..9a69e46 100644 (file)
@@ -554,7 +554,16 @@ init_ne_handler (void)
   list_init (&hpriv.model_priv_list);
   pthread_mutex_init (&hpriv.mutex, NULL);
 
-  return initNEcomm (&handler, conf->communication_method);
+  /**
+   * In order to fix build errors, the following line is changed from
+   * return initNEcomm (&handler, conf->communication_method);
+   * to
+   * return 0;
+   *
+   * TODO: Implement initNEcomm()
+   */
+   return 0;
+
 }
 
 /**
@@ -565,14 +574,21 @@ init_ne_handler (void)
 int
 exit_ne_handler (void)
 {
- int err;
+  /*
+  int err;
+  */
 
   free_all_models();
 
   pthread_mutex_destroy (&hpriv.mutex);
 
-  if ((err = exitNEcomm ()) < 0)
-    return err;
+  /**
+   * In order to fix build errors, the following lines are blocked.
+   * TODO: Implement exitNEcomm()
+   *
+   * if ((err = exitNEcomm ()) < 0)
+   *   return err;
+  */
 
   return GET_MEM()->fini ();
 }