Hello,
I am trying to compile the OpenMP 4.0 example programs located in openmpacc-66ak2h-0.2.1/examples. The compilation process goes very well, and no issues on executing on the KeyStone II board.
But I am trying to understand how the code is compiled. According to the wiki: http://processors.wiki.ti.com/index.php/MCSDK_HPC_3.x_OpenMP#OpenMP_Demos
What my understanding is the host code (File with main() function are named <example_name>_main.cpp) is compiled by arm-linux-gnueabihf-g++, the GNU compiler for ARM processors, while the target code (Files with #pragma omp target and #pragma omp declare target regions are named <example_name>_target.c ) is compiled by the TI cl6x compiler (wrapped by clacc wrapper).
So, does this mean when I compile my own OpenMP 4.0 programs, I have to put the target code (inside of OpenMP target directive) into another file, compiled by clacc, while leave the rest of host code compiled by arm-gcc. I couldn't wrap it into a single file, like we write OpenACC code, right?
Thanks
Cheng