This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VH-Q1: TIDL : Not able to build TIDL for TARGET = TI_DEVICE as per TI user guide.

Part Number: TDA4VH-Q1

Hello TI,

We are building TIDL as per the instructions provided in https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-j784s4/08_06_01_03/exports/docs/tidl_j784s4_08_06_00_10/ti_dl/docs/user_guide_html/md_tidl_build_instruction.html 

While building for TARGET_PLATFORM as PC, we are able to see the PC_dsp_test_dl_algo.out binary in ti_dl/test/ folder.
When we build for TARGET_PLATFORM as TI_DEVICE, we are facing an error.

======== MAKING IMPORT TOOL PROTOS LIB =================
make -C ./ti_dl/utils/tidlModelImport -f makefile_lib
make[1]: Entering directory '/home/feo1kor/sdk_8_6/ti-processor-sdk-rtos-j784s4-evm-08_06_01_03/tidl_j784s4_08_06_00_10/ti_dl/utils/tidlModelImport'
compiling ../tfImport/proto_cc/tensorflow/core/framework/device_attributes.pb.cc
error: Case insensitivity of options has been deprecated; w must be written as
   W in future releases
error: Option -W is not valid without --use_llvm
make[1]: *** [/home/feo1kor/sdk_8_6/ti-processor-sdk-rtos-j784s4-evm-08_06_01_03/tidl_j784s4_08_06_00_10/makerules/rules.mk:570: /home/feo1kor/sdk_8_6/ti-processor-sdk-rtos-j784s4-evm-08_06_01_03/tidl_j784s4_08_06_00_10/out/j784s4/dsp/algo/release/ti_dl/utils/tidlModelImport/../tfImport/proto_cc/tensorflow/core/framework/device_attributes.pb.obj] Error 1
make[1]: Leaving directory '/home/feo1kor/sdk_8_6/ti-processor-sdk-rtos-j784s4-evm-08_06_01_03/tidl_j784s4_08_06_00_10/ti_dl/utils/tidlModelImport'
make: *** [makefile:329: protos] Error 2
 

SDK version : ti-processor-sdk-rtos-j784s4-evm-08_06_01_03

TIDL version : tidl_j784s4_08_06_00_10

Build env : LINUX


  • Hi,

    In order to build TI_DEIVCE, TIDL source code is required which is not part of release our package.

    You can refer to pre build libs which are present as part of released SDK package.

    Regards

    Pratik

  • Hello Pratik,
    Thanks for the quick response.

    We will require TIDL source code with which we can build for TI_DEVICE [TIDL-RT Inference - Sample application (test bench)]


    And also can you provide information on how to build it for the QNX system and information about the libraries and dependencies required for application. What we need to make that app to work on QNX exactly how is working on Linux.


    Thank you.

  • Hi,

    We will require TIDL source code with which we can build for TI_DEVICE [TIDL-RT Inference - Sample application (test bench)]

    Anand could please comment here ?

    can you provide information on how to build it for the QNX system and information about the libraries and dependencies required for application. What we need to make that app to work on QNX exactly how is working on Linux.

    Looping in our QNX expert here,

    Kip could you please help us here?

    Regards,

    Pratik

  • Hi Santosh,

    TIDL pre-built executable is present here - ti_dl/rt/out/J784S4/A72/LINUX/< TARGET_BUILD >/TI_DEVICE_armv8_test_dl_algo_host_rt.out. That is sufficient to run inference on the board, you need not rebuild anything for TI_DEVICE. You can just run above executable. Any specific reason you are trying to rebuild it?

    Regards,

    Anand

  • Hi Anand!

    I understand, but we need the application source code to build on QNX. On Linux the application exists, but on QNX it doesn't. It's very important (high priority) to have the application on QNX as well. 

    If we take the pre-built application and move it from Linux to QNX. And we want to run an example, the following error occurs: "./TI_DevICE_armv8_test_dl_algo_host_rt.out: Can't access shared library"
    What libraries/dependencies do we need for the pre-build application on QNX to work? Is the Linux application compatible with QNX?

    Best regards,

    Gabriel

  • Hi Gabriel,

    As of SDK 9.0 the TIDL_RT is only supported for Linux, by the TI SDKs.   To add QNX support the TI SDKs would require modifications.

    The DL demos supported by Vision Apps + PSDK RTOS / QNX can be seen on Vision Apps User Guide: Vision Apps User Guide: DL Demos (ti.com),where in the tables for each demo, where QNX/Linux support is listed. 

    For further details please bring this topic up with your local TI contacts.

    Regards,

    kb

  • Hi KB,

    We need the TI_DEVICE_armv8_test_dl_algo_host_rt.out, which is currently pre-build only for LINUX, to be pre-build for QNX, too, including all the necessary library dependencies.

    Otherwise we need the source code, so we can build it ourselves.

    As mentioned above, the one built for Linux is not functional on QNX.

    Regards,

    Gabriel

  • Hi Gabriel,

    This is not currently supported for the SDK QNX. 

    For further details please bring this topic up with your local TI contacts.

    Regards,

    kb

  • We will request the source code from out local TI contacts in our next sync meeting. FYI Gabriel. 

  • Thanks,

    The contacts that I am aware of, have been made aware of this thread.

    Regards,

    kb

  • Per 7/21 call, Juergen provide position on call:

    1. TI supports Linux a default OS. Any other HLOS migration is responsibility of customer and/or 3P working OS vendor
    2. For TIDL-RT, TI continues to use very minimal OS features so any porting to any Posix compliant OS in place of Linux, is expected to be straightforward.
    3. TI can clarify (via e2e)  if any questions to build system of TIDL-RT. It is fairly simple build system for TIDL-RT source with very few source files.
    4. For any issues regarding TIDL, Bosch has to report on Linux

    Kumar also provided suggestion for Bosch to try re: error log on top of the case. Please close this ticket if the suggestions provide address the issue.