openmp - omp_outlined in omp program compiled with LLVM -
when compiling cpp program omp directives using llvm clang++ 4.9.2 see hidden function @.omp_outlined. generated in bitcode. wonder hidden function , if possible avoid generating it.
no, cannot prevent generation of outlined code in clang. outlining parallel region code own function how openmp implemented clang , many other compilers, including gcc, intel, , msvc. more details on how gcc implements can found here , here. clang follows more or less same method.
to knowledge, openmp compiler not explicitly outline openmp parallel regions 1 pgi. stack frame magic enable multiple threads execute portions of function code.
Comments
Post a Comment