foss-for-synopsys-dwc-arc-processors / embarc_mli

Machine learning inference library for ARC EM and HS Processors
Other
25 stars 10 forks source link

error build example_face_detect example #399

Open IRISZZW opened 3 years ago

IRISZZW commented 3 years ago

MWDT version: R-2021.03

gmake ROUND_MODE=CONVERGENT TCF_FILE=../../hw/em9d.tcf

cmake \
        -DDEBUG_BUILD=ON \
        -DEXT_CFLAGS= \
        -DOPTMODE=speed \
        -DGEN_EXAMPLES=1 \
        -DMLI_BUILD_REFERENCE=OFF \
        -DCMAKE_INSTALL_PREFIX=/SCRATCH2/Watson/mliproject/embarc_mli/bin/arc \
         -DARC_CFG_TCF_PATH=/SCRATCH2/Watson/mliproject/embarc_mli/hw/em9d.tcf -DCMAKE_TOOLCHAIN_FILE=/global/apps/mwdt_2021.03/MetaWare/arc/cmake/arc-mwdt.toolchain.cmake -G "Unix Makefiles" -DROUND_MODE=CONVERGENT \
        -B/SCRATCH2/Watson/mliproject/embarc_mli/obj/arc \
        -S/SCRATCH2/Watson/mliproject/embarc_mli
-- The C compiler identification is Clang 10.0.1
-- The CXX compiler identification is Clang 10.0.1
-- Check for working C compiler: /global/apps/mwdt_2021.03/MetaWare/arc/bin/ccac
-- Check for working C compiler: /global/apps/mwdt_2021.03/MetaWare/arc/bin/ccac - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /global/apps/mwdt_2021.03/MetaWare/arc/bin/ccac
-- Check for working CXX compiler: /global/apps/mwdt_2021.03/MetaWare/arc/bin/ccac - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- MLI_PLATFORM
-- MLI_PLATFORM
-- Configuring done
-- Generating done
-- Build files have been written to: /SCRATCH2/Watson/mliproject/embarc_mli/obj/arc
cmake --build /SCRATCH2/Watson/mliproject/embarc_mli/obj/arc/examples/example_face_detect --target install -j16
gmake[1]: Entering directory `/SCRATCH2/Watson/mliproject/embarc_mli/obj/arc/examples/example_face_detect'
gmake[2]: Entering directory `/SCRATCH2/Watson/mliproject/embarc_mli/obj/arc'
gmake[3]: Entering directory `/SCRATCH2/Watson/mliproject/embarc_mli/obj/arc'
Scanning dependencies of target mli
gmake[3]: Leaving directory `/SCRATCH2/Watson/mliproject/embarc_mli/obj/arc'
gmake[3]: Entering directory `/SCRATCH2/Watson/mliproject/embarc_mli/obj/arc'
[  5%] Building CXX object lib/CMakeFiles/mli.dir/src/helpers/src/mli_helpers.cc.o
[  5%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/diverse/mli_krn_permute_fx.cc.o
[  7%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/diverse/mli_krn_argmax.cc.o
[ 10%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/eltwise/mli_krn_eltwise_add_fx.cc.o
[ 13%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/eltwise/mli_krn_eltwise_mul_fx.cc.o
[ 15%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/eltwise/mli_krn_eltwise_max_fx.cc.o
[ 21%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/eltwise/mli_krn_eltwise_min_fx.cc.o
[ 21%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/eltwise/mli_krn_eltwise_sub_fx.cc.o
[ 26%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/pooling/mli_krn_avepool_hwc_fx8.cc.o
[ 26%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/pooling/mli_krn_avepool_hwc_fx16.cc.o
[ 28%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/pooling/mli_krn_avepool_hwc_sa8.cc.o
[ 31%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/pooling/mli_krn_maxpool_hwc_fx16.cc.o
[ 34%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/pooling/mli_krn_maxpool_hwc_fx8.cc.o
[ 36%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/pooling/mli_krn_maxpool_hwc_sa8.cc.o
[ 39%] Building CXX object lib/CMakeFiles/mli.dir/src/move/mli_mov_api.cc.o
[ 42%] Building CXX object lib/CMakeFiles/mli.dir/src/private/src/mli_check.cc.o
[ 44%] Building CXX object lib/CMakeFiles/mli.dir/src/private/src/mli_prv_activation_lut.cc.o
[ 47%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/transform/mli_krn_relu_fx.cc.o
[ 50%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/transform/mli_krn_leaky_relu_fx.cc.o
[ 52%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/transform/mli_krn_prelu.cc.o
[ 55%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/transform/mli_krn_sigm_fx.cc.o
[ 57%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/transform/mli_krn_tanh_fx.cc.o
[ 60%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/transform/mli_krn_softmax_fx.cc.o
[ 63%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/transform/mli_krn_l2_normalize.cc.o
[ 65%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/convolution/mli_krn_conv2d_hwcn.cc.o
[ 68%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/convolution/mli_krn_transpose_conv2d_hwcn.cc.o
[ 71%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/convolution/mli_krn_depthwise_conv2d_hwcn.cc.o
[ 73%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/convolution/mli_krn_group_conv2d_hwcn.cc.o
[ 76%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/common/mli_krn_fully_connected.cc.o
[ 78%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/common/mli_krn_rnn_dense.cc.o
[ 81%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/common/mli_krn_lstm_cell.cc.o
[ 84%] Building CXX object lib/CMakeFiles/mli.dir/src/kernels/common/mli_krn_gru_cell.cc.o
[ 86%] Linking CXX static library ../bin/libmli.a
gmake[3]: Leaving directory `/SCRATCH2/Watson/mliproject/embarc_mli/obj/arc'
[ 86%] Built target mli
gmake[3]: Entering directory `/SCRATCH2/Watson/mliproject/embarc_mli/obj/arc'
Scanning dependencies of target example_face_detect
gmake[3]: Leaving directory `/SCRATCH2/Watson/mliproject/embarc_mli/obj/arc'
gmake[3]: Entering directory `/SCRATCH2/Watson/mliproject/embarc_mli/obj/arc'
[ 89%] Building C object examples/example_face_detect/CMakeFiles/example_face_detect.dir/bmp_file_io.c.o
[ 92%] Building C object examples/example_face_detect/CMakeFiles/example_face_detect.dir/face_trigger_model.c.o
[ 94%] Building C object examples/example_face_detect/CMakeFiles/example_face_detect.dir/main.c.o
[ 97%] Building C object examples/example_face_detect/CMakeFiles/example_face_detect.dir/sliding_scan.c.o
/SCRATCH2/Watson/mliproject/embarc_mli/examples/example_face_detect/face_trigger_model.c:300:5: warning: implicit declaration of function 'mli_krn_conv2d_chw_fx16_generic' is invalid in C99 [-Wimplicit-function-declaration]
    mli_krn_conv2d_chw_fx16_generic(&ir_tensor_X, &L1_conv_wt, &L1_conv_bias,
    ^
/SCRATCH2/Watson/mliproject/embarc_mli/examples/example_face_detect/face_trigger_model.c:313:5: warning: implicit declaration of function 'mli_krn_depthwise_conv2d_chw_fx16_generic' is invalid in C99 [-Wimplicit-function-declaration]
    mli_krn_depthwise_conv2d_chw_fx16_generic(&ir_tensor_X, &L3_conv_wt, &L3_conv_bias,
    ^
/SCRATCH2/Watson/mliproject/embarc_mli/examples/example_face_detect/face_trigger_model.c:489:9: warning: implicit declaration of function 'mli_krn_conv2d_chw_fx16_generic' is invalid in C99 [-Wimplicit-function-declaration]
        mli_krn_conv2d_chw_fx16_generic(&input_sub, &filter_weights, &filter_bias,
        ^
/SCRATCH2/Watson/mliproject/embarc_mli/examples/example_face_detect/face_trigger_model.c:511:9: warning: implicit declaration of function 'mli_krn_conv2d_chw_fx16_generic' is invalid in C99 [-Wimplicit-function-declaration]
        mli_krn_conv2d_chw_fx16_generic(&input_sub, &filter_weights, &filter_bias,
        ^
/SCRATCH2/Watson/mliproject/embarc_mli/examples/example_face_detect/face_trigger_model.c:538:9: warning: implicit declaration of function 'mli_krn_concat_fx16' is invalid in C99 [-Wimplicit-function-declaration]
        mli_krn_concat_fx16((const mli_tensor **)concat_inputs, &concat_cfg, temp_data);
        ^
/SCRATCH2/Watson/mliproject/embarc_mli/examples/example_face_detect/face_trigger_model.c:539:9: warning: implicit declaration of function 'mli_krn_conv2d_chw_fx16_generic' is invalid in C99 [-Wimplicit-function-declaration]
        mli_krn_conv2d_chw_fx16_generic(temp_data, &filter_weights, &filter_bias,
        ^
6 warnings generated.
[100%] Linking CXX executable elf_files/example_face_detect.elf
Unresolved Symbol:                      Referenced from:
------------------                      ----------------
mli_krn_conv2d_chw_fx16_generic          CMakeFiles/example_face_detect.dir/face_trigger_model.c.o
mli_krn_concat_fx16                      CMakeFiles/example_face_detect.dir/face_trigger_model.c.o
mli_krn_depthwise_conv2d_chw_fx16_generic
                                         CMakeFiles/example_face_detect.dir/face_trigger_model.c.o
gmake[3]: *** [examples/example_face_detect/elf_files/example_face_detect.elf] Error 1
gmake[3]: Leaving directory `/SCRATCH2/Watson/mliproject/embarc_mli/obj/arc'
gmake[2]: *** [examples/example_face_detect/CMakeFiles/example_face_detect.dir/all] Error 2
gmake[2]: Leaving directory `/SCRATCH2/Watson/mliproject/embarc_mli/obj/arc'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/SCRATCH2/Watson/mliproject/embarc_mli/obj/arc/examples/example_face_detect'
gmake: *** [lib] Error 2
jcampbel commented 3 years ago

Hi @IRISZZW MLI 2.0 is under active development and not yet available for EM processors - as documented in the release notes. Please revert to MLI 1.1 release if you need access to MLI for EM. Thanks Jamie