<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb18030">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Zhong,<br>
      <br>
      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 time.  <br>
      <br>
          <a class="moz-txt-link-freetext" href="https://slurm.schedmd.com/srun.html">https://slurm.schedmd.com/srun.html</a><br>
      <br>
      I'm not an expert on slurm, but I suspect that it isn't
      propagating all of your environment variables by default.<br>
      <br>
      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.<br>
      <br>
      thanks,<br>
      -Phil<br>
      <br>
      On 11/28/2017 03:57 AM, 紫英石 wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:tencent_04E44AA32799F5124264668509B575C18F0A@qq.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=gb18030">
      <div>
        <div>Hi,</div>
        <div>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?</div>
        <div><a class="moz-txt-link-freetext" href="http://www.mcs.anl.gov/research/projects/darshan/docs/darshan-runtime.html">http://www.mcs.anl.gov/research/projects/darshan/docs/darshan-runtime.html</a></div>
        <div><a class="moz-txt-link-rfc2396E" href="http://www.mcs.anl.gov/research/projects/darshan/docs/darshan-runtime.html"><http://www.mcs.anl.gov/research/projects/darshan/docs/darshan-runtime.html></a></div>
        <div><br>
        </div>
        <div>Here is my steps:</div>
        <div>1. Compile and install darshan 3.1.4</div>
        <div>tar -xvzf darshan-3.1.4.tar.gz</div>
        <div>cd darshan-3.1.4/darshan-runtime</div>
        <div>./configure --with-mem-align=8 --with-log-path=<log
          directory> --with-jobid-</div>
        <div><br>
        </div>
        <div>env=SLURM_JOB_ID CC=mpicc --prefix=<install
          directory> --with-zlib=<zlib </div>
        <div><br>
        </div>
        <div>directory> --enable-HDF5-pre-1.10
          --enable-group-readable-logs </div>
        <div>make</div>
        <div>make install</div>
        <div>./prepare </div>
        <div><br>
        </div>
        <div>2. Create log directory, which successfully create the
          directory</div>
        <div>perl darshan-mk-log-dirs.pl</div>
        <div><br>
        </div>
        <div>3. Set up the environment</div>
        <div>export PATH=/<darshan-3.1.4 install
          directory>/bin:$PATH</div>
        <div>export LD_LIBRARY_PATH=/<darshan-3.1.4 install
          directory>/lib:$LD_LIBRARY_PATH</div>
        <div>export INCLUDE=/<darshan-3.1.4 install
          directory>/include:$INCLUDE</div>
        <div>export CPATH=/<darshan-3.1.4 install
          directory>/include:$CPATH</div>
        <div>export
LD_PRELOAD=/path/to/mpi/used/by/executable/lib/libfmpich.so:/<darshan-3.1.4
          install directory>/lib/libdarshan.so</div>
        <div><br>
        </div>
        <div>4. Compile application (mpi-io-test.f90)</div>
        <div>mpif90 mpi-io-test.f90 -o mpi-io-test</div>
        <div><br>
        </div>
        <div>5. Run application</div>
        <div>srun -n 24 -p partitionname application</div>
        <div><br>
        </div>
        <div>When the application runs complete, no logs is generated. I
          don't know what the problem is. Can you help me?</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Zhong</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Darshan-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Darshan-users@lists.mcs.anl.gov">Darshan-users@lists.mcs.anl.gov</a>
<a class="moz-txt-link-freetext" href="https://lists.mcs.anl.gov/mailman/listinfo/darshan-users">https://lists.mcs.anl.gov/mailman/listinfo/darshan-users</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>