platform/adaptation/npu/trix-engine.git
2 years ago[Plugin/Test] Plugin test refactoring
Dongju Chae [Tue, 13 Jul 2021 02:31:58 +0000 (11:31 +0900)]
[Plugin/Test] Plugin test refactoring

This patch changes plugin test program paths.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Release] NPU Engine v2.3.13 release
Dongju Chae [Mon, 12 Jul 2021 07:58:17 +0000 (16:58 +0900)]
[Release] NPU Engine v2.3.13 release

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

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[API] Add setNPU_requestScheduler
Dongju Chae [Mon, 12 Jul 2021 07:37:17 +0000 (16:37 +0900)]
[API] Add setNPU_requestScheduler

This patch adds setNPU_requestScheduler() to replace the original
setNPU_requestNpumgrParam() which is not intuitive.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[npubinfmt] Add extended metasize to npubinfmt.h
Dongju Chae [Fri, 9 Jul 2021 05:58:39 +0000 (14:58 +0900)]
[npubinfmt] Add extended metasize to npubinfmt.h

This patch explicltly adds extended metasize to npubinfmt.h.
The related macros are deprecated when the size is larger than 1MB.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Action] Add extra labels for labeler action
Dongju Chae [Mon, 12 Jul 2021 08:02:28 +0000 (17:02 +0900)]
[Action] Add extra labels for labeler action

This patch adds extra labels for labeler action.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Utils] Fix text format of trinity_smi's app status
Dongju Chae [Mon, 12 Jul 2021 04:56:06 +0000 (13:56 +0900)]
[Utils] Fix text format of trinity_smi's app status

This patch fixes text format of trinity_smi's app status.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Docs] Update artifactory url
Dongju Chae [Mon, 12 Jul 2021 01:15:10 +0000 (10:15 +0900)]
[Docs] Update artifactory url

This patch updates artifactory url changed according to the upgraded JFrog.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Apptest] Add test checking how to handle SIGKILL events
Dongju Chae [Fri, 9 Jul 2021 01:41:30 +0000 (10:41 +0900)]
[Apptest] Add test checking how to handle SIGKILL events

This patch adds extra apptest to check how to handle SIGKILL events.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Action] Move ubuntu-apptest to github action from TAOS-CI
Dongju Chae [Thu, 8 Jul 2021 06:25:27 +0000 (15:25 +0900)]
[Action] Move ubuntu-apptest to github action from TAOS-CI

This patch moves ubuntu-apptest to github action from TAOS-CI.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[NNS/Test] Add nnstreamer plugin test
Dongju Chae [Wed, 7 Jul 2021 12:32:03 +0000 (21:32 +0900)]
[NNS/Test] Add nnstreamer plugin test

This patch adds nnstreamer plugin test.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Dist] Ignore stdout messages from simulator
Dongju Chae [Thu, 8 Jul 2021 06:36:06 +0000 (15:36 +0900)]
[Dist] Ignore stdout messages from simulator

This patch ignore stdout messages from simulator
by redirecting std::cout to /dev/null.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Utils] Dependency refactoring test utils
Dongju Chae [Wed, 7 Jul 2021 11:40:10 +0000 (20:40 +0900)]
[Utils] Dependency refactoring test utils

This patch performs dependency refactoring for test utils.

The gtest dependency will be used other tests like plugins as well as
unittests.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[libnpuhost] Add minor comment
Dongju Chae [Wed, 7 Jul 2021 12:15:07 +0000 (21:15 +0900)]
[libnpuhost] Add minor comment

This patch adds minor comment to libnpuhost.h to check labeler.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Action] Update labeler rules
Dongju Chae [Wed, 7 Jul 2021 12:19:30 +0000 (21:19 +0900)]
[Action] Update labeler rules

This patch updates labeler rules to include all files in
sub-directories.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Action] Add missing labeler config file
Dongju Chae [Wed, 7 Jul 2021 11:51:08 +0000 (20:51 +0900)]
[Action] Add missing labeler config file

This patch adds missing labeler config file.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Action] Add labeler
Dongju Chae [Wed, 7 Jul 2021 09:57:53 +0000 (18:57 +0900)]
[Action] Add labeler

This patch adds github action labeler.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Plugin/NNS] Revise nnstreamer sub-plugin codes using C++ APIs
Dongju Chae [Wed, 7 Jul 2021 01:23:11 +0000 (10:23 +0900)]
[Plugin/NNS] Revise nnstreamer sub-plugin codes using C++ APIs

This patch revises nnstreamer sub-plugin codes using C++ sub-plugin APIs.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Plugin/NNS] Add NNStreamer filter sub-plguin for TRIV2
Dongju Chae [Tue, 6 Jul 2021 03:26:57 +0000 (12:26 +0900)]
[Plugin/NNS] Add NNStreamer filter sub-plguin for TRIV2

This patch adds NNStreamer tensor-filter plugin for TRIV2,
moved from nnstreamer-private-plugins.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Svace] Add missing model existence checking
Dongju Chae [Tue, 6 Jul 2021 03:12:42 +0000 (12:12 +0900)]
[Svace] Add missing model existence checking

This patch adds missing model existence checking.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Plugins] Create sub-directory for plugins
Dongju Chae [Tue, 6 Jul 2021 03:01:37 +0000 (12:01 +0900)]
[Plugins] Create sub-directory for plugins

This patch creates sub-directory for plugins such as nnstreamer, npumgr,
and so on. The exsiting codes will be moved to there.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Apptest] Add apptest to test API call interleaving
Dongju Chae [Mon, 5 Jul 2021 05:49:44 +0000 (14:49 +0900)]
[Apptest] Add apptest to test API call interleaving

This adds apptest to test API call interleaving for multiple models.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Release] NPU Engine v2.3.12 release
Dongju Chae [Fri, 2 Jul 2021 04:54:39 +0000 (13:54 +0900)]
[Release] NPU Engine v2.3.12 release

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

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Action] Test gbs build and upload packages
Dongju Chae [Fri, 2 Jul 2021 03:37:22 +0000 (12:37 +0900)]
[Action] Test gbs build and upload packages

This patch adds github workflows to test gbs build
and upload rpm packages.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Segment] adds segment size info. for external memory
Dongju Chae [Fri, 2 Jul 2021 02:24:13 +0000 (11:24 +0900)]
[Segment] adds segment size info. for external memory

This patch adds segment size info. for external memory
to the segment table.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[README] Add github action badge
Dongju Chae [Thu, 1 Jul 2021 06:04:46 +0000 (15:04 +0900)]
[README] Add github action badge

This patch adds github action badge.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Action] Add test script for github action
Dongju Chae [Wed, 30 Jun 2021 09:08:17 +0000 (18:08 +0900)]
[Action] Add test script for github action

This patch adds test script for github action.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[InputService] Perform refactoring for input services
Dongju Chae [Wed, 30 Jun 2021 05:37:44 +0000 (14:37 +0900)]
[InputService] Perform refactoring for input services

This patch performs refactoring for input services.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Test] Add aging test to repeat whole APIs
Dongju Chae [Tue, 29 Jun 2021 07:22:39 +0000 (16:22 +0900)]
[Test] Add aging test to repeat whole APIs

This patch adds aging test to repease whole APIs.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Data] Support data layout conversion between NCHW and TRIV2
Dongju Chae [Mon, 28 Jun 2021 05:15:20 +0000 (14:15 +0900)]
[Data] Support data layout conversion between NCHW and TRIV2

This patch supports data layout conversion between NCHW and TRIV2.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Release] NPU Engine v2.3.11 release
Dongju Chae [Fri, 25 Jun 2021 06:47:28 +0000 (15:47 +0900)]
[Release] NPU Engine v2.3.11 release

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

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Apptest] Add extra aging test to repeat model register/unregister
Dongju Chae [Fri, 25 Jun 2021 05:40:41 +0000 (14:40 +0900)]
[Apptest] Add extra aging test to repeat model register/unregister

This patch adds extra aging test to repeat model register/unregister.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[npubinfmt] Add data layout for inout tensors to npubinfmt.h
Dongju Chae [Tue, 22 Jun 2021 07:39:47 +0000 (16:39 +0900)]
[npubinfmt] Add data layout for inout tensors to npubinfmt.h

This patch adds the model-expected data layout for input/output
tensors to npubinfmt.h

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[HW] Revise HW input service
Dongju Chae [Thu, 24 Jun 2021 03:09:25 +0000 (12:09 +0900)]
[HW] Revise HW input service

This patch revises HW input service's implementation.

It's now connected to submitNPU_requestKernel() which uses
internal input/output data from third-parity kernel modules.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Apptest] Add aging test mode and check mem leak
Dongju Chae [Thu, 24 Jun 2021 09:20:09 +0000 (18:20 +0900)]
[Apptest] Add aging test mode and check mem leak

This patch adds aging test mode and check mem leak.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Svace] Fix svace defects
Dongju Chae [Thu, 24 Jun 2021 05:11:49 +0000 (14:11 +0900)]
[Svace] Fix svace defects

This patch fixes svace defects.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Bug/dealloc] Add missing close() on hwmem dealloc
Dongju Chae [Fri, 25 Jun 2021 02:58:36 +0000 (11:58 +0900)]
[Bug/dealloc] Add missing close() on hwmem dealloc

This patch adds missing close() on hwmem dealloc.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[SegmentTable] Bug fix when restoring the segment table
Dongju Chae [Thu, 24 Jun 2021 05:00:17 +0000 (14:00 +0900)]
[SegmentTable] Bug fix when restoring the segment table

This patch fixes the bug when restoring segment table for re-use.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Apptest] Add apptest for multiple inferences (againg test)
Dongju Chae [Wed, 23 Jun 2021 03:32:17 +0000 (12:32 +0900)]
[Apptest] Add apptest for multiple inferences (againg test)

This patch adds apptest for multiple inferences.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[API] Add API to get model id of request and handle empty weight
Dongju Chae [Wed, 23 Jun 2021 06:57:29 +0000 (15:57 +0900)]
[API] Add API to get model id of request and handle empty weight

This patch adds APi to get model id of request and handle the case
that model contains empty weight data.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[API] Allow to submit a request multiple times
Dongju Chae [Tue, 22 Jun 2021 05:49:00 +0000 (14:49 +0900)]
[API] Allow to submit a request multiple times

This patch allows to submit a request multiple times.
But, users should call removeNPU_request().

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[CodeClean] Add newline between variable and doxygen comment
Dongju Chae [Tue, 22 Jun 2021 07:25:32 +0000 (16:25 +0900)]
[CodeClean] Add newline between variable and doxygen comment

This patch adds newline between variable and doxygen comment.
Otherwise, clang-format makes undesirable line-breaks in variable
definitions.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[API] Add API to submit requests for kernel modules
Dongju Chae [Fri, 18 Jun 2021 08:22:12 +0000 (17:22 +0900)]
[API] Add API to submit requests for kernel modules

This patch adds API to submit requests for kernel modules.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Bug] Fix the bug when setting npumgr param
Dongju Chae [Mon, 21 Jun 2021 03:38:10 +0000 (12:38 +0900)]
[Bug] Fix the bug when setting npumgr param

This patch fixes the bug when setting npumgr param.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Release] NPU Engine v2.3.10 release
Dongju Chae [Fri, 18 Jun 2021 05:09:30 +0000 (14:09 +0900)]
[Release] NPU Engine v2.3.10 release

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

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[API] Implement decoupled APIs for network inferencing
Dongju Chae [Tue, 15 Jun 2021 04:39:21 +0000 (13:39 +0900)]
[API] Implement decoupled APIs for network inferencing

This patch implements decoupled APIs for network inferencing.
It allows for users to configure their requests before submission.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[NPUMGR/Dummy] Enable NHWC format handling
Dongju Chae [Fri, 11 Jun 2021 07:07:05 +0000 (16:07 +0900)]
[NPUMGR/Dummy] Enable NHWC format handling

This patch enables NHWC format handling.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[API] Add decoupled inference APIs (request submission)
Dongju Chae [Mon, 14 Jun 2021 08:45:31 +0000 (17:45 +0900)]
[API] Add decoupled inference APIs (request submission)

This patch adds decoupled inference APIs to create, configure,
and submit a request.

But, this PR only contains their prototype yet which is TBU.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[API/Log] Add Logging API for users with custom tag
Dongju Chae [Mon, 14 Jun 2021 05:36:08 +0000 (14:36 +0900)]
[API/Log] Add Logging API for users with custom tag

This patch adds logging API for users with custom tag.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[UnitTest] Add missing task handle initialization
Dongju Chae [Mon, 14 Jun 2021 01:03:06 +0000 (10:03 +0900)]
[UnitTest] Add missing task handle initialization

This patch adds missing task handle inititialization.
UINT32_MAX indicates it uses SR task scheduler.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Log] Add missing error logs for triv2 driver API
Dongju Chae [Fri, 11 Jun 2021 08:39:31 +0000 (17:39 +0900)]
[Log] Add missing error logs for triv2 driver API

This patch adds missing error logs for triv2 driver API.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[VD/NPUMGR] Add tizen-npumanager dependency
Dongju Chae [Fri, 11 Jun 2021 05:33:28 +0000 (14:33 +0900)]
[VD/NPUMGR] Add tizen-npumanager dependency

This patch adds tizen-npumanager dependency.

It's used only when 'vd_npumgr' option is provided.
Otherwise, dummy npumgr module is used.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
2 years ago[Docs] Add some document for DBus application
Dongju Chae [Fri, 11 Jun 2021 02:24:54 +0000 (11:24 +0900)]
[Docs] Add some document for DBus application

This patch adds some document for DBus application.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Fix] Remove the dependency with npu scheduler
Dongju Chae [Wed, 9 Jun 2021 08:37:24 +0000 (17:37 +0900)]
[Fix] Remove the dependency with npu scheduler

This patch removes the dependency with npu scheduler.
Only when taks_handle is set, npu scheduler is used.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Docs] Fix a simple typo in README
나동진/SoC·화질Lab(VD)/Staff Engineer/삼성전자 [Wed, 9 Jun 2021 01:41:52 +0000 (10:41 +0900)]
[Docs] Fix a simple typo in README

Corrected 'compatibile' to 'compatible'.

Signed-off-by: Dongjin Na <dongjin.na@samsung.com>
3 years ago[Docs] Add documents to enable ssh connections
Dongju Chae [Tue, 8 Jun 2021 08:57:26 +0000 (17:57 +0900)]
[Docs] Add documents to enable ssh connections

This patch adds documents to enable ssh connections.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Coverage] Fix coverage report's version
Dongju Chae [Mon, 7 Jun 2021 10:26:55 +0000 (19:26 +0900)]
[Coverage] Fix coverage report's version

This patch fixes the version of coverage report.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[TCM] remove '#ifdef' in outside of TCs
Dongju Chae [Mon, 7 Jun 2021 06:25:45 +0000 (15:25 +0900)]
[TCM] remove '#ifdef' in outside of TCs

This patch remvoes `#ifdef` in outside of TCs
because TCM cannot detect such macros.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[FIX/VD] Rename npu schduler device and other kernel enum types
Dongju Chae [Fri, 4 Jun 2021 08:50:41 +0000 (17:50 +0900)]
[FIX/VD] Rename npu schduler device and other kernel enum types

This patch renames npu schduler device and other kernel enum types.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Release] NPU Engine v2.3.9 release
Dongju Chae [Thu, 3 Jun 2021 07:27:00 +0000 (16:27 +0900)]
[Release] NPU Engine v2.3.9 release

This patch makes new release for NPU Engine, v2.3.9.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Docs] Add the detail test lists
Dongju Chae [Thu, 3 Jun 2021 09:31:47 +0000 (18:31 +0900)]
[Docs] Add the detail test lists

This patch adds the detail test lists.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Bug] Fix metadata memcpy bug
Dongju Chae [Thu, 3 Jun 2021 07:15:45 +0000 (16:15 +0900)]
[Bug] Fix metadata memcpy bug

This patch fixes the bug about metadata memcpy.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Docs] add additional info. to the FPGA testing document
Dongju Chae [Mon, 31 May 2021 07:56:29 +0000 (16:56 +0900)]
[Docs] add additional info. to the FPGA testing document

This patch adds additional info. to the FPGA testting document.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Misc] Update CODEOWNERS
Dongju Chae [Tue, 1 Jun 2021 05:38:41 +0000 (14:38 +0900)]
[Misc] Update CODEOWNERS

This patch adds new coder owner for code review.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Svace] Fix memory leak
Dongju Chae [Mon, 31 May 2021 06:47:53 +0000 (15:47 +0900)]
[Svace] Fix memory leak

This patch fixes memory leak.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Coverage] Increase function coverage
Dongju Chae [Mon, 31 May 2021 06:02:50 +0000 (15:02 +0900)]
[Coverage] Increase function coverage

This patch increases function coverage for unused types.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Docs] Add document for FPGA testing
Dongju Chae [Mon, 31 May 2021 04:44:35 +0000 (13:44 +0900)]
[Docs] Add document for FPGA testing

This patch adds documents for FPGA testing.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[FPGA/FIX] fix some apptests for FPGA env.
Dongju Chae [Fri, 28 May 2021 03:46:40 +0000 (12:46 +0900)]
[FPGA/FIX] fix some apptests for FPGA env.

This patch fixes some apptests for FPGA env.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Coverage/Fix] Enable lcov coverage analysis
Dongju Chae [Thu, 27 May 2021 09:44:56 +0000 (18:44 +0900)]
[Coverage/Fix] Enable lcov coverage analysis

This patch enables lcov coverage analysis to calculate TEM.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[FIX/FPGA] Enable data manipulation in FPGA env.
Dongju Chae [Thu, 27 May 2021 05:56:01 +0000 (14:56 +0900)]
[FIX/FPGA] Enable data manipulation in FPGA env.

This patch enables data manipulation in FPGA env.
It also adds a test option to enabel TRIV2 data format.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Build/Fix] Add a meson option to select target platform
Dongju Chae [Thu, 27 May 2021 03:42:56 +0000 (12:42 +0900)]
[Build/Fix] Add a meson option to select target platform

This patch adds a meson option to select target platform

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Docs] Update package version and remove xenial support
Dongju Chae [Wed, 26 May 2021 11:03:19 +0000 (20:03 +0900)]
[Docs] Update package version and remove xenial support

This patch updates package version and remove xenial support.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Coverage] Increase coverage for profiler
Dongju Chae [Wed, 26 May 2021 10:27:05 +0000 (19:27 +0900)]
[Coverage] Increase coverage for profiler

This patch increases coverage for profiler.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Release] npu-engine 2.3.8 release
Dongju Chae [Tue, 25 May 2021 05:39:52 +0000 (14:39 +0900)]
[Release] npu-engine 2.3.8 release

This patch makes new release for npu-engine.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Tests/Fix] Use NHWC format to compare golden data
Dongju Chae [Wed, 26 May 2021 08:19:21 +0000 (17:19 +0900)]
[Tests/Fix] Use NHWC format to compare golden data

This patch uses NHWC format to compare golden data.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Profile/Tests] Add a profile option to select profile level
Dongju Chae [Wed, 26 May 2021 04:28:15 +0000 (13:28 +0900)]
[Profile/Tests] Add a profile option to select profile level

This patch adds a profile option to select profile level in tests.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[FIX/PROFILE] Fix profile data alignment shared with driver
Dongju Chae [Wed, 26 May 2021 06:24:39 +0000 (15:24 +0900)]
[FIX/PROFILE] Fix profile data alignment shared with driver

This patch fixes profile data alignment shared with driver.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Debian] Increase the minimum version dependency of libmrpsim
Dongju Chae [Wed, 26 May 2021 04:31:35 +0000 (13:31 +0900)]
[Debian] Increase the minimum version dependency of libmrpsim

This patch increases the minimum version dependency of libmrpsim.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Fix/Coverity] Fix coverity issues not checking return values
Dongju Chae [Wed, 26 May 2021 04:06:00 +0000 (13:06 +0900)]
[Fix/Coverity] Fix coverity issues not checking return values

This patch fixes coverity issues that some codes do not check
return values of lseek().

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[VD/NPUMGR] Implement network execute APIs
Dongju Chae [Tue, 25 May 2021 06:04:58 +0000 (15:04 +0900)]
[VD/NPUMGR] Implement network execute APIs

This patch implements network execute APIs of VD NPUMGR.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[API] Add a common API to cover runNPU_sync/async
Dongju Chae [Mon, 24 May 2021 11:33:59 +0000 (20:33 +0900)]
[API] Add a common API to cover runNPU_sync/async

This patch adds a common API to cover runNPU_sync/async.
It also allow for users to provide pre-allocated input/output.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[VD/NPUMGR] Implement buffer-related APIs
Dongju Chae [Tue, 25 May 2021 04:06:23 +0000 (13:06 +0900)]
[VD/NPUMGR] Implement buffer-related APIs

This patch implement buffer-related APIs and its backend modules.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Build/Fix] Remove unnecessary glib dependency
Dongju Chae [Tue, 25 May 2021 07:06:35 +0000 (16:06 +0900)]
[Build/Fix] Remove unnecessary glib dependency

This patch removes unnecessary glib dependency.

VD NPUMGR requires glib-2.0 dependency but it's provided
by npu-engine-example and available only in the Tizen env.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[VD/NPUMGR] Daemonize NPUMGR runnable in FastModel
Dongju Chae [Tue, 25 May 2021 04:46:39 +0000 (13:46 +0900)]
[VD/NPUMGR] Daemonize NPUMGR runnable in FastModel

This patch makes daemonized NPUMGR which is runnable in FastModel.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[API] add an API to calculate a tensor size of model
Dongju Chae [Mon, 24 May 2021 11:25:32 +0000 (20:25 +0900)]
[API] add an API to calculate a tensor size of model

This patch adds an API to calculate a tensor size which
the target model assumes.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Comm/FD] Allow to read file contents via a file descriptor
Dongju Chae [Thu, 20 May 2021 06:49:02 +0000 (15:49 +0900)]
[Comm/FD] Allow to read file contents via a file descriptor

This patch allows to read file contents via a file descriptor.
Some user may want to pass just a file descriptor, not file name.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Tests/Utils] Separate common functions from test utils
Dongju Chae [Mon, 24 May 2021 11:03:31 +0000 (20:03 +0900)]
[Tests/Utils] Separate common functions from test utils

This patch separates common functions from test utils.
It will be useful for some tests without npu-engine dependencies.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Fix/Triv2] Fix checking a file descriptor of npu_sched driver
Dongju Chae [Thu, 20 May 2021 04:58:59 +0000 (13:58 +0900)]
[Fix/Triv2] Fix checking a file descriptor of npu_sched driver

This patch fixes checking a file descriptor of npu_sched driver.
A file descriptor returned by `::open` can have even zero.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[VD/NPUMGR] Implement network/tensor query functions
Dongju Chae [Tue, 18 May 2021 10:07:35 +0000 (19:07 +0900)]
[VD/NPUMGR] Implement network/tensor query functions

This patch implements network/tensor query functions of
TRIV2's VD NPU Manager plugin.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[VD/NPUMGR] Implement network create/destroy
Dongju Chae [Thu, 6 May 2021 06:01:12 +0000 (15:01 +0900)]
[VD/NPUMGR] Implement network create/destroy

This patch implements network create/destroy in VD NPU Manager.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[VD/NPUMGR] Add the TRIV2 plugin prototype of npumgr
Dongju Chae [Thu, 6 May 2021 04:43:10 +0000 (13:43 +0900)]
[VD/NPUMGR] Add the TRIV2 plugin prototype of npumgr

This patch adds the TRIV2 plugin prototype of npumgr.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Release] npu-engine 2.3.7 release
Dongju Chae [Fri, 14 May 2021 05:24:33 +0000 (14:24 +0900)]
[Release] npu-engine 2.3.7 release

This patch makes new release npu-engine 2.3.7.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[FIX] Update test models v2.3.4 to v2.3.5
Dongju Chae [Fri, 14 May 2021 09:10:37 +0000 (18:10 +0900)]
[FIX] Update test models v2.3.4 to v2.3.5

This patch updates test models v2.3.4 to v2.3.5.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[API/Profile] Add the profile opcode
Dongju Chae [Fri, 14 May 2021 05:21:26 +0000 (14:21 +0900)]
[API/Profile] Add the profile opcode

This patch adds the profile opcode.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[API/Profile] Seperate profiling data
Dongju Chae [Tue, 4 May 2021 10:30:00 +0000 (19:30 +0900)]
[API/Profile] Seperate profiling data

This patch seperates profiling data depending on its profile level.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[API/Profile] Implement getNPU_profile_opt()
Dongju Chae [Tue, 4 May 2021 10:00:56 +0000 (19:00 +0900)]
[API/Profile] Implement getNPU_profile_opt()

This patch implements `getNPU_profile_opt()`, which is a variant of
the existing `getNPU_profile()`.

It requires an extra argument called `npu_profile_opt`.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Svace] Fix minor svace issue
Dongju Chae [Fri, 30 Apr 2021 06:58:09 +0000 (15:58 +0900)]
[Svace] Fix minor svace issue

This patch fixes some minor svace issues
- UNINIT_CTOR
- RESOURCE_LEAK

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Release] NPU Engine 2.3.6 release
Dongju Chae [Fri, 23 Apr 2021 08:10:48 +0000 (17:10 +0900)]
[Release] NPU Engine 2.3.6 release

This patch makes new release, npu engine v2.3.6.
Please refer to ./CHANGES for the detail.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Utils/Cuse] Support profiling ioctl () of CUSE device.
Dongju Chae [Fri, 23 Apr 2021 06:55:09 +0000 (15:55 +0900)]
[Utils/Cuse] Support profiling ioctl () of CUSE device.

This patch supports profiling ioctl () of CUSE device.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Utils/Cuse] Implement run_input ioctl and connect libmrpsim
Dongju Chae [Tue, 20 Apr 2021 06:26:05 +0000 (15:26 +0900)]
[Utils/Cuse] Implement run_input ioctl and connect libmrpsim

This patch implements run_input ioctl, connecting libmrpsim APIs.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Utils/Cuse] Implement model register/deregister ioctls
Dongju Chae [Tue, 20 Apr 2021 06:26:05 +0000 (15:26 +0900)]
[Utils/Cuse] Implement model register/deregister ioctls

This patch implements model register/deregister ioctls in
the CUSE driver.

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