[Darshan-users] darshan compiler wrappers

Carns, Philip H. carns at mcs.anl.gov
Mon Jun 22 15:57:25 CDT 2020


Hi Adrian,

Unfortunately the compiler wrappers will only work for MPICH and it's variants.

Are you using Darshan 3.2.1?

Intel's MPI most likely produces dynamically-linked executables by default.  So broadly speaking, there are going to be two options to get things working.  The first is to get the Darshan linker options displayed by `darshan-config --dyn-ld-flags` added to your link line, either explicitly, or by finding a way to add them implicitly (as the auto-generated MPICH wrappers would have done).

The second optoin would be to leave the compilation unmodified and instead instrument with Darshan at runtime by LD_PRELOAD'ing libdarshan.so when the executable is run.

There is a little bit of information about each approach available here:

https://www.mcs.anl.gov/research/projects/darshan/docs/darshan-runtime.html#_option_1_instrumenting_mpi_applications_at_compile_time

https://www.mcs.anl.gov/research/projects/darshan/docs/darshan-runtime.html#_option_2_instrumenting_mpi_applications_at_run_time

... but we don't have an exact recipe for how to do this on Intel MPI.  If you have suggestions for how to pull this off (particularly option 1) it would be a good addition to our official documentation.  I think we have access to Intel MPI on some systems here at ANL to help test, but we don't have much expertise with it yet.

thanks,
-Phil
________________________________
From: Darshan-users <darshan-users-bounces at lists.mcs.anl.gov> on behalf of Adrian Jackson <a.jackson at epcc.ed.ac.uk>
Sent: Friday, June 19, 2020 1:49 PM
To: darshan-users at lists.mcs.anl.gov <darshan-users at lists.mcs.anl.gov>
Subject: [Darshan-users] darshan compiler wrappers

Hi,

I was installing Darshan on a system with Intel MPI and was wanting to
build the compiler wrappers with the darshan-gen-cc.pl, etc... files.
However, if I try to run:

 ./darshan-gen-cc.pl
/opt/intel/compilers_and_libraries_2019.3.199/linux/mpi/intel64/bin/mpicc --output
mpicc.darshan

I just get:

Error: faulty output from
/opt/intel/compilers_and_libraries_2019.3.199/linux/mpi/intel64/bin/mpicc with
-show.

Am I doing something wrong?

cheers

adrianj
--
Tel: +44 131 6506470 skype: remoteadrianj
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
_______________________________________________
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/20200622/01156987/attachment.html>


More information about the Darshan-users mailing list