Implementation and Performance Evaluation of Omni Compiler
81
A native compiler finally compiles the code translated by Omni compiler. Thus,
all compile options of XMP are passed to the native compiler. For example, when
using the optimization option “-O2”, it is passed to the native compiler.
$ xmpcc -O2 a.c
4.2 Execution
4.2.1 XcalableMP and XcalableACC
Because the runtime libraries of XMP and XACC use MPI, a program is
executed via an MPI execution command (e.g., “mpiexec”). However, when
using GASNet, a program is executed via a GASNet execution command (e.g.,
“gasnetrun_ibv”).
$ mpiexec -n 2 ./a.out
$ gasnetrun_ibv -n 2 ./a.out
4.2.2 OpenACC
$ ./a.out
4.3 Cooperation with Profiler
In order to improve the performance of an application, it is useful to take a profile.
Omni compiler has a function to cooperate with Scalasca (https://www.scalasca.org)
and tlog which are profiling tools. The function can profile the execution of XMP
directives. Note that the function supports only the XMP in C language now.
Précédent

- 88/265

Suivant