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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Dongju Chae [Fri, 9 Apr 2021 07:56:01 +0000 (16:56 +0900)]
[VD/NPUMGR] Implement the protoype of NPU Manager
This patch implements the prototype of NPU Manager.
Because the VD NPU manager is GDBus-based thread application,
we can simply emulate the NPU manager using GDBus server, client,
and the corresponding test program.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Thu, 22 Apr 2021 08:35:05 +0000 (17:35 +0900)]
[Clang] Add .clang-format and apply updates
This patch adds .clang-format and apply updates over
the whole source codes.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Tue, 20 Apr 2021 08:11:07 +0000 (17:11 +0900)]
[API/Profile] Add profile data path to the profile data struct
This patch adds profile data path (.rec) to the profile data struct.
Also, the prefix directory can be set using envvar (NE_PREFIX_PROFILE).
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Wed, 21 Apr 2021 04:36:33 +0000 (13:36 +0900)]
[SAM] Add the exclude list of SAM.
This patch adds the exclude list of SAM.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Tue, 20 Apr 2021 02:58:41 +0000 (11:58 +0900)]
[Utils/Cuse] Implement hwmem alloc/dealloc via Cuse driver
This patch implements hwmem alloc/dealloc via Cuse driver.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Mon, 12 Apr 2021 07:55:58 +0000 (16:55 +0900)]
[Utils/Cuse] Add the prototype of trinity-cuse
This patch adds the prototype of trinity-cuse, which is a
CUSE-based user-level device driver, and thus can be utilized
in the tizen emulator to provide a virtual device node.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Mon, 12 Apr 2021 10:57:59 +0000 (19:57 +0900)]
[Fix] Distinguish between Debian and Emul. envionment
This patch fixes the build script to distinguish between
Debian and Emul. envionment.
Previously, we have assumed that Debian supports only emulation
using libmrpsim. But, we have to also support Debian env. without
direct emulation. Instead, it may use a fuse driver to access
libmrpsim.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Mon, 12 Apr 2021 10:45:02 +0000 (19:45 +0900)]
[Fix] Reduce the maximum device nodes
This patch fixes the routine checking device node availability.
The maximum device nodes is uncessarily too large (i.e., 255).
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Thu, 8 Apr 2021 07:52:30 +0000 (16:52 +0900)]
[README] Update deprecated descriptions
This patch updates deprecated descriptions in README.md.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Thu, 8 Apr 2021 06:26:23 +0000 (15:26 +0900)]
[Coverage/Fix] Add error handling to the coverage analysis script
This patch adds error handling to the coverage analysis script.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Fri, 26 Mar 2021 11:15:37 +0000 (20:15 +0900)]
[Fix] Rename 'task' to 'request'
This patch renames 'task' to 'request'.
As VD I/F has used 'task' to describe scheduling task, it makes confusion.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Wed, 7 Apr 2021 06:04:03 +0000 (15:04 +0900)]
[Docs] Add documents for Tizen MLAPI sample app
This patch adds documents for Tizen MLAPI sample app.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Tue, 6 Apr 2021 06:58:37 +0000 (15:58 +0900)]
[Release] NPU Engine 2.3.5 release
This patch makes new release, npu engine v2.3.5.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Tue, 6 Apr 2021 05:00:03 +0000 (14:00 +0900)]
[Profile] Add start/end cycles for profiling
This patch adds start/end cycles for profiling.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Thu, 1 Apr 2021 06:16:46 +0000 (15:16 +0900)]
[Emul/Tizen] Enable emulation mode in Tizen env.
This patch enables emulation mode in Tizen env.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Wed, 24 Mar 2021 05:40:07 +0000 (14:40 +0900)]
[Release] npu-engine release v2.3.4
This patch makes new release v2.3.4
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Thu, 25 Mar 2021 06:10:36 +0000 (15:10 +0900)]
[Profile] Support layer manipulation in kernel profiling
This patch supports layer manipulation in kernel profiling.
Previously, the layer manipulation was supported in emulated
driver API using the mrpsim simulator.
In this patch, I added ModelProfiler class to provide common
interface used in both simulator and kernel driver.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Wed, 24 Mar 2021 05:54:37 +0000 (14:54 +0900)]
[Profile/Fix] Rename 'unknown' layer to 'unclassified' layer
This patch renames 'unknown' layer to 'unclassified' layer.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Wed, 24 Mar 2021 03:56:51 +0000 (12:56 +0900)]
[Profile/Fix] Increase the max length of layer name
This patch increases the max lengh of layer name.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Fri, 19 Mar 2021 07:17:35 +0000 (16:17 +0900)]
[Utils] Add extra information to model-inspect tool
This patch adds extra information to model-inspect tool.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Fri, 19 Mar 2021 05:57:38 +0000 (14:57 +0900)]
[FIX] Update TRIV2 2TOPS testdata path
This patch updates TRIV2 2TOPS testdata path from TRIV223 to TRIV234.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Tue, 16 Mar 2021 10:52:08 +0000 (19:52 +0900)]
[Release] npu-engine 2.3.3 release
This patch makes npu-engine 2.3.3 release.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Fri, 19 Mar 2021 03:20:44 +0000 (12:20 +0900)]
[npubinfmt] add description for extended metadata
This patch adds description for extended metadata.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Wed, 17 Mar 2021 09:28:48 +0000 (18:28 +0900)]
[Util] Add output dump mode
This patch adds output dump mode for debugging.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Thu, 18 Mar 2021 03:43:20 +0000 (12:43 +0900)]
[Docs] Fix some documents related to fast model
This patch fixes some documents releated to fast model.
We now officially support Ubuntu 18.04 as well.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Wed, 17 Mar 2021 03:53:30 +0000 (12:53 +0900)]
[Test/Preempt] Add an apptest to test the task preemption
This patch adds an apptest to test the task preemption by comparing
vISA execution sequences.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Mon, 15 Mar 2021 08:13:45 +0000 (17:13 +0900)]
[Refactoring] return 'task_id' when calling runNPU_sync/async
This patch performs code refactoring to make runNPU_sync/async
return 'task_id' like the existing profile APIs.
In order do this, `NPU_PRIORITY_PROFILE` is deprecated and the
profiling APIs are now supported for any priority setting.
Also, `task_id` is set by a user library not a kernel driver,
except HW recurring task.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Thu, 11 Mar 2021 06:13:57 +0000 (15:13 +0900)]
[Profile] Add vISA execution sequence
This patch adds vISA execution sequence when profiling.
It can be utilized to check the execution preemption.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Thu, 11 Mar 2021 03:41:35 +0000 (12:41 +0900)]
[libnpuhost] Add the API to get DSPM size of DSP HW.
This patch adds the API to get DSPM size of DSP HW.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Wed, 10 Mar 2021 05:42:02 +0000 (14:42 +0900)]
[Utils] Add a program option to apptests for selecting a device
This patch adds a program option to apptests for selecting a device
from its node path.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Tue, 9 Mar 2021 09:47:10 +0000 (18:47 +0900)]
[unittest/libnpuhost] Fix program size setting for the negative case
This patch fixes the program size setting for the negative case.
To check `num_segments == 0`, the input program size should be not zero.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Tue, 9 Mar 2021 07:51:41 +0000 (16:51 +0900)]
[unittest/hwmem] Remove cgem unittest
This patch removes cgem unittests.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Fri, 26 Feb 2021 06:44:50 +0000 (15:44 +0900)]
[Dist] Fix libmrpsim version dependency
This patch fixes libmrpsim version dependency to require at least
v2.3.4
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Fri, 19 Feb 2021 04:07:37 +0000 (13:07 +0900)]
[Release] NPU Engine 2.3.2 release
This patch makes NPU Engine 2.3.2 release.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Thu, 18 Feb 2021 04:35:18 +0000 (13:35 +0900)]
[Coverage] Increase the code coverage of libnpuhost
This patch increases the code coverage of libnpuhost.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Mon, 22 Feb 2021 06:26:56 +0000 (15:26 +0900)]
[Coverity] Resolve some coverity issues
This patch resolves some coverity issues.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Fri, 19 Feb 2021 03:30:33 +0000 (12:30 +0900)]
[Profile] Support DSP profiling parsing
This patch supports DSP profiling parsing.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Wed, 17 Feb 2021 07:12:42 +0000 (16:12 +0900)]
[Debugging] Add log level to print log messages to stderr
This patch introduces `log_level` to print log messages to stderr.
It replaces `log_verbose` which had some limitations.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Wed, 17 Feb 2021 06:00:56 +0000 (15:00 +0900)]
[UnitTest] Add unittest for data converter
This patch adds unittest for data converter.
The coverage is increased from 25.7% to 91%.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Wed, 17 Feb 2021 02:09:19 +0000 (11:09 +0900)]
[Profile] Add unknown layer for unmapped vISA insts
This patch adds unknown layer for unmapped vISA insts.
This layer contains their accumlated values.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Mon, 25 Jan 2021 04:53:38 +0000 (13:53 +0900)]
[UAPI] Use a hwmem type to support contiguous mapping
This patch changes hwmem_alloc/dealloc to require a hwmem type,
to support the physically-contiguous mapping.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Tue, 26 Jan 2021 04:58:39 +0000 (13:58 +0900)]
[FIX] Change extended metadata naming
This patch changes extended metadata naming.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Mon, 1 Feb 2021 07:02:55 +0000 (16:02 +0900)]
[Release] NPU Engine 2.3.1 release
This patch makes new npu-engine release, v2.3.1.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Tue, 9 Feb 2021 02:23:11 +0000 (11:23 +0900)]
[Profile] Add profile fmt version checking
This patch adds profile fmt version checking
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Mon, 8 Feb 2021 04:15:02 +0000 (13:15 +0900)]
[Docs] Replace documentation
This patch replaces documentation with the hotdoc-enabled one.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Tue, 2 Feb 2021 04:43:45 +0000 (13:43 +0900)]
[README] Add document pages to README.md
This patch adds document pages to README.md
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Mon, 1 Feb 2021 06:56:14 +0000 (15:56 +0900)]
[profile] Update per-layer profiling
Ths patch updates per-layer profiling according to
the changed extended metadata format.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Mon, 1 Feb 2021 04:19:01 +0000 (13:19 +0900)]
[doc] add initial files to generate hotdoc
This patch adds initial files to generate hotdoc.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Fri, 22 Jan 2021 04:45:22 +0000 (13:45 +0900)]
[npubinfmt/profile] New proposal for profile extra metadata
This patch makes new proposal for profile extra metadata.
The two-level mapping table may be useful to users.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Tue, 26 Jan 2021 03:09:02 +0000 (12:09 +0900)]
[npubinfmt] add extra info to store number of visa insts
This patch adds extra info to npubinfmt storing number of visa insts.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Fri, 15 Jan 2021 08:07:52 +0000 (17:07 +0900)]
[Release] NPU Engine 2.3.0 release
This patch makes new release for NPU Engine, v2.3.0.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Thu, 14 Jan 2021 10:57:50 +0000 (19:57 +0900)]
[Profile] Implement vISA to layer (tensor name) mapping
This patch implements vISA to layer (tensor name) mapping.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Fri, 15 Jan 2021 03:56:15 +0000 (12:56 +0900)]
[Doc/Fix] Update some documents to apply changed testdata path
This patch updates some documents to apply changed testdata path.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Tue, 12 Jan 2021 07:21:07 +0000 (16:21 +0900)]
[Profile] Get per-layer profiling info. from extended metadata
This patch gets per-layer profiling info. from extended metadata.
The detail parsing will be implemented soon.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Thu, 14 Jan 2021 05:47:35 +0000 (14:47 +0900)]
[Apptest/Doc] Add sample usage example using libnpuhost.h
This patch adds sample usage example using libnpuhost.h
to provide straightforward API examples for newbies.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Mon, 11 Jan 2021 05:50:48 +0000 (14:50 +0900)]
[UnitTest/NPU] Remove some testcases for TRIV1
This patch removes some testcases for TRIV1.
The kernel driver does not support TRIV1 anymore.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Thu, 7 Jan 2021 05:28:49 +0000 (14:28 +0900)]
[UAPI] Set model's npubinfmt version
This patch sets model's npubinfmt version.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Tue, 12 Jan 2021 03:32:01 +0000 (12:32 +0900)]
[npubinfmt/profile] Add decription of extended metadata for profiling
This patch adds some description of extended metadata for profiling.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Tue, 12 Jan 2021 03:16:08 +0000 (12:16 +0900)]
[npubinfmt/profile] Rename the magiccode's extra field
This patch renames `extra` field in npubinfmt's `magiccode`.
As it's confusing with extra version, it's renamed to `extended`.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Wed, 6 Jan 2021 04:54:39 +0000 (13:54 +0900)]
[Fix] Specify recurring test's target NPU to 8TOPS
This patch specifies recurring test's target NPU to 8TOPS.
Later, it will be changed to 2TOPS when testdata is ready.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Wed, 6 Jan 2021 03:38:45 +0000 (12:38 +0900)]
[Fix/UnitTest] Change the npu version for testing
This patch changes the npu version for testing.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Tue, 5 Jan 2021 09:57:25 +0000 (18:57 +0900)]
[Fix] fix a potential deadlock when calling join()
This patch fixes a potential deadlock when calling join().
If we don't guard a stop variable with the lock, after checking
the predicate of wait(), notify_all() can be performed early before
calling actuall wait().
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
Dongju Chae [Tue, 5 Jan 2021 01:23:03 +0000 (10:23 +0900)]
[TRIV2.3/API] Add new API to get a device instance with tops info
This patch adds new API to get a device instance with tops info.
It tries to find any available device with the given tops.
Signed-off-by: Dongju Chae <dongju.chae@samsung.com>