[Darshan-users] [Bug report] Darshan and Fortran (mpif90)

8schroed at informatik.uni-hamburg.de 8schroed at informatik.uni-hamburg.de
Mon May 2 05:58:54 CDT 2011


Hello,

I tried to run Darshan with Fortran. For testing I wrote a short  
program which is using MPICH2 and MPI-I/O (see the attachment  
hello-world-mpi.f90).

After compiling the code with Darshan and running the executable,  
Darshan didn't generate a logfile. To find the cause I analysed the  
Mapfile "$tmpfile" which is created with the build. The main  
interesting part in this file shows the symbols of MPI-functions:

                 0x0000000000400b58                mpi_comm_rank_
                 0x0000000000400b68                mpi_file_close_
                 0x0000000000400b78                mpi_file_open_

                                         ....

                 0x0000000000400bd8                mpi_file_write_
                 0x0000000000400be8                mpi_init_
                 0x0000000000400bf8                mpi_finalize_
                 0x0000000000400c08                mpi_comm_size_

But in mpif90 (of Darshan) the "grep"-command in line 84 is searching  
for "MPI" in upper case even though "MPI" is written in lower case in  
the Mapfile:

                 grep MPI $tmpfile

As a result the script "mpif90" of MPICH2 is executed instead of  
Darshan, because "grep" sent an exitcode equal 1. By adding the "-i"  
option, "grep" ignores case distinctions and the exit code is equal 0.  
Now mpif90 of Darshan will be used and after running the program there  
is a logfile in the log directory.

Please take note of this bug and fix it in your Darshan-mpif90 to  
avoid the problem of case sensitivity.

Best regards,

Sandra
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello-world-mpi.f90
Type: text/x-fortran
Size: 523 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/darshan-users/attachments/20110502/84533465/attachment.bin>


More information about the Darshan-users mailing list