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.

Linux/AM5749: TIDL simulation tool

Part Number: AM5749

Tool/software: Linux

Hi,

Is it possible to simulate tidl only in a PC environment?

I feel like I can see the following site.
software-dl.ti.com/.../Foundational_Components_TIDL.html

Where can I get the eve_test_dl_algo.out and tidl_model_import.out of the x86 executable file?

./tidl_model_import.out  ./import/tidl_import_j11_v2.txt
./eve_test_dl_algo.out sim.txt

Best Regards,
Shigehiro Tsuda

  • Hi Tsuda-san,

    Yes, you can run the simulation tool to simulate TIDL in PC environment. The document link you pointed above can be referred on how to run the tool.

    Regards,
    Manisha
  • Hi Manisha,

    Thank you for quick reply,

    Please tell me where is the .out file or source to be executed in the PC environment in Processor-SDK.

    ./tidl_model_import.out
    ./eve_test_dl_algo.out


    Best Regards,
    Shigehiro Tsuda

  • Please find below steps to use build your application for host emulation. This need visual studio. 

     

    Host emulation build for source package

    The source release of TIDL module can be built in host emulation mode. This option speeds up development and validation time by running the platform code on x86/x64 PC.

    Installing Visual Studio

    Building host emulation for TI Deep Learning Library module requires Microsoft Visual Studio 11.0 (2012) or later

    Building source in host emulation

    After installing the required components, navigate to TI Deep Learning Library install path and run vcvarsall.bat to setup the required environment variables

    {TIDL_install_path} > {…\Microsoft Visual Studio 11.0\VC\vcvarsall.bat}

    Once the environment variables are setup build the TI Deep Learning Library source in host emulation mode

    {TIDL_install_path} > gmake CORE=eve TARGET_BUILD=debug TARGET_PLATFORM=PC

    This will build the host emulation executable under the path

    {TIDL_install_path}\test\out\eve_test_dl_algo.out.exe

    TIDL_install_path} > gmake CORE=dsp TARGET_BUILD=debug TARGET_PLATFORM=PC

    This will build the host emulation executable under the path

    {TIDL_install_path}\test\out\dsp_test_dl_algo.out.exe

    To build the example in host emulation mode for c6x DSP you will need to install the c6xsim which is available at

    Install this package in the common folder

    If you observe below error while building

    linkage specification contradicts earlier specification for '_ti_rotl

    Update below line in “c6xsim\C6xSimulator.h”

    uint32 _rotl(uint32 a, int32 b);

    to

    uint32 _rotl(uint32 a, uint32 b);

    Build with below setting (in “tidl_alg_int.h” file) to build the code to run the inference faster on emulation mode on PC.

    #define ENABLE_TRACE_PROFILE (0)

    #define ENABLE_REF_COMPARISION (0)

    #define ENABLE_CN_CODE (1)

    #define ENABLE_PRINTFS (0)

    Note: The target code has to be built at least once before building HSOT emulation build. The target build generates few header files which would be needed for HSOT emulation build

  • Hi Manisha,

    Thank you for quick reply.

    I understand that you can build using visual studio.
    Can these builds not be possible in make environment on linux PC?

    Best Regards,
    Shigehiro Tsuda

  • It should be doable but we don't have makefile for same to provide as reference.
  • Hi Manisha,

    Thank you for quick reply.

    I understand that there is no makefile for them.
    Try it in visual studio referring to the procedure of your answer.

    Best Regards,
    Shigehiro Tsuda

  • Hi Tsuda-san,

    I would like to take my prior comment back. We are providing the x86 build for TIDL library for EVE and DSP as part of Processor SDK Linux. You can find them under ti-processor-sdk-linux-am57xx-evm-xx.xx.xx.xx/linux-devkit/sysroots/x86_64-arago-linux/usr/bin folder on your host machine.

    Regards,
    Manisha
  • Hi Manisha,

    Thank you for your support.
    I can confirm that it is in the directory of your answer.

    Best Regards,
    Shigehiro Tsuda