platform/adaptation/npu/trix-engine.git
19 months agonpu-engine 2.5.2 release accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix master tizen_7.0 tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.063840 accepted/tizen/7.0/unified/hotfix/20221116.104450 accepted/tizen/unified/20220920.110639 submit/tizen/20220919.014846 tizen_7.0_m2_release
Jiho Chu [Wed, 7 Sep 2022 02:19:22 +0000 (11:19 +0900)]
npu-engine 2.5.2 release

- Support triv-3.9.1 simulator
- trinity-trace, trinity-test utiliity

Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
19 months agocore: npu: Update decoder sim version(v3.9.1)
Jiho Chu [Mon, 5 Sep 2022 05:56:01 +0000 (14:56 +0900)]
core: npu: Update decoder sim version(v3.9.1)

It update decoder version for triv 2.3.

v3.9.0 -> v3.9.1

Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
19 months agoutils: Add trinity-trace
Jiho Chu [Fri, 2 Sep 2022 02:00:23 +0000 (11:00 +0900)]
utils: Add trinity-trace

trace util helps to enable/disable of trinity ftrace events.
It records events druing executable is running or sometime, and
then print out the records.

Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
19 months ago[action] upload rpm files to aip_rpm
Yelin Jeong [Thu, 25 Aug 2022 08:01:37 +0000 (17:01 +0900)]
[action] upload rpm files to aip_rpm

This patch uploads rpm files to aip_rpm when release.

Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
20 months agoModify CODEOWNERS
Jiho Chu [Mon, 22 Aug 2022 02:09:41 +0000 (11:09 +0900)]
Modify CODEOWNERS

Modify code owners to current users.

Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
20 months ago[Fix] Fix coverity issues
Jiho Chu [Mon, 22 Aug 2022 01:46:07 +0000 (10:46 +0900)]
[Fix] Fix coverity issues

Issues:
WGID 1603142 (http://10.113.139.115:8081/reports.htm#v19172/p10565)
WGID 1227123 (http://10.113.139.115:8081/reports.htm#v19172/p10565)

Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
20 months ago[Utils] Add trinity-test script
Jiho Chu [Mon, 8 Aug 2022 04:16:04 +0000 (13:16 +0900)]
[Utils] Add trinity-test script

trinity-test is designed to give convenience when testing unittest and
apptest. It can execute whole tests simply, or execute some of them.

Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
20 months ago[Action] upload meson test log if test failed
Yelin Jeong [Fri, 22 Jul 2022 06:41:53 +0000 (15:41 +0900)]
[Action] upload meson test log if test failed

This patch adds upload-artifact to pr build
to upload meson test log if test failed.

Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
21 months ago[Action] Change branch name ( TRIV 2.3 )
Yelin Jeong [Mon, 25 Jul 2022 00:44:26 +0000 (09:44 +0900)]
[Action] Change branch name ( TRIV 2.3 )

This patch changes branch name from v2.5.0 to stable-2.5.0.

Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
21 months ago[Action] Change release time
Yelin Jeong [Wed, 27 Jul 2022 00:43:42 +0000 (09:43 +0900)]
[Action] Change release time

This patch changes daily release time to 2AM.

Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
21 months agonpu-engine 2.5.1 release
Jiho Chu [Fri, 22 Jul 2022 06:09:46 +0000 (15:09 +0900)]
npu-engine 2.5.1 release

- Support Simulator 3.9.1
- Backward compatibility for simulator is not supported

Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
21 months agocore: npu: Apply triv2.4 profile format
Jiho Chu [Fri, 1 Jul 2022 08:00:48 +0000 (17:00 +0900)]
core: npu: Apply triv2.4 profile format

It applies triv2.4 profile format.
T24PF_HEAD structure is added and nna is doubled in the structure.
CUSE only support 2.4 profile

Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
21 months ago[action] use libmrpsim 3.9.1 for TRIV 2.4
Yelin Jeong [Thu, 21 Jul 2022 06:34:45 +0000 (15:34 +0900)]
[action] use libmrpsim 3.9.1 for TRIV 2.4

This patch updates workflows for pull request.
Dependency libmrpsim (>=3.9.1) is needed for TRIV 2.4.
Docker image bionic_sim2.4, focal_sim2.4 have libmrpsim 3.9.1.

Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
21 months ago[Unittest] fix segmentation fault
Yelin Jeong [Tue, 19 Jul 2022 08:30:35 +0000 (17:30 +0900)]
[Unittest] fix segmentation fault

This patch fixes ne_core_handler_test.cc
model->getConstraint() should not be called if model is nullptr.

Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
21 months ago[Unittest] add hwmem test
Yelin Jeong [Thu, 14 Jul 2022 08:10:05 +0000 (17:10 +0900)]
[Unittest] add hwmem test

This patch adds unittests with larger hwmem test and have integer value.

Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
21 months agogithub: Add code owner
Jiho Chu [Fri, 1 Jul 2022 07:52:30 +0000 (16:52 +0900)]
github: Add code owner

add code owner 'jiho-chu'

Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
21 months agodebian: Fix auto test script
Jiho Chu [Fri, 1 Jul 2022 07:41:15 +0000 (16:41 +0900)]
debian: Fix auto test script

It changed to test only for executable test files, and
fixed path problem.

Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
21 months ago[Action] delete old packages
Yelin Jeong [Wed, 6 Jul 2022 01:37:41 +0000 (10:37 +0900)]
[Action] delete old packages

This patch deletes old packages which uploaded 3 weeks ago.

Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
21 months ago[Action] make latest repository
Yelin Jeong [Tue, 5 Jul 2022 00:44:42 +0000 (09:44 +0900)]
[Action] make latest repository

This patch makes latest repository for deploying packages.

Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
21 months ago[Action] Debian package daily upload
yelini-jeong [Wed, 15 Jun 2022 01:26:55 +0000 (10:26 +0900)]
[Action] Debian package daily upload

This patch adds github action to upload debian package daily.

Signed-off-by: yelini-jeong <yelini.jeong@samsung.com>
22 months ago[unittest] fix segmentation fault
yelini-jeong [Tue, 14 Jun 2022 02:17:04 +0000 (11:17 +0900)]
[unittest] fix segmentation fault

This patch fixes segmentation fault in ne_core_npu_test.
If npu engine can't create driver, api should not be called.

Signed-off-by: yelini-jeong <yelini.jeong@samsung.com>
22 months ago[Misc] add shell scripts used by ci server
yelini-jeong [Fri, 29 Apr 2022 08:47:41 +0000 (17:47 +0900)]
[Misc] add shell scripts used by ci server

This patch adds shell scripts used by ci server.
Locate ci_scripts directory at /opt/trinity/share to use.

Signed-off-by: yelini-jeong <yelini.jeong@samsung.com>
22 months ago[Test] automate app tests
yelini-jeong [Mon, 23 May 2022 04:57:06 +0000 (13:57 +0900)]
[Test] automate app tests

This patch automates app tests with simulator.

Signed-off-by: yelini-jeong <yelini.jeong@samsung.com>
23 months ago[Aciton] Tizen package daily upload
yelini-jeong [Thu, 19 May 2022 04:53:10 +0000 (13:53 +0900)]
[Aciton] Tizen package daily upload

This patch adds github action for daily upload.

Signed-off-by: yelini-jeong <yelini.jeong@samsung.com>
23 months ago[Docs] Add some documents for Ubuntu and Fastmodel
yelini-jeong [Thu, 24 Mar 2022 00:01:36 +0000 (09:01 +0900)]
[Docs] Add some documents for Ubuntu and Fastmodel

This patch adds some documents for using NPU SystemService in Ubuntu and
Fastmodel.

Signed-off-by: yelini-jeong <yelini.jeong@samsung.com>
23 months ago[Action] Split build tizen, ubuntu
yelini-jeong [Mon, 16 May 2022 01:33:06 +0000 (10:33 +0900)]
[Action] Split build tizen, ubuntu

This patch splits github action checking pr.

Signed-off-by: yelini-jeong <yelini.jeong@samsung.com>
23 months ago[Build/Workaround] Add dtv feature to backup/restore files
Jiho Chu [Mon, 9 May 2022 03:08:45 +0000 (12:08 +0900)]
[Build/Workaround] Add dtv feature to backup/restore files

Backup/Restore scripts are provided to solve conflict with
soc-npu-user-libs.

When it installs, it will backup files which will be installed
to /root directory. And rpm shows information both packages
are installed.
After developing npu-enigne, it will restore previously backup
files while it removes package.

To enable this feature, build with 'dtv' definition.
$ vbs build -A armv7l --include-all --define 'dtv 1'

Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
23 months ago[Coverity] Resolve API usage errors
yelini-jeong [Wed, 27 Apr 2022 03:07:46 +0000 (12:07 +0900)]
[Coverity] Resolve API usage errors

This patch resolves API usage errors about printf format.
(CID 1238886, 1148881, 1148880)

Signed-off-by: yelini-jeong <yelini.jeong@samsung.com>
2 years ago[Fix] fix svace issues
Jiho Chu [Tue, 19 Apr 2022 03:58:31 +0000 (12:58 +0900)]
[Fix] fix svace issues

https://analysishub.sec.samsung.net/dm/tizen/sb2/main/review#PRJID=943&WGID=482946
https://analysishub.sec.samsung.net/dm/tizen/sb2/main/review#PRJID=943&WGID=482916
https://analysishub.sec.samsung.net/dm/tizen/sb2/main/review#PRJID=943&WGID=482915
https://analysishub.sec.samsung.net/dm/tizen/sb2/main/review#PRJID=943&WGID=482917
https://analysishub.sec.samsung.net/dm/tizen/sb2/main/review#PRJID=943&WGID=482938
https://analysishub.sec.samsung.net/dm/tizen/sb2/main/review#PRJID=943&WGID=482948
https://analysishub.sec.samsung.net/dm/tizen/sb2/main/review#PRJID=943&WGID=482945

Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
2 years ago[Misc] Delete internal repository links in README.md
yelini-jeong [Mon, 7 Feb 2022 06:55:54 +0000 (15:55 +0900)]
[Misc] Delete internal repository links in README.md

This patch deletes internal repository links in README.md

Signed-off-by: yelini-jeong <yelini.jeong@samsung.com>
2 years ago[Segt] Allow non-zero input and output offset
Andrey Shedko [Wed, 19 Jan 2022 09:41:41 +0000 (12:41 +0300)]
[Segt] Allow non-zero input and output offset

This commit allows input and output segments to have non-zero statring
offsets.

Signed-off-by: Andrey Shedko <a.shedko@samsung.com>
2 years ago[Misc] Update CODEOWNERS
Dongju Chae [Wed, 12 Jan 2022 01:37:07 +0000 (10:37 +0900)]
[Misc] Update CODEOWNERS

This patch updates CODEOWNERS to explictly add main developers.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[FIX] Remove static variables in device existence check
Dongju Chae [Tue, 11 Jan 2022 09:31:45 +0000 (18:31 +0900)]
[FIX] Remove static variables in device existence check

This patch removes static variables when checking the number
of available devices. It possibly makes some race conditions.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Misc] Update README.md
Dongju Chae [Thu, 6 Jan 2022 07:06:10 +0000 (16:06 +0900)]
[Misc] Update README.md

This patch updates README.md for internal CI testing

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Docs] Update npu-engine version
Dongju Chae [Tue, 4 Jan 2022 09:54:58 +0000 (18:54 +0900)]
[Docs] Update npu-engine version

This patch updates npu-engine version in docs.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Misc] Fix logging tags
Dongju Chae [Tue, 4 Jan 2022 09:27:28 +0000 (18:27 +0900)]
[Misc] Fix logging tags

This patch fixes logging tags.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Release] npu-engine 2.5.0 release accepted/tizen/unified/20220103.130045 submit/tizen/20220103.094045
Dongju Chae [Thu, 16 Dec 2021 08:18:48 +0000 (17:18 +0900)]
[Release] npu-engine 2.5.0 release

This patch makes new release for npu-engine, v2.5.0.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Build/Workaround] Add trinity uapi header to npu-engine
Dongju Chae [Thu, 16 Dec 2021 07:37:38 +0000 (16:37 +0900)]
[Build/Workaround] Add trinity uapi header to npu-engine

This patch temporally adds uapi header to npu-engine internal.

Even if it's not recommended, upstream kernel headers do not
include our uapi header. So.. let's do this for now.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Badge] Add License badge
Dongju Chae [Wed, 15 Dec 2021 06:50:34 +0000 (15:50 +0900)]
[Badge] Add License badge

This patch adds License badge to README.md.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[License] Add Apache-2.0 License
Dongju Chae [Wed, 15 Dec 2021 06:27:26 +0000 (15:27 +0900)]
[License] Add Apache-2.0 License

This patch adds Apache-2.0 License. Also, all source codes have
the corresponding SPDX-License-Identifier.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Segt] force contiguous memory for segment table
Dongju Chae [Mon, 13 Dec 2021 08:22:43 +0000 (17:22 +0900)]
[Segt] force contiguous memory for segment table

This patch forces contiguous memory for segment table
to use iowrite32 in kernel driver.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Coverage] Increase code Coverage
yelini-jeong [Tue, 30 Nov 2021 06:48:29 +0000 (15:48 +0900)]
[Coverage] Increase code Coverage

This patch increases coverage of handler, model, segment table.

Signed-off-by: yelini-jeong <yelini.jeong@samsung.com>
2 years ago[Misc] add comments
yelini-jeong [Thu, 25 Nov 2021 05:49:26 +0000 (14:49 +0900)]
[Misc] add comments

This patch adds comments to handler and scheduler

Signed-off-by: yelini-jeong <yelini.jeong@samsung.com>
2 years ago[FIX] Reset callback in advance
Dongju Chae [Wed, 17 Nov 2021 02:31:49 +0000 (11:31 +0900)]
[FIX] Reset callback in advance

This patch resets a blocking request's callback before calling its
callback.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Fix] Fix a simple typo
yelini-jeong [Wed, 17 Nov 2021 01:07:11 +0000 (10:07 +0900)]
[Fix] Fix a simple typo

This patch fixes typo in ne-host.c and libnpuhost.h

Signed-off-by: yelini-jeong <yelini.jeong@samsung.com>
2 years ago[Action] set ulimited in github action
Dongju Chae [Tue, 16 Nov 2021 07:26:20 +0000 (16:26 +0900)]
[Action] set ulimited in github action

This patch sets ulimited option in action workflow.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Release] npu-engine 2.4.3 release
Dongju Chae [Fri, 12 Nov 2021 08:43:16 +0000 (17:43 +0900)]
[Release] npu-engine 2.4.3 release

This patch makes new release for npu-engine, v2.4.3.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Example] Revise example code
Dongju Chae [Fri, 12 Nov 2021 07:50:36 +0000 (16:50 +0900)]
[Example] Revise example code

This patch revises the example code to use decoupled submit APIs.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Coverage] Increase code Coverage
yelini-jeong [Mon, 15 Nov 2021 08:39:22 +0000 (17:39 +0900)]
[Coverage] Increase code Coverage

This patch increases coverage of npu memory blocks.

Signed-off-by: yelini-jeong <yelini.jeong@samsung.com>
2 years ago[Docs] Update versions
Dongju Chae [Thu, 11 Nov 2021 07:32:15 +0000 (16:32 +0900)]
[Docs] Update versions

This patch updates package versions in docs.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[VD/Kernel] Support multi-tensors of kernel requests
Dongju Chae [Wed, 20 Oct 2021 05:24:37 +0000 (14:24 +0900)]
[VD/Kernel] Support multi-tensors of kernel requests

This patch supports multi-tensors of kernel requests.
Negative dmabuf values will be used for the indicator.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Fix] Reset internal callback after submission
Dongju Chae [Mon, 18 Oct 2021 03:47:15 +0000 (12:47 +0900)]
[Fix] Reset internal callback after submission

This patch resets the internal callback for a blocking request
after its request sumission.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[DLOG] change dlog tag name
Dongju Chae [Fri, 15 Oct 2021 10:15:55 +0000 (19:15 +0900)]
[DLOG] change dlog tag name

This patch changes dlog tag name from npu-engine to TRIV2.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Release] npu-engine v2.4.2 release
Dongju Chae [Thu, 14 Oct 2021 07:59:26 +0000 (16:59 +0900)]
[Release] npu-engine v2.4.2 release

This patch makes new release for npu-engine, v2.4.2.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[FIX/SVACE] Fix svace error (integer overflow)
Dongju Chae [Thu, 14 Oct 2021 07:38:30 +0000 (16:38 +0900)]
[FIX/SVACE] Fix svace error (integer overflow)

This patch fixes svace error, integer overflow, due to tainted
operands.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[FIX/DSPM] Use envionment variable to check dspm size
Dongju Chae [Tue, 12 Oct 2021 06:50:12 +0000 (15:50 +0900)]
[FIX/DSPM] Use envionment variable to check dspm size

This patch uses envionment variable of libmrpsim to check
the dspm size.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Pkg/Cuse] Apply smack rules in the post script
Dongju Chae [Mon, 27 Sep 2021 01:47:21 +0000 (10:47 +0900)]
[Pkg/Cuse] Apply smack rules in the post script

This patch applies cuse-driver related smack rules in
the post script.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Cuse/Fix] Add ENABLE_CUSE macro instead of variable
Dongju Chae [Fri, 24 Sep 2021 06:35:23 +0000 (15:35 +0900)]
[Cuse/Fix] Add ENABLE_CUSE macro instead of variable

This patch explicitly adds ENABLE_CUSE macro rather than
using an internal variable.

Note that in case of .NET app running on the Tizen emulator,
cuse context's pid is not the calling process. So, the pid
info is shared via a file. But, this may not have any sync issue
because an emulator may not support concurrent executions.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Release] npu-engine v2.4.1 release
Dongju Chae [Fri, 17 Sep 2021 06:59:52 +0000 (15:59 +0900)]
[Release] npu-engine v2.4.1 release

This patch makes new release for npu-engine, v2.4.1.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Test/Fix] Change data type to DATA_TYPE_MODEL
Dongju Chae [Mon, 13 Sep 2021 03:16:13 +0000 (12:16 +0900)]
[Test/Fix] Change data type to DATA_TYPE_MODEL

This patch change a data type to DATA_TYPE_MODEL which
describe the data type that a model internally assumes.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Emul/Profile] Add PID info. to profile data path
Dongju Chae [Fri, 3 Sep 2021 04:46:04 +0000 (13:46 +0900)]
[Emul/Profile] Add PID info. to profile data path

This patch adds PID info. to profile data path. It will prevent
concurrent accesses to the same file from multiple users.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Coverity] Resolve newly reported coverity issues
Dongju Chae [Thu, 26 Aug 2021 07:18:14 +0000 (16:18 +0900)]
[Coverity] Resolve newly reported coverity issues

This patch resolves newly reported coverity issues.
It seems that the latest version of coverity detects more
conservatively.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Release] npu-engine v2.4.0 release
Dongju Chae [Mon, 23 Aug 2021 06:34:44 +0000 (15:34 +0900)]
[Release] npu-engine v2.4.0 release

This patch makes new release for npu-engine, v2.4.0.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Test] Add missing result message in interleave apptest
Dongju Chae [Tue, 24 Aug 2021 03:39:44 +0000 (12:39 +0900)]
[Test] Add missing result message in interleave apptest

This patch adds missing result message in interleave apptest.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Fix] Use LAYOUT_MODEL for dmabuf apptest
Dongju Chae [Tue, 24 Aug 2021 03:17:04 +0000 (12:17 +0900)]
[Fix] Use LAYOUT_MODEL for dmabuf apptest

This patch uses LAYOUT_MODEL for dmabuf apptest.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Docs] Update testing guide in FPGA
Dongju Chae [Tue, 24 Aug 2021 03:16:07 +0000 (12:16 +0900)]
[Docs] Update testing guide in FPGA

This patch updates testing guide in FPGA.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Docs] Update npu-engine version info
Dongju Chae [Mon, 23 Aug 2021 06:48:24 +0000 (15:48 +0900)]
[Docs] Update npu-engine version info

This patch updates npu-engine version info.
- npu-engine: v2.4.0
- testdata: v2.3.8

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Fix] Use v2.3.8 models for testing
Dongju Chae [Mon, 23 Aug 2021 10:11:16 +0000 (19:11 +0900)]
[Fix] Use v2.3.8 models for testing

This patch uses v2.3.8 models for testing.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Plugin] Rename nnstreamer subplugin
Dongju Chae [Thu, 19 Aug 2021 02:13:16 +0000 (11:13 +0900)]
[Plugin] Rename nnstreamer subplugin

This patch renames nnstreamer subplugin from srnpu to trix-engine.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Release] npu-engine v2.3.16 release
Dongju Chae [Wed, 11 Aug 2021 07:42:15 +0000 (16:42 +0900)]
[Release] npu-engine v2.3.16 release

This patch makes new release for npu-engine, v2.3.16.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Bug] fix layout checking when calculating tensor size
Dongju Chae [Thu, 12 Aug 2021 01:46:46 +0000 (10:46 +0900)]
[Bug] fix layout checking when calculating tensor size

This patch fixes layout checking when calculating tensor size.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Coverage] Increase code coverage
Dongju Chae [Wed, 11 Aug 2021 09:02:17 +0000 (18:02 +0900)]
[Coverage] Increase code coverage

This patch increases code coverage.
- Line Coverage: 89.1%
- Func Coverage: 92.2%

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Profile] Allow multiple calls to get profile data
Dongju Chae [Tue, 10 Aug 2021 04:32:34 +0000 (13:32 +0900)]
[Profile] Allow multiple calls to get profile data

This patch revises profiling codes to allow multiple calls
to get profile data.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Action] Use debug mode to check PR
Dongju Chae [Tue, 10 Aug 2021 06:45:09 +0000 (15:45 +0900)]
[Action] Use debug mode to check PR

This patch uses debug mode to check PR.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Bug/Fix] Don't access request instance after callback
Dongju Chae [Tue, 10 Aug 2021 06:31:02 +0000 (15:31 +0900)]
[Bug/Fix] Don't access request instance after callback

This patch fixes double free bug. The callback handler
should not access the request instance after user callback.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Action] Update pr checker to make core dump
Dongju Chae [Tue, 10 Aug 2021 05:58:37 +0000 (14:58 +0900)]
[Action] Update pr checker to make core dump

This patch updates pr checker to make core dump on failures.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Action] Add workflow to upload core dump
Dongju Chae [Tue, 10 Aug 2021 03:21:25 +0000 (12:21 +0900)]
[Action] Add workflow to upload core dump

This patch adds action workflow to upload core dump on failures

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Valgrind] Remove valgrind warnings.
Dongju Chae [Mon, 9 Aug 2021 05:01:37 +0000 (14:01 +0900)]
[Valgrind] Remove valgrind warnings.

This patch removes valgrind warnings mostly related to value
initialization.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Test] Refactoring setting test model
Dongju Chae [Mon, 9 Aug 2021 09:24:47 +0000 (18:24 +0900)]
[Test] Refactoring setting test model

This patch performs code refactoring setting the test model
used in libnpuhost unittests.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Misc] Change the default loglevel to 2
Dongju Chae [Tue, 10 Aug 2021 01:14:05 +0000 (10:14 +0900)]
[Misc] Change the default loglevel to 2

This patch changes the default loglevel to 2.
It will show warning messages as well as error messages.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Misc] Update README.md
Dongju Chae [Mon, 9 Aug 2021 09:34:37 +0000 (18:34 +0900)]
[Misc] Update README.md

This patch updates README.md to describe ubuntu 20.04 support.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Format] Revise the format of whole source codes
Dongju Chae [Fri, 6 Aug 2021 06:54:11 +0000 (15:54 +0900)]
[Format] Revise the format of whole source codes

This patch revises the format of whole source codes using
column limit 100.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Clang/Format] Update column limit to 100
Dongju Chae [Fri, 6 Aug 2021 06:52:39 +0000 (15:52 +0900)]
[Clang/Format] Update column limit to 100

This patch updates column limit to 100. The original width 80 is
too strict and does not provide readability in our cases.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Coverage] Increase coverage for libnpuhost APIs
Dongju Chae [Fri, 6 Aug 2021 06:01:52 +0000 (15:01 +0900)]
[Coverage] Increase coverage for libnpuhost APIs

This patch increases code coverage for libnpuhost APIs.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Converage] Increase code coverage for input services
Dongju Chae [Fri, 6 Aug 2021 02:42:37 +0000 (11:42 +0900)]
[Converage] Increase code coverage for input services

This patch increases code coverage for input services.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Docs] Update some documents
Dongju Chae [Thu, 5 Aug 2021 06:56:14 +0000 (15:56 +0900)]
[Docs] Update some documents

This patch updates some documents to describe the latest NPU-DDK.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Release] npu-engine v2.3.15 release
Dongju Chae [Tue, 3 Aug 2021 05:58:04 +0000 (14:58 +0900)]
[Release] npu-engine v2.3.15 release

This patch makes new release for npu-engine, v2.3.15.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Layout] Skip layout conversion for raw data layout
Dongju Chae [Thu, 5 Aug 2021 01:12:04 +0000 (10:12 +0900)]
[Layout] Skip layout conversion for raw data layout

This patch makes the data converter skip layout conversion
for raw data layout.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Layout] Add warning when setting data info
Dongju Chae [Thu, 5 Aug 2021 02:54:29 +0000 (11:54 +0900)]
[Layout] Add warning when setting data info

This patch adds warning messages when setting data info of
raw tensor data.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Model] Fix tensor size calculation
Dongju Chae [Wed, 4 Aug 2021 07:13:58 +0000 (16:13 +0900)]
[Model] Fix tensor size calculation

This patch fixes tensor size calculation.
The special handling is applied NONE/TRIV2 layout only.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[layout] Add raw data layout
Dongju Chae [Wed, 4 Aug 2021 07:00:52 +0000 (16:00 +0900)]
[layout] Add raw data layout

This patch adds new enum value, DATA_LAYOUT_RAW.

When it's specified, npu-engine skips data layout conversion which means
the tensor size should be matched with the corresponding segment size.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Doc] Add extra description for FastModels
Dongju Chae [Tue, 3 Aug 2021 02:02:33 +0000 (11:02 +0900)]
[Doc] Add extra description for FastModels

This patch adds extra description for FastModels.

NPU-DDK FM is not available to non-SR users if they don't have
valid licenses.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Doc] Fix wrong package name
Dongju Chae [Sun, 1 Aug 2021 22:52:26 +0000 (07:52 +0900)]
[Doc] Fix wrong package name

This patch fixes wrong package name.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Docs] Remove deprecated APIs in docs
Dongju Chae [Wed, 28 Jul 2021 08:06:44 +0000 (17:06 +0900)]
[Docs] Remove deprecated APIs in docs

This patch removes deprecated APIs in docs.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[FPGA] Fix logic to compare output data
Dongju Chae [Tue, 27 Jul 2021 08:18:54 +0000 (17:18 +0900)]
[FPGA] Fix logic to compare output data

This patch fixes logic to compare output data.
Also, don't use output buffers allocated by a NPU driver in FPGA.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Doc] Add some documents for NPU kernel modules
Dongju Chae [Wed, 28 Jul 2021 00:50:50 +0000 (09:50 +0900)]
[Doc] Add some documents for NPU kernel modules

This patch adds some documents how to install NPU kernel modules.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Utils] Update model-inspect to show segment data layout
Dongju Chae [Tue, 27 Jul 2021 06:14:35 +0000 (15:14 +0900)]
[Utils] Update model-inspect to show segment data layout

This patch updates model-inspect to show segment data layout.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[FPGA] Fix the memcpy size of fpga workaround
Dongju Chae [Tue, 27 Jul 2021 06:14:35 +0000 (15:14 +0900)]
[FPGA] Fix the memcpy size of fpga workaround

This patch fixes the memcpy size of fpga workaround.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Test] Fix the print format of bulk test.
Dongju Chae [Tue, 27 Jul 2021 01:56:57 +0000 (10:56 +0900)]
[Test] Fix the print format of bulk test.

This patch fixes the print format of bulk test.
When an error occurs, a weird value can be printed.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[visa] Add num visa insts
Dongju Chae [Fri, 23 Jul 2021 03:19:52 +0000 (12:19 +0900)]
[visa] Add num visa insts

This patch adds num visa insts.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>