[Darshan-users] Darshan and Fortran (mpif90)

Phil Carns carns at mcs.anl.gov
Wed Nov 29 08:17:45 CST 2017

Hi Zhong,

You might need to use the --export option to srun to make sure that the 
LD_PRELOAD environment variable is propagated to the executable at run 


I'm not an expert on slurm, but I suspect that it isn't propagating all 
of your environment variables by default.

Also, is this by any chance a system where executables compiled for the 
compute nodes will run correctly on the login node as well?  If so, then 
you might want to start by debugging a local invocation of mpi-io-test 
by just running it without mpiexec or slurm (i.e., "./mpi-io-test") to 
narrow down the problem.  You might also be able to do that in an 
interactive job on the compute nodes.


On 11/28/2017 03:57 AM, 紫英石 wrote:
> Hi,
> I'm having trouble when trying to run Darshan with Fortran. I tried to 
> dynamic link Darshan with mpich3.1.3(intel compiler version 15.0.1) 
> applications following the instructions here. But there is no log file 
> generated, and no error. Could you give me any suggestion on how to 
> fix it?
> http://www.mcs.anl.gov/research/projects/darshan/docs/darshan-runtime.html
> <http://www.mcs.anl.gov/research/projects/darshan/docs/darshan-runtime.html>
> Here is my steps:
> 1. Compile and install darshan 3.1.4
> tar -xvzf darshan-3.1.4.tar.gz
> cd darshan-3.1.4/darshan-runtime
> ./configure --with-mem-align=8 --with-log-path=<log directory> 
> --with-jobid-
> env=SLURM_JOB_ID CC=mpicc --prefix=<install directory> --with-zlib=<zlib
> directory> --enable-HDF5-pre-1.10 --enable-group-readable-logs
> make
> make install
> ./prepare
> 2. Create log directory, which successfully create the directory
> perl darshan-mk-log-dirs.pl
> 3. Set up the environment
> export PATH=/<darshan-3.1.4 install directory>/bin:$PATH
> export LD_LIBRARY_PATH=/<darshan-3.1.4 install 
> directory>/lib:$LD_LIBRARY_PATH
> export INCLUDE=/<darshan-3.1.4 install directory>/include:$INCLUDE
> export CPATH=/<darshan-3.1.4 install directory>/include:$CPATH
> export 
> LD_PRELOAD=/path/to/mpi/used/by/executable/lib/libfmpich.so:/<darshan-3.1.4 
> install directory>/lib/libdarshan.so
> 4. Compile application (mpi-io-test.f90)
> mpif90 mpi-io-test.f90 -o mpi-io-test
> 5. Run application
> srun -n 24 -p partitionname application
> When the application runs complete, no logs is generated. I don't know 
> what the problem is. Can you help me?
> Thanks,
> Zhong
> _______________________________________________
> Darshan-users mailing list
> Darshan-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/darshan-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-users/attachments/20171129/ce418fa8/attachment.html>

More information about the Darshan-users mailing list