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.

OMX - build release

Expert 1100 points

Hello all,

I want to build in release mode the VLPB OMX example  (ARM+DSP code). Does anyone know which files should I change in order to do that?

Thanks.

  • Alla,

    Please look at makerules/rules_c764.mk. This has option for debug and whole_program_debug (similar to release). PROFILE_core=debug/whole_program_debug can be given while building.

    Regards

    Vimal

  • Vimal,

    Thank you for your answer. Does it mean that I can't compile in release mode? What are the differences between the two modes?

    I changed the PROFILE_core = whole_program_debug in rules_c674.mk file, but this compilation fails with errors. There are additional changes that should be done?

    Thanks.

  • Alla,

    whole_program_debug is more optimized version then just release. If you see compile erros, these could be some limitation in those files. Please pass on the erros, we can check with tools team.

    Regards

    Vimal

  • Vimal,

    To be precise I changed the PROFILE_c6xdsp to whole_program_debug in makerules/build_config.mk file. 

    You can see the compilation errors in attached file.

    # all files complete.
    all files complete: Wed Jan 4 11:05:33 IST 2012.
    make[2]: Leaving directory `/home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/omx_05_02_00_15/packages'
    # Configuring XDC packages for dm81xx:c6x
    make -C /home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/omx_05_02_00_15/packages/ti/omx/demos/dm81xx xdc_configuro CORE=c6xdsp
    make[2]: Entering directory `/home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/omx_05_02_00_15/packages/ti/omx/demos/dm81xx'
    # Invoking configuro...
    # in rules_c674.mk
    # here1 /home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/omx_05_02_00_15/bin/dm81xx/obj/ti816x-evm/c6xdsp/whole_program_debug/dm81xx_configuro/package/cfg/DspAppMain_pec674 /home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/omx_05_02_00_15/bin/dm81xx/obj/ti816x-evm/c6xdsp/whole_program_debug/dm81xx_configuro/package/cfg/_x.xdl
    # here2 c674
    chmod a+x /home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/omx_05_02_00_15/bin/maketemp_configuro_cmd_c6xdsp.bat
    /home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/omx_05_02_00_15/bin/maketemp_configuro_cmd_c6xdsp.bat
    configuring DspAppMain.pe674 from package/cfg/DspAppMain_pe674.cfg ...
    warning: ti.platforms.generic.Platform: "./package/cfg/DspAppMain_pe674.cfg", line 306: (xdc.platform.IPlatform.Instance)ti.platforms.generic.Platform.Instance#0 plat: The parameter 'regs' is passed to this platform instance through Build.platformTable, but the instance does not have a configuration parameter with that name.
    PROGRAM : ............. xdc.cfg.Program
    CONFIG ARGS : ............. [object Object]
    warning: ti.sysbios.BIOS: "/home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/bios_6_32_01_38/packages/ti/sysbios/BIOS.xs", line 382: Profile Deprecation Warning ti.sysbios.BIOS: The 'whole_program_debug' build profile will not be supported in future releases of SYS/BIOS.  Use 'release' or 'debug' profiles together with the 'BIOS.libType' configuration parameter to specify your preferred library.  See the compatibility section of your SYS/BIOS release notes for more information.
    warning: ti.bios.MEM: "/home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/bios_6_32_01_38/packages/ti/bios/MEM.xs", line 360: ti.bios.MEM : Cannot change xdc.cfg.Program.stack. Parameter changed elsewhere
    warning: ti.bios.TSK: "/home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/bios_6_32_01_38/packages/ti/bios/TSK.xs", line 361: ti.bios.TSK : Cannot change ti.sysbios.knl.Task defaultStackSize. Parameter changed elsewhere
    warning: ti.bios.TSK: "/home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/bios_6_32_01_38/packages/ti/bios/TSK.xs", line 361: ti.bios.TSK : Cannot change ti.sysbios.knl.Task idleTaskStackSize. Parameter changed elsewhere
    warning: ti.sysbios.knl.Task: "/home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/bios_6_32_01_38/packages/ti/sysbios/knl/Task.xs", line 168: .far:taskStackSection : The Task.defaultTaskSection name has been changed to ".far:taskStackSection".  Please update your Program.sectMap[] setting accordingly.
    manageIpc = true
    Heap: ti.sysbios.heaps.HeapMem
    ti.sdo.fc.rman: Requested profile 'whole_program_debug' does not exist.
    	Defaulting to the 'release' profile
    ti.sdo.fc.ires.nullresource: Requested profile 'whole_program_debug' does not exist.
    	Defaulting to the 'release' profile
    ti.sdo.fc.dskt2: Requested profile 'whole_program_debug' does not exist.
    	Defaulting to the 'release' profile
        will link with ti.sdo.codecs.aaclcdec:lib/aacdec_tii_lc_elf.l64P
    ti.sdo.fc.rman: Requested profile 'whole_program_debug' does not exist.
    	Defaulting to the 'release' profile
    ti.sdo.fc.ires.nullresource: Requested profile 'whole_program_debug' does not exist.
    	Defaulting to the 'release' profile
    ti.sdo.fc.dskt2: Requested profile 'whole_program_debug' does not exist.
    	Defaulting to the 'release' profile
        will link with ti.sdo.codecs.aaclcdec:lib/aacdec_tii_lc_elf.l64P
    egrep -ivw dm81xx_configuro /home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/omx_05_02_00_15/bin/dm81xx/obj/ti816x-evm/c6xdsp/whole_program_debug/dm81xx_configuro/package/cfg/DspAppMain_pec674  /home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/omx_05_02_00_15/bin/dm81xx/obj/ti816x-evm/c6xdsp/whole_program_debug/dm81xx_configuro/package/cfg/_x.xdl > /home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/omx_05_02_00_15/bin/dm81xx/obj/ti816x-evm/c6xdsp/whole_program_debug/dm81xx_configuro/linker_mod.cmd
    egrep: /home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/omx_05_02_00_15/bin/dm81xx/obj/ti816x-evm/c6xdsp/whole_program_debug/dm81xx_configuro/package/cfg/DspAppMain_pec674: No such file or directory
    egrep: /home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/omx_05_02_00_15/bin/dm81xx/obj/ti816x-evm/c6xdsp/whole_program_debug/dm81xx_configuro/package/cfg/_x.xdl: No such file or directory
    make[2]: *** [xdc_configuro] Error 2
    make[2]: Leaving directory `/home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/omx_05_02_00_15/packages/ti/omx/demos/dm81xx'
    make[1]: *** [dm81xxdspXdc] Error 2
    make[1]: Leaving directory `/home/z3/z3-netra-RPS-20111017/ezsdk/component-sources/omx_05_02_00_15/packages'
    make: *** [omx] Error 2
    

  • Alla,

    I could reproduce the same. Unfortunately I do not have immediate solution for this. ( I could get past this issue, but later it stuck in another one) so multiple changes might be required. Untill we resolve this, You can use putting -O3 in compiler flags, that is highest optimizer level in dsp. This would give you performance boost what you might be expecting from release.

    Regards

    Vimal

  • Vimal,

    Thank you very much , looking forward to solution.

    Alla.

  • Hello Vimal,

    There is any progression with this issue?

  • This issue is very important for my company, can anyone tell me please if this issue is treated?

  • Alla,

    Apologies for late response..As I suggested earlier -O3 will give you almost all the optimization, you expect with release profile. Do you see any issue with that. With next SDK, we will be migrating to different tools version. We will try release profile with  that.

    Regards

    Vimal

  • Thank you.