Commit Graph

41 Commits

Author SHA1 Message Date
Zhouheng Zheng 4f4f6cd6dc
Add json third party when support node trace db (#670)
Type: Code Improvement
2023-12-20 21:26:42 +08:00
Chen Feiyue af50cc5e3f
Added general Float16 support (#631)
Added Float16 type definition from third-party
Refine float16 bias handlling in conv2d
Refine float16 case in conv2d
Caution: Headers of float16 only be included when build unit_test

Type: New Feature

Signed-off-by: Feiyue Chen <Feiyue.Chen@verisilicon.com>
2023-08-12 10:04:16 +08:00
Sven 821864a582
Fixed IExecutable object not bind with DeviceID (#624)
If Executable object doesn't bind with a concrete DeviceID,
it will go first device by default.

When run multi executable with multi device, the behavior is not
expected. Fixed by attach device id with CompileOption.

Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
2023-07-24 22:45:54 +08:00
MercuryChen 315adcf076
Integrate api trace into tim-vx source as an experimental feature. (#623)
* Add support for different input dtype of MaxPoolGrad.

Type: Code improvement

* Integrate api trace into tim-vx source code, as part of experimeantal.

Type: New Feature
2023-07-19 18:40:48 +08:00
chxin66 308a967bcf
Support build openssl from local repo (#582)
Type: Code Improvement

Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
Co-authored-by: Chen Xin <jack.chen@verisilicon.com>
2023-05-05 23:38:39 +08:00
chxin66 f1fd2246ae
Support tensor cache while create tensor (#574)
Support tensor cache while create tensor

Tensor can be shared between different operations, if tensor have 
identical data and quantization parameter, they should share same
low-level tensor object to save memory.

In tim-vx, introduce a tensor cache which key is md5sum and value is 
low-level tensor object. If up-coming tensor have same md5sum, the
cached tensor object reused for tensor creation.

Type: New feature

Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
Co-authored-by: Chen Xin <jack.chen@verisilicon.com>
2023-04-19 21:31:25 +08:00
liyuenan 27890719b6
Support remote platform by gRPC (#561)
* Support remote platform by gRPC

Signed-off-by: yuenan.li <yuenan.li@verisilicon.com>
2023-03-28 09:51:23 +08:00
ZhangXiang 1c6041c394 Introduce CMAKE option TIM_VX_DBG_DISABLE_TENSOR_HNDL=OFF
Enable/Disable tensorFromHandle usage

Signed-off-by: ZhangXiang <Xiang.Zhang@verisilicon.com>
2023-02-09 14:31:32 +08:00
Feiyue Chen 95401036ab fixed some errs on gcc12 2022-09-15 21:26:43 +08:00
Antkillerfarm d716a1a9f0
remove redefination of TIM_VX_ENABLE_CUSTOM_OP (#417) 2022-06-27 14:59:46 +08:00
Sven a9764291b0
Fix build issue (#397)
Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
2022-05-16 14:24:44 +08:00
Sven cccd7860d6
CI enhancement - enable benchmark_model and samples (#372)
Added Clang build check with CMAKE
Added vx-delegate build and benchmark_model test for PR.
Added tim-vx/samples in ci
Save output from build for debugging purpose.
Parallel CI execution.

Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
2022-04-24 12:26:29 +08:00
lucklee 70d2f410a8
support virtual vip devices (#331) 2022-04-06 13:05:38 +08:00
Zhouheng Zheng d1b57e8eca
Add cmake option of custom op support (#335)
Co-authored-by: zhouheng.zheng <zhouheng.zheng@ouotlook.com>
2022-03-28 09:42:19 +08:00
robert-kalmar 51a3d8ce36
Install headers to place defined by CMAKE_INSTALL_INCLUDEDIR variable (#291) 2022-02-21 10:20:38 +08:00
SHagerAT80 1c5302ba51
Enabled bulding with buildroot toolchain. (#281) 2022-01-28 13:12:22 +08:00
Sven 19e4e86651
Support NPU access large memory > 4G (#280)
Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
2022-01-26 16:00:14 +08:00
Zongwu.Yang d019a76db5
Add function for lite driver handle (#209)
Signed-off-by: Zongwu Yang <zongwu.yang@verisilicon.com>
2021-11-10 20:05:31 +08:00
Sven f8846e701e
Update CMakeLists.txt (#187)
Enable build tim-vx as dynamic-library by default will be more friendly for other repo such as tflite-vx-delegate.
2021-10-12 19:50:55 +08:00
Goose Bomb 914e280209
Refactor CMake build system (#184)
* Remove unnecessary compiler flags

* Refactor CMakeLists.txt

* Tweak CMakeLists.txt for libtim_internal

* Tweak CMakeLists.txt for libtim-vx

* Make TIM_VX_ENABLE_TEST defaults to OFF

* Eliminate usage of include_directories

* Fix CI unit test
2021-10-12 10:44:49 +08:00
Kainan Cha d7900b9de4 Add sample to run NBG
Signed-off-by: Kainan Cha <kainan.cha@verisilicon.com>
Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
2021-09-27 17:21:04 +08:00
xiang.zhang 374841cbd9 Fix build error with Android NDK
Verified with android ndk r22b

Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
2021-09-09 12:56:01 +08:00
Johan Gunnarsson 0a26a12f94
Don't overwrite CMAKE_CXX_FLAGS (#159) 2021-08-24 22:40:36 +08:00
Zongwu Yang d2ea2ff7d3 Add multi thread test
Signed-off-by: Zongwu Yang <zongwu.yang@verisilicon.com>
2021-07-13 09:17:35 +08:00
xiang.zhang 853df36bd6 Add simple benchmark test for convolution op
Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
2021-07-07 14:11:40 +08:00
xiang.zhang d4de6c78e0 Disable UT for A311D/S905D3/vim3_android/Yocto
Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
2021-06-23 19:19:26 +08:00
Robert Kalmar 64989c6b4a Added option to use extenal OVXLIB library
Signed-off-by: Robert Kalmar <robert.kalmar@nxp.com>
2021-06-16 15:00:35 +08:00
Robert Kalmar 867ca32046 Added configuration for Yocto SDK build
Signed-off-by: Robert Kalmar <robert.kalmar@nxp.com>
2021-06-16 14:11:46 +08:00
Robert Kalmar 90a15ec819 Disable googletest framework installation
Signed-off-by: Robert Kalmar <robert.kalmar@nxp.com>
2021-06-14 11:59:15 +08:00
xiang.zhang 7fcd9a3327 Fix cmake install failure
Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
2021-06-09 10:06:35 +08:00
Sven eae539575c
Add CMake UnitTest in CI (#66)
Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
2021-05-25 09:48:49 +08:00
Sven 410cd8e516
Refine the cmake build (#63)
Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
2021-05-24 13:40:37 +08:00
Sven 66dd29703e
Refine cmake build: add gtest (#47)
Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
2021-05-17 13:04:45 +08:00
Sven 096d99e068
Support local sdk for cmake (#41)
* Support local sdk for cmake

cmake -DEXTERNAL_VIV_SDK=<Local_Driver_build_sdk_dir>

Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
2021-05-13 22:28:36 +08:00
Zongwu.Yang 22d423714f
Optimize permute op for constant tensor (#37)
Signed-off-by: Zongwu Yang <zongwu.yang@verisilicon.com>
2021-05-10 23:06:04 +08:00
Sven 5cfa7a2c40
Cmake build improvement (#36)
Added "make install" support for cmake
Fixed symbol removed during link because no reference

Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
2021-05-08 23:02:04 +08:00
xiang.zhang b8c892f8c3 Add cmake build for VIM3 android P
Change cmake/vim3_android.cmake to build other variant(android 10)

Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
2021-05-08 11:46:05 +08:00
Kainan Cha 9dfcb5a230 Add support for S905D3 SoC
bazel build --config S905D3

Signed-off-by: Kainan Cha <kainan.zha@verisilicon.com>
2021-04-06 13:30:16 +08:00
Zongwu.Yang c5e16157a6 Update linking style as static linking for sample
Signed-off-by: Zongwu.Yang <Zongwu.Yang@verisilicon.com>
2021-02-08 14:47:37 +08:00
Zongwu.Yang eb01d28a1a Add cross compile for A311D
* Support auto-downloading toolchain and SDK from http
  * Support one-click cross compilation

Usage:
  mkdir build && cd build
  cmake .. -DHARDWARE=A311D
  make -j4

Signed-off-by: Zongwu.Yang <Zongwu.Yang@verisilicon.com>
2021-02-07 18:52:03 +08:00
Zongwu.Yang 5108598fd5 Add Cmake build for tim-vx
Signed-off-by: Zongwu.Yang <Zongwu.Yang@verisilicon.com>
2021-02-02 10:04:47 +08:00