next up previous
Next: 6 Performance Results Up: Blocking Techniques for HPF Previous: 4 Execution of Subprograms

Subsections

5 HPF Blocking with the ADAPTOR Compilation System

The HPF compilation system ADAPTOR [1] provided by SCAI has been extended to implement this approach. This Section describes in more detail how to use the ADAPTOR system.

5.1 Source-To-Source Translation

For the source-to-source translation the two flags -hpf and -cb must be enabled.

      fadapt -hpf -cb <program>.f
      fadapt -HPF -cb <program>.f

5.2 Compling and Linking

The new source code has to be compiled by a native Fortran compiler and to be linked with the HPF runtime system. This is done alltogether by the ADAPTOR compiler driver.

      adaptor -hpf -cb <program>.f

fadapt -HPF -cb local1.hpf
ifc -w -O local1_adp.f -c -o local1.o
rm -f local1_adp.f
ifc -o a.out local1.o -L/home/brandes/adaptor/dalib/ -ladp_hpf -ladp_dm_null \
                      -ladp_sm_null -ladp_pm_null -ladp_trace_null -lPEPCF90

5.3 Execution

The topology of the default abstract processor array is specified at runtime:

       a.out -nb p1
       a.out -nb p1xp2
       a.out -nb p1xp2xp3


next up previous
Next: 6 Performance Results Up: Blocking Techniques for HPF Previous: 4 Execution of Subprograms
Thomas Brandes 2004-03-18