Discussion:
Compiler error during logfile creation.
(too old to reply)
Panny
2011-11-23 03:28:29 UTC
Permalink
Sir/mam,
i am trying to make logfile using mpich2's mpicc binary as given
below.

mpicc -mpilog -profile=temp -o sim sim.c

temp is my profiling library.
This commands gives following error.
cc1: error: Unrecognized command line option "-mpilog". And its not
getting compiled.

Please help me out. I want clog2 files for jumpshot to trace my code.
Thank you.
blmblm@myrealbox.com
2011-11-25 17:50:10 UTC
Permalink
Post by Panny
Sir/mam,
i am trying to make logfile using mpich2's mpicc binary as given
below.
mpicc -mpilog -profile=temp -o sim sim.c
temp is my profiling library.
This commands gives following error.
cc1: error: Unrecognized command line option "-mpilog". And its not
getting compiled.
Please help me out. I want clog2 files for jumpshot to trace my code.
Thank you.
A Google search for "mpich" and "mpilog" turns up the following post
to an OpenMPI mailing list

http://www.open-mpi.org/community/lists/users/2010/04/12611.php

which seems to me to be saying that the "-mpilog" flag is not valid
in MPICH2 and that instead one should use "-mpe=mpilog". I haven't
tested it, but a quick look at the mpicc wrapper script makes this
seem plausible.
--
B. L. Massingill
ObDisclaimer: I don't speak for my employers; they return the favor.
Loading...