Run UnitTest of TIM-VX on VIM3P failed

Hi @numbqq , @Frank

I execute unittest program of TIM-VX on VIM3P failed, the following is my enviroment information.

  • Product: VIM3 Pro

  • OS information:

    Read More

    khadas@Khadas:~$ uname -a
    Linux Khadas 4.9.241 #18 SMP PREEMPT Fri Jun 25 14:18:34 CST 2021 aarch64 aarch64 aarch64 GNU/Linux
    
    khadas@Khadas:~$ cat /etc/fenix-release
    # PLEASE DO NOT EDIT THIS FILE
    BOARD=VIM3
    VENDOR=Amlogic
    VERSION=1.0.7
    ARCH=arm64
    INITRD_ARCH=arm64
    INSTALL_TYPE=EMMC
    IMAGE_VERSION=V1.0.7-210625
    ################ GIT VERSION ################
    UBOOT_GIT_VERSION=khadas-vims-v1.0.5-release
    LINUX_GIT_VERSION=khadas-vims-v1.0.5-release-6-gc5aa6ab
    FENIX_GIT_VERSION=v1.0.7
    #############################################
    

  • NPU information:

    Read More

    khadas@Khadas:~$ dpkg -l | grep npu
    ii  aml-npu                              6.4.4.3AAA-2                                                 arm64        Amlogic NPU libraries.
    ii  evtest                               1:1.34-1                                                     arm64        utility to monitor Linux input device events
    ii  libinput-bin                         1.15.5-1ubuntu0.2                                            arm64        input device management and event handling library - udev quirks
    ii  libinput10:arm64                     1.15.5-1ubuntu0.2                                            arm64        input device management and event handling library - shared library
    ii  libxi6:arm64                         2:1.7.10-0ubuntu1                                            arm64        X11 Input extension library
    
    khadas@Khadas:~$ lsmod
    Module                  Size  Used by
    cpufreq_powersave      16384  0
    cpufreq_userspace      16384  0
    cpufreq_conservative    16384  0
    cpufreq_ondemand       20480  0
    iv009_isp_sensor      270336  0
    iv009_isp_lens         69632  0
    iv009_isp_iq          544768  0
    galcore               462848  0
    vpu                    49152  0
    encoder                53248  0
    amvdec_avs2           192512  0
    amvdec_vp9            151552  0
    amvdec_vc1             53248  0
    amvdec_real            40960  0
    amvdec_mmpeg4          32768  0
    amvdec_mpeg4           53248  0
    amvdec_mmpeg12         40960  0
    amvdec_mpeg12          90112  0
    amvdec_mmjpeg          28672  0
    amvdec_mjpeg           36864  0
    amvdec_h265           135168  0
    amvdec_h264mvc         49152  0
    amvdec_mh264          151552  0
    amvdec_h264           118784  0
    amvdec_avs             61440  0
    stream_input          180224  10 amvdec_h265,amvdec_mh264,amvdec_h264mvc,amvdec_real,amvdec_vp9,amvdec_h264,amvdec_avs2,amvdec_mpeg12,amvdec_avs,amvdec_mmpeg12
    decoder_common        176128  17 amvdec_h265,amvdec_mjpeg,amvdec_mh264,amvdec_mmpeg4,amvdec_h264mvc,amvdec_mmjpeg,amvdec_real,stream_input,amvdec_vp9,amvdec_h264,encoder,amvdec_avs2,amvdec_mpeg12,amvdec_avs,amvdec_vc1,amvdec_mmpeg12,amvdec_mpeg4
    firmware               28672  18 amvdec_h265,amvdec_mjpeg,amvdec_mh264,amvdec_mmpeg4,amvdec_h264mvc,amvdec_mmjpeg,decoder_common,amvdec_real,stream_input,amvdec_vp9,amvdec_h264,encoder,amvdec_avs2,amvdec_mpeg12,amvdec_avs,amvdec_vc1,amvdec_mmpeg12,amvdec_mpeg4
    media_clock            45056  12 amvdec_h265,amvdec_mh264,decoder_common,vpu,firmware,stream_input,amvdec_vp9,amvdec_h264,encoder,amvdec_avs2,amvdec_mpeg12,amvdec_avs
    mali_kbase            475136  0
    iv009_isp             540672  2
    zram                   36864  4
    dhd                  1404928  0
    btrfs                1269760  0
    xor                    20480  1 btrfs
    raid6_pq              106496  1 btrfs
    
    khadas@Khadas:~$ ls /dev/galcore
    /dev/galcore
    
    khadas@Khadas:~$ sudo dmesg | grep Gal
    [   12.202405] Galcore version 6.4.4.3.310723AAA
    
    

The output message after executing Unittest program of TIM-VX:

Read More

 khadas@Khadas:~/TIM-VX-1.1.32/install/bin$ ./unit_test 
 Running main() from /home/khadas/TIM-VX-1.1.32/_deps/googletest-src/googletest/src/gtest_main.cc
 [==========] Running 104 tests from 33 test suites.
 [----------] Global test environment set-up.
 [----------] 1 test from Context
 <Skip the PASS Items. >
 [----------] 1 test from Context (25 ms total)
 
 [----------] 2 tests from graph
 [ RUN      ] graph.gen_binary_graph_with_empty_graph
 E [_graph_optimization_convert_int8_to_uint8:792]CHECK STATUS(-1:A generic error code, used when no other describes the error.)
 E [vsi_nn_OptimizeGraph:827]CHECK STATUS(-1:A generic error code, used when no other describes the error.)
 [       OK ] graph.gen_binary_graph_with_empty_graph (3 ms)
 [ RUN      ] graph.gen_binary_graph_with_simple_add
 [       OK ] graph.gen_binary_graph_with_simple_add (8 ms)
 [----------] 2 tests from graph (11 ms total)
 
 [----------] 2 tests from Linear
 <Skip the PASS Items. >
 [----------] 2 tests from Linear (13 ms total)
 
 [----------] 3 tests from Conv1d
 <Skip the PASS Items. >
 [----------] 3 tests from Conv1d (22 ms total)
 
 [----------] 19 tests from Conv2d
 <Skip the PASS Items. >
 [----------] 19 tests from Conv2d (195 ms total)
 
 [----------] 2 tests from DeConv1d
 [ RUN      ] DeConv1d.no_bias_layout_whcn_depthwise_shape_3_2_1
 /home/khadas/TIM-VX-1.1.32/src/tim/vx/ops/deconv1d_test.cc:69: Failure
 Expected equality of these values:
   golden
     Which is: { 27, 81, 30, 9, 3, 21, 15, 27, 0, 0 }
   output_data
     Which is: { 48, 96, 57, 9, 3, 0, 0, 0, 0, 0 }
 Result mismatch
 [  FAILED  ] DeConv1d.no_bias_layout_whcn_depthwise_shape_3_2_1 (9 ms)
 <Skip the PASS Items. >
 [----------] 2 tests from DeConv1d (56 ms total)
 
 [----------] 2 tests from DeConv2d
 [ RUN      ] DeConv2d.shape_3_3_2_1_float_depthwise
 /home/khadas/TIM-VX-1.1.32/src/tim/vx/ops/deconv2d_test.cc:85: Failure
 Expected equality of these values:
   golden
     Which is: { 27, 72, 18, 24, 3, 81, 45, 90, 15, 21, 30, 26, 43, 22, 11, 9, 5, 25, 10, 14, 3, 2, 9, 4, 6, 21, 27, 52, 63, 7, 15, 6, ... }
   output_data
     Which is: { 48, 99, 70, 87, 10, 96, 51, 134, 29, 42, 57, 26, 168, 94, 33, 9, 5, 65, 26, 38, 3, 2, 81, 4, 22, 0, 0, 0, 0, 0, 0, 0, ... }
 Result mismatch
 [  FAILED  ] DeConv2d.shape_3_3_2_1_float_depthwise (9 ms)
 <Skip the PASS Items. >
 [----------] 2 tests from DeConv2d (18 ms total)
 
 [----------] 16 tests from DepthwiseConv
 <Skip the PASS Items. >
 [----------] 16 tests from DepthwiseConv (176 ms total)
 
 [----------] 3 tests from FloorDiv
 <Skip the PASS Items. >
 
 (10:0) : error : Error(0,10) : Cannot find the header file cl_viv_vx_ext.h.
 (255:0) : error : Error(0,255) : Cannot find the header file cl_viv_vx_ext.h.
 (27:0) : error : undefined identifier: 'COPY'
 (55:0) : error : undefined identifier: 'COPY'
 (257:0) : error : syntax error at 'VXC_512Bits'
 
 ERROR: Failed to compile vx shader. (error: FFFFFFFF)
 E [_gpu_register:476]Build program fail.
 E [vsi_nn_kernel_create_node:631]Register client kernel com.vivantecorp.extension.evis.floordiv_U8U8toU8_2D fail with -1.
 
 [       OK ] FloorDiv.shape_5_1_broadcast_uint8 (56 ms)
 [----------] 3 tests from FloorDiv (135 ms total)
 
 [----------] 3 tests from GroupedConv2d
 <Skip the PASS Items. >
 [----------] 3 tests from GroupedConv2d (29 ms total)
 
 [----------] 2 tests from InstanceNorm
 <Skip the PASS Items. >

 [----------] 2 tests from InstanceNorm (208 ms total)
 
 [----------] 2 tests from LayerNorm
 <Skip the PASS Items. >
 [----------] 2 tests from LayerNorm (117 ms total)
 
 [----------] 3 tests from LogSoftmax
 <Skip the PASS Items. >
 [ RUN      ] LogSoftmax.shape_3_6_1_uint8_axis_1
 
 (10:0) : error : Error(0,10) : Cannot find the header file cl_viv_vx_ext.h.
 (255:0) : error : Error(0,255) : Cannot find the header file cl_viv_vx_ext.h.
 (27:0) : error : undefined identifier: 'COPY'
 (55:0) : error : undefined identifier: 'COPY'
 (263:0) : error : syntax error at 'VXC_512Bits'
 
 ERROR: Failed to compile vx shader. (error: FFFFFFFF)
 E [_gpu_register:476]Build program fail.
 E [vsi_nn_kernel_create_node:631]Register client kernel com.vivantecorp.extension.evis.log_softmax_axis1_U8toU8_2D fail with -1.
 
 [       OK ] LogSoftmax.shape_3_6_1_uint8_axis_1 (70 ms)
 [----------] 3 tests from LogSoftmax (161 ms total)
 
 [----------] 3 tests from Matmul
 <Skip the PASS Items. >
 [ RUN      ] Matmul.shape_2_3_2_shape_2_3_2_uint8_transpose_a
 
 (10:0) : error : Error(0,10) : Cannot find the header file cl_viv_vx_ext.h.
 (255:0) : error : Error(0,255) : Cannot find the header file cl_viv_vx_ext.h.
 (27:0) : error : undefined identifier: 'COPY'
 (55:0) : error : undefined identifier: 'COPY'
 (261:0) : error : syntax error at 'VXC_512Bits'
 
 ERROR: Failed to compile vx shader. (error: FFFFFFFF)
 E [_gpu_register:476]Build program fail.
 E [vsi_nn_kernel_create_node:631]Register client kernel com.vivantecorp.extension.evis.gemm_transa_U8U8toU8 fail with -1.
 
 [       OK ] Matmul.shape_2_3_2_shape_2_3_2_uint8_transpose_a (30 ms)
 [----------] 3 tests from Matmul (113 ms total)
 
 [----------] 2 tests from MaxpoolWithArgmax
 <Skip the PASS Items. >
 [ RUN      ] MaxpoolWithArgmax.shape_4_4_1_uint8_kernel_2_stride_2
 
 (10:0) : error : Error(0,10) : Cannot find the header file cl_viv_vx_ext.h.
 (255:0) : error : Error(0,255) : Cannot find the header file cl_viv_vx_ext.h.
 (27:0) : error : undefined identifier: 'COPY'
 (55:0) : error : undefined identifier: 'COPY'
 (258:0) : error : syntax error at 'VXC_512Bits'
 
 ERROR: Failed to compile vx shader. (error: FFFFFFFF)
 E [_gpu_register:476]Build program fail.
 E [vsi_nn_kernel_create_node:631]Register client kernel com.vivantecorp.extension.evis.poolwithargmax_U8to_U8_U8_2D fail with -1.
 
 [       OK ] MaxpoolWithArgmax.shape_4_4_1_uint8_kernel_2_stride_2 (54 ms)
 [----------] 2 tests from MaxpoolWithArgmax (100 ms total)
 
 [----------] 2 tests from MaxUnpool2d
 <Skip the PASS Items. >
 [ RUN      ] MaxUnpool2d.shape_2_2_1_uint8_kernel_2_stride_2
 
(10:0) : error : Error(0,10) : Cannot find the header file cl_viv_vx_ext.h.
(256:0) : error : Error(0,256) : Cannot find the header file cl_viv_vx_ext.h.
(27:0) : error : undefined identifier: 'COPY'
(55:0) : error : undefined identifier: 'COPY'
(296:0) : error : undefined identifier: 'vxc_uchar8'
(296:0) : error : undefined identifier: 'vxc_uchar8'
(296:0) : error : undefined identifier: 'vxc_uchar16'
(296:0) : error : undefined identifier: 'vxc_uchar16'
(296:0) : error : undefined identifier: 'vxc_uchar16'
(296:0) : error : undefined identifier: 'vxc_uchar16'
(296:0) : error : undefined identifier: 'vxc_uchar16'
(296:0) : error : undefined identifier: 'vxc_uchar16'
(296:0) : error : undefined identifier: 'din'
(296:0) : error : undefined identifier: 'axisIn'
(296:0) : error : undefined identifier: 'dinExpand'
(296:0) : error : undefined identifier: 'axisInExpand'
(296:0) : error : undefined identifier: 'zpValue'
(296:0) : error : undefined identifier: 'constAxis'
(296:0) : error : undefined identifier: 'axisData'
(296:0) : error : undefined identifier: 'dout'
(296:0) : error : undefined identifier: 'dout'
(296:0) : error : undefined identifier: 'constAxis'
(296:0) : error : undefined identifier: 'axisData'
(296:0) : error : undefined identifier: 'dout'
(296:0) : error : undefined identifier: 'dout'
(308:0) : error : undefined identifier: 'vxc_uchar8'
(308:0) : error : undefined identifier: 'vxc_uchar8'
(308:0) : error : undefined identifier: 'vxc_uchar16'
(308:0) : error : undefined identifier: 'vxc_uchar16'
(308:0) : error : undefined identifier: 'vxc_uchar16'
(308:0) : error : undefined identifier: 'vxc_uchar16'
(308:0) : error : undefined identifier: 'vxc_uchar16'
(308:0) : error : undefined identifier: 'vxc_uchar16'
(308:0) : error : undefined identifier: 'din'
(308:0) : error : undefined identifier: 'axisIn'
(308:0) : error : undefined identifier: 'dinExpand'
(308:0) : error : undefined identifier: 'axisInExpand'
(308:0) : error : undefined identifier: 'zpValue'
(308:0) : error : undefined identifier: 'constAxis'
(308:0) : error : undefined identifier: 'axisData'
(308:0) : error : undefined identifier: 'dout'
(308:0) : error : undefined identifier: 'dout'
(308:0) : error : undefined identifier: 'constAxis'
(308:0) : error : undefined identifier: 'axisData'
(308:0) : error : undefined identifier: 'dout'
(308:0) : error : undefined identifier: 'dout'
(312:0) : error : syntax error at 'VXC_512Bits'

ERROR: Failed to compile vx shader. (error: FFFFFFFF)
E [_gpu_register:476]Build program fail.
E [vsi_nn_kernel_create_node:631]Register client kernel com.vivantecorp.extension.evis.upsample_U8_U8to_U8_SAME_2D fail with -1.

[       OK ] MaxUnpool2d.shape_2_2_1_uint8_kernel_2_stride_2 (60 ms)
[----------] 2 tests from MaxUnpool2d (108 ms total)

[----------] 2 tests from Moments
<Skip the PASS Items. >
[----------] 2 tests from Moments (100 ms total)

[----------] 1 test from Equal
[ RUN      ] Equal.shape_1_uint8

(1:0) : error : Error(0,1) : Cannot find the header file cl_viv_vx_ext.h.
(7:0) : error : syntax error at 'VXC_512Bits'

ERROR: Failed to compile vx shader. (error: FFFFFFFF)
E [_gpu_register:476]Build program fail.
E [vsi_nn_kernel_create_node:631]Register client kernel com.vivantecorp.extension.evis.equal_U8U8toBOOL8_2D fail with -1.

[       OK ] Equal.shape_1_uint8 (89 ms)
[----------] 1 test from Equal (89 ms total)

[----------] 1 test from NotEqual
<Skip the PASS Items. >
[----------] 1 test from NotEqual (66 ms total)

[----------] 1 test from Less
<Skip the PASS Items. >
[----------] 1 test from Less (64 ms total)

[----------] 1 test from GreaterOrEqual
<Skip the PASS Items. >
[----------] 1 test from GreaterOrEqual (63 ms total)

[----------] 1 test from Greater
<Skip the PASS Items. >
[----------] 1 test from Greater (63 ms total)

[----------] 1 test from LessOrEqual
<Skip the PASS Items. >
[----------] 1 test from LessOrEqual (63 ms total)

[----------] 2 tests from Reorg
<Skip the PASS Items. >
[----------] 2 tests from Reorg (10 ms total)

[----------] 3 tests from Resize1d
<Skip the PASS Items. >
[ RUN      ] Resize1d.shape_4_2_1_uint8_nearest_whcn

(10:0) : error : Error(0,10) : Cannot find the header file cl_viv_vx_ext.h.
(255:0) : error : Error(0,255) : Cannot find the header file cl_viv_vx_ext.h.
(27:0) : error : undefined identifier: 'COPY'
(55:0) : error : undefined identifier: 'COPY'
(257:0) : error : syntax error at 'VXC_512Bits'

ERROR: Failed to compile vx shader. (error: FFFFFFFF)
E [_gpu_register:476]Build program fail.
E [vsi_nn_kernel_create_node:631]Register client kernel com.vivantecorp.extension.evis.resize_1d_nearest_U8toU8_op fail with -1.

[       OK ] Resize1d.shape_4_2_1_uint8_nearest_whcn (37 ms)
[ RUN      ] Resize1d.shape_5_1_1_float_bilinear_align_corners_whcn

[       OK ] Resize1d.shape_5_1_1_float_bilinear_align_corners_whcn (32 ms)
[----------] 3 tests from Resize1d (98 ms total)

[----------] 2 tests from ScatterND
[ RUN      ] ScatterND.shape_4_4_4

[       OK ] ScatterND.shape_4_4_4 (41 ms)
[ RUN      ] ScatterND.shape_9

(10:0) : error : Error(0,10) : Cannot find the header file cl_viv_vx_ext.h.
(255:0) : error : Error(0,255) : Cannot find the header file cl_viv_vx_ext.h.
(27:0) : error : undefined identifier: 'COPY'
(55:0) : error : undefined identifier: 'COPY'
(257:0) : error : syntax error at 'VXC_512Bits'

ERROR: Failed to compile vx shader. (error: FFFFFFFF)
E [_gpu_register:476]Build program fail.
E [vsi_nn_kernel_create_node:631]Register client kernel com.vivantecorp.extension.evis.scatter_nd_U8toU8 fail with -1.

[       OK ] ScatterND.shape_9 (25 ms)
[----------] 2 tests from ScatterND (66 ms total)

[----------] 1 test from Floor
[ RUN      ] Floor.shape_5_1_fp32
[       OK ] Floor.shape_5_1_fp32 (5 ms)
[----------] 1 test from Floor (5 ms total)

[----------] 1 test from Cast
[ RUN      ] Cast.shape_5_1_fp32_to_int32

[       OK ] Cast.shape_5_1_fp32_to_int32 (35 ms)
[----------] 1 test from Cast (35 ms total)

[----------] 1 test from SpatialTransformer
[ RUN      ] SpatialTransformer.shape_1_3_3_1_u8
(10:0) : error : Error(0,10) : Cannot find the header file cl_viv_vx_ext.h.
(23:0) : error : undefined identifier: 'vxc_ushort8'
(26:0) : error : undefined identifier: 'src0'
(27:0) : error : undefined identifier: 'src1'
(29:0) : error : undefined identifier: 'dst'
(31:0) : error : undefined identifier: 'dst'

ERROR: Failed to compile vx shader. (error: FFFFFFFF)
E [vsi_nn_RegisterVXKernel:251][/home/khadas/TIM-VX-1.1.32/src/tim/vx/internal/src/libnnext/vsi_nn_vxkernel.c : 251] vxBuildProgram() Error!

E [vsi_nn_InitKernel:108]Add parameter 0 to kernel com.vivantecorp.extension.vxcTransform_setupThres_F16toF16 fail. with -12.
E [vsi_nn_InitKernel:121]Finalize kernel com.vivantecorp.extension.vxcTransform_setupThres_F16toF16 fail with -12.
E [vsi_nn_InitKernel:126]Remove kernel com.vivantecorp.extension.vxcTransform_setupThres_F16toF16 fail with -10.
E [vsi_nn_RegisterClientKernelAndNewNode:415]Register client kernel com.vivantecorp.extension.vxcTransform_setupThres_F16toF16 fail with -10.
E [compute_node:379]Create node[0] SPATIAL_TRANSFORMER fail
/home/khadas/TIM-VX-1.1.32/src/tim/vx/ops/spatial_transformer_test.cc:74: Failure
Expected equality of these values:
 values_golden
   Which is: { '\x2' (2), '\x3' (3), '\x2' (2), '\x2' (2), '\x3' (3), '\x2' (2), '\x2' (2), '\x3' (3), '\x2' (2) }
 output_values
   Which is: { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0' }
[  FAILED  ] SpatialTransformer.shape_1_3_3_1_u8 (22 ms)
[----------] 1 test from SpatialTransformer (22 ms total)

[----------] 2 tests from Tile
[ RUN      ] Tile.shape_3_2_float_multiples_2_1

[       OK ] Tile.shape_3_2_float_multiples_2_1 (45 ms)
[ RUN      ] Tile.shape_3_2_1_int8_multiples_2_2_1

(1:0) : error : Error(0,1) : Cannot find the header file cl_viv_vx_ext.h.
(59:0) : error : undefined identifier: 'vxc_uchar8'
(59:0) : error : undefined identifier: 'src'
(59:0) : error : undefined identifier: 'src'
(59:0) : error : undefined identifier: 'src'
(60:0) : error : undefined identifier: 'vxc_uchar8'
(60:0) : error : undefined identifier: 'src'
(60:0) : error : undefined identifier: 'src'
(60:0) : error : undefined identifier: 'src'
(61:0) : error : undefined identifier: 'vxc_uchar8'
(61:0) : error : undefined identifier: 'src'
(61:0) : error : undefined identifier: 'src'
(61:0) : error : undefined identifier: 'src'
(62:0) : error : undefined identifier: 'vxc_uchar8'
(62:0) : error : undefined identifier: 'src'
(62:0) : error : undefined identifier: 'src'
(62:0) : error : undefined identifier: 'src'
(63:0) : error : undefined identifier: 'vxc_uchar8'
(63:0) : error : undefined identifier: 'src'
(63:0) : error : undefined identifier: 'src'
(63:0) : error : undefined identifier: 'src'
(64:0) : error : undefined identifier: 'vxc_uchar8'
(64:0) : error : undefined identifier: 'src'
(64:0) : error : undefined identifier: 'src'
(64:0) : error : undefined identifier: 'src'
(65:0) : error : undefined identifier: 'vxc_uchar8'
(65:0) : error : undefined identifier: 'src'
(65:0) : error : undefined identifier: 'src'
(65:0) : error : undefined identifier: 'src'
(66:0) : error : undefined identifier: 'vxc_uchar8'
(66:0) : error : undefined identifier: 'src'
(66:0) : error : undefined identifier: 'src'
(66:0) : error : undefined identifier: 'src'
(68:0) : error : undefined identifier: 'vxc_short8'
(68:0) : error : undefined identifier: 'src'
(68:0) : error : undefined identifier: 'src'
(68:0) : error : undefined identifier: 'src'
(69:0) : error : undefined identifier: 'vxc_short8'
(69:0) : error : undefined identifier: 'src'
(69:0) : error : undefined identifier: 'src'
(69:0) : error : undefined identifier: 'src'
(70:0) : error : undefined identifier: 'vxc_short8'
(70:0) : error : undefined identifier: 'src'
(70:0) : error : undefined identifier: 'src'
(70:0) : error : undefined identifier: 'src'
(71:0) : error : undefined identifier: 'vxc_short8'
(71:0) : error : undefined identifier: 'src'
(71:0) : error : undefined identifier: 'src'
(71:0) : error : undefined identifier: 'src'
(72:0) : error : undefined identifier: 'vxc_short8'
(72:0) : error : undefined identifier: 'src'
(72:0) : error : undefined identifier: 'src'
(72:0) : error : undefined identifier: 'src'
(73:0) : error : undefined identifier: 'vxc_short8'
(73:0) : error : undefined identifier: 'src'
(73:0) : error : undefined identifier: 'src'
(73:0) : error : undefined identifier: 'src'
(74:0) : error : undefined identifier: 'vxc_short8'
(74:0) : error : undefined identifier: 'src'
(74:0) : error : undefined identifier: 'src'
(74:0) : error : undefined identifier: 'src'
(75:0) : error : undefined identifier: 'vxc_short8'
(75:0) : error : undefined identifier: 'src'
(75:0) : error : undefined identifier: 'src'
(75:0) : error : undefined identifier: 'src'
(115:0) : error : undefined identifier: 'vxc_uchar8'
(115:0) : error : undefined identifier: 'src'
(115:0) : error : undefined identifier: 'src'
(115:0) : error : undefined identifier: 'src'
(116:0) : error : undefined identifier: 'vxc_uchar8'
(116:0) : error : undefined identifier: 'src'
(116:0) : error : undefined identifier: 'src'
(116:0) : error : undefined identifier: 'src'
(117:0) : error : undefined identifier: 'vxc_uchar8'
(117:0) : error : undefined identifier: 'src'
(117:0) : error : undefined identifier: 'src'
(117:0) : error : undefined identifier: 'src'
(118:0) : error : undefined identifier: 'vxc_uchar8'
(118:0) : error : undefined identifier: 'src'
(118:0) : error : undefined identifier: 'src'
(118:0) : error : undefined identifier: 'src'
(119:0) : error : undefined identifier: 'vxc_uchar8'
(119:0) : error : undefined identifier: 'src'
(119:0) : error : undefined identifier: 'src'
(119:0) : error : undefined identifier: 'src'
(120:0) : error : undefined identifier: 'vxc_uchar8'
(120:0) : error : undefined identifier: 'src'
(120:0) : error : undefined identifier: 'src'
(120:0) : error : undefined identifier: 'src'
(121:0) : error : undefined identifier: 'vxc_uchar8'
(121:0) : error : undefined identifier: 'src'
(121:0) : error : undefined identifier: 'src'
(121:0) : error : undefined identifier: 'src'
(122:0) : error : undefined identifier: 'vxc_uchar8'
(122:0) : error : undefined identifier: 'src'
(122:0) : error : undefined identifier: 'src'
(122:0) : error : undefined identifier: 'src'
(124:0) : error : undefined identifier: 'vxc_short8'
(124:0) : error : undefined identifier: 'src'
(124:0) : error : undefined identifier: 'src'

ERROR: Failed to compile vx shader. (error: FFFFFFFF)
E [_gpu_register:476]Build program fail.
E [vsi_nn_kernel_create_node:631]Register client kernel com.vivantecorp.extension.evis.tile_remain3_U8toU8_2D fail with -1.

[       OK ] Tile.shape_3_2_1_int8_multiples_2_2_1 (80 ms)
[----------] 2 tests from Tile (125 ms total)

[----------] 14 tests from TransposeConv2d
<Skip the PASS Items. >
[ RUN      ] TransposeConv2d.shape_4_4_1_1_int8_QuantizedPerChannelOneTest
Segmentation fault
khadas@Khadas:~/TIM-VX-1.1.32/install/bin$ 

Could you help me to solve this error?

Thanks.

@leokuo I am sorry, I haven’t tried with it. If you are willing to wait, I will find time to test, but not so fast

@Frank

Thanks for your help. Because I develop TVM and want to use VIM3 Pro as device for model inference
device. TIM-VX is the dependency library. If it is possible, may you test the TVM on the VIM3 Pro?

Thanks.

Reference:

  1. TVM Readme for VSI NPU
  2. TVM
  3. TIM-VX

@leokuo I don’t think TVM can run in VIM3 easily. I will find time to test TIM-VX, but not so fast

@Frank

VeriSilicon Team add VSI NPU to TVM as target.

@Frank

BTW, May I know that VIM3L and VIM3P are using which IP?
VIP8000?VIP9000?VIPNANO?

Thanks.

TVM is reviewing the PR.

@leokuo

VIM3 is VIPNANOQI_PID0X88
VIM3L is VIPNANOQI_PID0X99

Hi, Frank
1 Does tvm vsi_npu version support int8 full quant on the a311d NPU?
2 I mean input is just an onnx model, and then could we covert it with TVM , finally put the result model onto the a311d NPU.
3 Perlay or perchannnel quant supported now ? If not ,when it can ,tks !
4 Is there any detailed document or weblink about how to run the cnn model with the TVM vsi_npu?
BR