[Docs] Add some documents for Ubuntu and Fastmodel
authoryelini-jeong <yelini.jeong@samsung.com>
Thu, 24 Mar 2022 00:01:36 +0000 (09:01 +0900)
committer추지호/NPU Lab(SR)/삼성전자 <jiho.chu@samsung.com>
Mon, 23 May 2022 00:22:36 +0000 (09:22 +0900)
This patch adds some documents for using NPU SystemService in Ubuntu and
Fastmodel.

Signed-off-by: yelini-jeong <yelini.jeong@samsung.com>
docs/markdown/FastModels.md
docs/markdown/QuickStart.md
docs/markdown/Ubuntu.md

index 8a81d7c6abbc6c0641692d5385cd271c6f79c1aa..44d40a29440318f1af3592189fe64a6017a24284 100644 (file)
@@ -21,6 +21,8 @@ NPU-DDK provides a Tizen-based OS, `Trinity OS`, image running on the FastModel
 After configuring the [SPIN](SPIN.md) repository, install `npu-bootstrap-fm`.
 
 ```console
+$ cat /etc/apt/sources.list.d/tizen-spin.list
+deb [trusted=yes] http://[SPIN_ACCOUNT_ID]:[SPIN_ACCOUNT_PW]@10.113.136.32/download_trbs/newlive/devel:/Tizen:/6.0:/AI:/UbuntuTools/Ubuntu_18.04/ /
 $ sudo apt -y update
 $ sudo apt -y install npu-bootstrap-fm
 $ dpkg -l | grep npu-bootstrap-fm
@@ -149,7 +151,7 @@ root:~>
 
 ### Package Installation
 
-Trinity OS supports the `taos-mgr` command to give developers a convenient development environment. For example, if you`` want to install the curl package, please type commands like below.
+Trinity OS supports the `taos-mgr` command to give developers a convenient development environment. For example, if you want to install the curl package, please type commands like below.
 
 ```console
 sh-3.2# taos-mgr refresh
@@ -204,7 +206,7 @@ buildroot = ~/GBS-ROOT/
 
 [repo.base]
 url = http://download.tizen.org/snapshots/tizen/base/latest/repos/standard/packages/
+
 [repo.unified]
 url = http://download.tizen.org/snapshots/tizen/unified/latest/repos/standard/packages/
 
@@ -229,6 +231,19 @@ npu-engine-2.5.0-1.aarch64.rpm        npu-engine-example-2.5.0-1.aarch64.rpm
 npu-engine-devel-2.5.0-1.aarch64.rpm  npu-engine-utils-2.5.0-1.aarch64.rpm
 ```
 
+You can test your packages after installing them.
+```
+$ cd /opt/trinity
+$ ./run_taos
+...
+[ in another shell ]
+$ telnet localhost 5000
+root:~> cd /mnt/RPMS
+root:~> rpm -ivh --force npu-engine-2.5.0-1.aarch64.rpm
+root:~> rpm -ivh --force npu-engine-example-2.5.0-1.aarch64.rpm
+root:~> /usr/lib64/npu-engine/bin/apptests/apptest_tvn_triv2 /usr/share/npu-engine/testdata/TRIV238_2TOPS/MAX_POOL_2D_000
+```
+
 ## Library Linking
 
 To link the library to your application, its dependency declaration should be appended to your build script.
@@ -247,7 +262,7 @@ libnpuhost.h  npubinfmt.h  typedef.h
 The header files NPU Engine provides are as follows:
 
 ```
-libnpuhost.h: The user APIs that NPU Engine provides 
+libnpuhost.h: The user APIs that NPU Engine provides
 npubinfmt.h:  The format of NPU model binary
 typedef.h:    The type definitions used in NPU Engine
 ```
index 5776ae2b53434bf3d38bc24a26de8b368180c713..235c90d52b3747f0591e1d704ccf034a705a9f8c 100644 (file)
@@ -32,6 +32,8 @@ The default installation paths are as follows:
 root# ls /opt/trinity/share/npu-engine/testdata/TRIV238_2TOPS/MOBILENET_V1
 input_fmap_0.bin  model.tvn  output_fmap_0.bin
 
+root# cd /opt/trinity/bin/apptests/
+
 root# apptest_tvn_triv2 /opt/trinity/share/npu-engine/testdata/TRIV238_2TOPS/MOBILENET_V1
 >>> Initializaing SPM with zero. It can be time-consuming...
 >>> Initializaing SPM with zero. It can be time-consuming...
index 346fe5d905f0c8f8900c42ccd9bec794ac2423e9..e01be53f1692dd847dc2c4ffd494fd87ffb233d8 100644 (file)
@@ -35,16 +35,21 @@ $ ls ../*.deb
 ../npu-engine-dev_2.5.0_amd64.deb  ../npu-engine-utils_2.5.0_amd64.deb
 ```
 
-Then, install your packages manually. 
+Then, install your packages manually.
+
+After `npu-engine-dev` is successfully installed, your application can access the required header files in `/opt/trinity/include`.
+
 ```console
-$ dpkg -i ../npu-engine_2.5.0_amd64.deb
+$ dpkg -i ../npu-engine_2.5.0_amd64.deb ../npu-engine-dev_2.5.0_amd64.deb
 $ ls /opt/trinity/lib
 libnpu-engine.so
+$ ls /opt/trinity/include/npu-engine
+libnpuhost.h  npubinfmt.h  typedef.h
 ```
 
-## Library Linking
+## Application Build
 
-After installing, your applications can be built and linked with NPU-DDK libraries in any convenient way.
+Your applications can be built and linked with NPU-DDK libraries in any convenient way.
 For example, if you're using `make` and `pkg-config`,
 
 ```console
@@ -55,17 +60,10 @@ $ make `pkg-config npu-engine --cflags --libs`
 
 ## API Usage
 
-After `npu-engine-dev` is successfully installed, your application can access the required header files in `/opt/trinity/include`.
-
-```console
-$ ls /opt/trinity/include/npu-engine
-libnpuhost.h  npubinfmt.h  typedef.h
-```
-
 The header files NPU Engine provides are as follows:
 
 ```
-libnpuhost.h: The user APIs that NPU Engine provides 
+libnpuhost.h: The user APIs that NPU Engine provides
 npubinfmt.h:  The format of NPU model binary
 typedef.h:    The type definitions used in NPU Engine
 ```