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.

Rebuild OpenMP 2.x for KeyStone II

Hi,

We have installed the CCS5.5.0.00077, MCSDK 3.0.4.18 and MCSDK-HPC 3.0.1.8 on our host PC (with Ubuntu 12.04). Also we have created a simple OpenMP project "omp_hello" and can debug it on EVMK2H without any errors.

Now we want to rebuild the OpenMP 2.x runtime (for KeyStone II). For this we open a terminal window and navigate to the openmp_dsp_2_01_16_02 folder. Then we type the following commands:

1) export XDCCGROOT=~/ti/ti-cgt-c6000_8.0.0
2) export XDC_DIR=~/ti/xdctools_3_25_05_94
3) export C6636_PDK_DIR=~/ti/pdk_keystone2_3_00_04_18/packages
4) export IPC_DIR=~/ti/ipc_3_00_04_29/packages
5) make -f utils/Makefile

The buid has finished with following error:

misha@misha-laptop:~/ti/openmp_dsp_2_01_16_02$ make -f utils/Makefile
/home/misha/ti/xdctools_3_25_05_94/xdc clean -k -PR packages
making clean: понеділок, 25 травня 2015 12:31:11 +0300 ...
======== clean [packages/ti/runtime/argsmain] ========
======== clean [packages/ti/runtime/cio] ========
======== clean [packages/ti/runtime/device] ========
======== clean [packages/ti/runtime/ompbios] ========
======== clean [packages/ti/runtime/openmp] ========
======== clean [packages/ti/runtime/openmp/platforms/evm6657] ========
======== clean [packages/ti/runtime/openmp/platforms/evm6670] ========
======== clean [packages/ti/runtime/openmp/platforms/evm6678] ========
======== clean [packages/ti/runtime/openmp/platforms/evmTCI6636K2H] ========
======== clean [packages/ti/runtime/rts6000] ========
cleaning complete: понеділок, 25 травня 2015 12:31:11 +0300.
cd packages/ti/runtime/openmp; /home/misha/ti/xdctools_3_25_05_94/xdc --xdcpath="/home/misha/ti/pdk_keystone2_3_00_04_18/packages" lib/ti_runtime_openmp_c6636_debug_e66.ae66
making package.mak (because of package.bld) ...
Linux
XDCCGROOT: /home/misha/ti/ti-cgt-c6000_8.0.0
generating interfaces for package ti.runtime.openmp (because package/package_ti.runtime.openmp.c is older than package.xdc) ...
    translating Settings
cle66 package/package_ti.runtime.openmp.c ...
cle66 src/tomp_parallel.c ...
"src/ulm_wrapper.h", line 30: fatal error #1965: cannot open source file
          "tiulm.h"
  #include "tiulm.h"
                    ^

1 catastrophic error detected in the compilation of "src/tomp_parallel.c".
Compilation terminated.

>> Compilation failure
gmake: *** [package/lib/lib/ti_runtime_openmp_c6636_debug_e66/src/tomp_parallel.oe66] Error 1
make: *** [openmp_hawking] Error 2


Where we can find the "tiulm.h" file? How we can rebuild the OpenMP 2.x for KeyStone II (our EVMK2H) without errors?

  • The MCSDK HPC Getting Started Guide has a step to install HPC IPKs to the EVM filesystem (link). Once this step is complete, tiulm.h and the associated DSP library, libtiulm.ae66, is available on the EVM filesystem at /usr/share/ti/ulm

    Ajay

  • We are not using the EVM filesystem at this moment. We try to rebuild the OpenMP 2.x on host PC (Ubuntu 12.04). How we can do it for KeyStone II (our EVMK2H) without errors?

    The "openmp_dsp_2_01_16_02/docs/OpenMP_Runtime_User_Guide.pdf" section 11 "Building the Runtime" says: "The OpenMP runtime ships with all the sources required to build the runtime. Use the Makefile provided in the utils directory after setting the following environment variables: XDCCGROOT, XDC DIR, C6670 PDK DIR, C6657 PDK DIR, C6678 PDK DIR, C6636 PDK DIR."

  • The document is out of date w.r.t the ULM dependency. Thanks for pointing that out - we will update the document.To extract the ULM dependencies, do the following:

    -> cd <install_path>/mcsdk-hpc_03_00_01_08/images

    -> mkdir tmp

    -> dpkg -x ti-ulm_1.1.0_cortexa15hf-vfp-neon.ipk `pwd`/tmp

    -> ls tmp/usr/share/ti/ulm/
    libtiulm.ae66  tiulm.h

    Set the ULM_DIR environment variable to the location of the header file and library before building the OpenMP runtime.

    Ajay

  • Yes, it works. Thank you very much!