[hpct] Example of HPM usage

Christoph Pospiech Christoph.Pospiech at de.ibm.com
Thu Sep 4 11:54:22 CDT 2008


On Thursday 04 September 2008 16:40:07 Vitali A. Morozov wrote:
> Third problem: you must be using gnu compiler, we are using IBM XL
> compiler, -dynamic is not part of XL compiler options. If I am using
> analogous -qnostaticlink, it does not help much.

Vitali,

correct, this won't work in Juelich either. Somehow, dynamic linking doesn't 
properly work with the XL compilers - yet. I guess I have to fight this out 
IBM internally.

To get you going, could you please try static linking as described below ?

On Thursday 04 September 2008, Dr. Christoph Pospiech wrote:
> The previous example is using GNU fortran and runtime linking of the
> aggregation module. This module has been specified by the environment
> variable  HPM_AGGREGATE=average.so .
>
> To use IBM Fortran and static linking, the dlopen stubs have to be reverted
> to ordinary "unresolved references". There is a  "fake_dlfcn.o" provided,
> which does just that. Then the static version of the aggregation module
> (e.g. average.o) has to be used. The following commands accomplish this
> task.
>
> [pospiech at jugene1 hpm]$ make ARCH=bgp_linux clean
> rm -rf *.o *.out swim_mpi swim0 swim_omp \
>         redBlackSOR *.viz *.hpm core*
> [pospiech at jugene1
> hpm]$ /bgsys/drivers/ppcfloor/comm/bin/mpixlf77 -c  -O3 -g
> -I/bgsys/local/ihpct-2.2.2/include -qsuffix=cpp=f -DHPM swim_mpi.f
> ** shalow   === End of Compilation 1 ===
> ** inital   === End of Compilation 2 ===
> ** calc1   === End of Compilation 3 ===
> ** calc2   === End of Compilation 4 ===
> ** calc3z   === End of Compilation 5 ===
> ** calc3   === End of Compilation 6 ===
> ** f_hpm_errchk   === End of Compilation 7 ===
> "swim_mpi.f", 1500-036 (I) The NOSTRICT option (default at OPT(3)) has the
> potential to alter the semantics of a program.  Please refer to
> documentation on the STRICT/NOSTRICT option for more information.
> "swim_mpi.f", 1500-036 (I) The NOSTRICT option (default at OPT(3)) has the
> potential to alter the semantics of a program.  Please refer to
> documentation on the STRICT/NOSTRICT option for more information.
> "swim_mpi.f", 1500-036 (I) The NOSTRICT option (default at OPT(3)) has the
> potential to alter the semantics of a program.  Please refer to
> documentation on the STRICT/NOSTRICT option for more information.
> 1501-510  Compilation successful for file swim_mpi.f.
> [pospiech at jugene1 hpm]$ /bgsys/drivers/ppcfloor/comm/bin/mpixlf77 -g \
> swim_mpi.o -o swim_mpi \
> /bgsys/local/ihpct-2.2.2/lib/fake_dlfcn.o \
> /bgsys/local/ihpct-2.2.2/lib/average.o \
> -L/bgsys/local/ihpct-2.2.2/lib -lhpm -llicense
>                
> [pospiech at jugene1 hpm]$ llrun -np 16 -mode VN -env
> HPM_UNIQUE_FILE_NAME=yes ./swim_mpi
> Creating LoadLeveler Job
> Submiting LoadLeveler Interactive Job
>  Wait for job jugene1b.42573.0 to be started:..
> .
>  SPEC benchmark 102.swim
>
>  NUMBER OF POINTS IN THE X DIRECTION     512
>  NUMBER OF POINTS IN THE Y DIRECTION     512
>  GRID SPACING IN THE X DIRECTION      25000.
>  GRID SPACING IN THE Y DIRECTION      25000.
>  TIME STEP                               20.
>  TIME FILTER PARAMETER                  .001
>  NUMBER OF ITERATIONS                    102
>  wALLclock time= 0.719031374117646949
>
> [pospiech at jugene1 hpm]$ ls -lrt *.viz
> -rw-r--r-- 1 pospiech ibm 139123 2008-08-22 23:18
> swim_mpi_R00-M1-N09_0_22.08.2008_23.18.11.viz
> [pospiech at jugene1 hpm]$
>
> Please note that for static linking, the setting of LD_LIBRARY_PATH and
> HPM_AGGREGATE is no longer needed.

-- 
 
Mit freundlichen Gruessen/Best Regards

Dr. Christoph Pospiech
High Performance & Parallel Computing
Advanced Computing Technology Center
Phone +49-351-86269826, eMail: Christoph.Pospiech at de.ibm.com
Mobile +49-171 765 5871

IBM Deutschland GmbH
Vorsitzender des Aufsichtsrats: Erich Clementi
Geschäftsführung: Martin Jetter (Vorsitzender), Christian Diedrich,
Christoph Grandpierre, Matthias Hartmann, Thomas Fell, Michael Diemer
Sitz der Gesellschaft: Stuttgart
Registergericht: Amtsgericht Stuttgart, HRB 14562 WEEE-Reg.-Nr. DE 99369940



More information about the hpct mailing list