Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Compilig CG.W.8 benchmark
From: chan_at_[hidden]
Date: 2010-01-12 12:07:24

To compile fortran application with MPE, you need Fortran to C wrapper
library, e.g. libmpe_f2cmpi.a or the one that comes with OpenMPI. Your
link command should contain at least the following

mpif77 -o cg_log cg.f -lmpe_f2cmpi -llmpe -lmpe.

To simplify the process, the recommended way to enable MPE is to use
the MPI wrapper that comes with MPE, i.e. mpefc, (unless you are using
a very old version of MPE). Assuming your MPE is built with OpenMPI,
your link line becomes

mpefc -mpilog -o cg_log cg.f.

If I recall correctly, the simplest way to insert mpefc in one of the latest
version of NAS parallel benchmark is in config/make.def. Replace the Fortran
compiler in the file as

MPIF77 = mpefc -mpilog (or F77 = mpefc -mpilog depends on NPB version)


----- "Pawan Acharya" <pawn.07_at_[hidden]> wrote:

> I am having trouble with trace-enabled comilation of CG.W.8 benchmark
> included in NAS Parallel Benchmark. As the makefile is dependent to
> other
> files in the common directory, so obviously independent compiling of
> the
> cg.f wouldn't work:
> mpif77 -o cg_log cg.f -llmpe -lmpe
> This is the makefile given with benchmark, Can I get any helpp in
> modifying
> this file for the trace-enabled compiling
> SHELL=/bin/sh
> LLFLAG = -llmpe
> LFLAG = -lmpe
> include ../config/make.def
> OBJS = cg.o ${COMMON}/print_results.o \
> ${COMMON}/${RAND}.o ${COMMON}/timers.o
> include ../sys/make.common
> ${PROGRAM}: config ${OBJS}
> cg.o: cg.f mpinpb.h npbparams.h
> ${FCOMPILE} cg.f
> clean:
> - rm -f *.o *~
> - rm -f npbparams.h core
> --
> ..................
> Best Regards,
> Pawan Acharya
> _______________________________________________
> users mailing list
> users_at_[hidden]