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) A.Chan ----- "Pawan Acharya" <pawn...@gmail.com> 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 > BENCHMARK=cg > BENCHMARKU=CG > 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} > ${FLINK} ${FLINKFLAGS} -o ${PROGRAM} ${OBJS} ${FMPI_LIB} > > 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 > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users