SX-Aurora / Vftrace

GNU General Public License v3.0
10 stars 2 forks source link

libvftr_{mpi,mpiwrap,pause}.a are built but not installed #2

Closed efocht closed 4 years ago

efocht commented 4 years ago

I can find them in Makefile.am declared like this:

noinst_LTLIBRARIES = libvftr_mpi.la \
                     libvftr_mpiwrap.la \
                     libvftr_pause.la

so maybe this is on purpose. Unfortunately some symbols from there are needed.

MeisterEule commented 4 years ago

This is on purpose - we need different compiler flags for the elements of these libraries. These is done in libtool by creating these auxiliary libraries. They are linked to the final library in the end.

efocht commented 4 years ago

What do you mean by:

They are linked to the final library in the end.

They don't seem to be in libvftrace.a.

SpinTensor commented 4 years ago

The content of these libraries is included in the libvftrace. As christian said, they are just a trick to be able to use different compiler flags for specific source code files. We want some files (MPI-wrappers, pause/resume, ...) to be instrumented, but not the rest of vftrace.

strings libvftrace.a | grep MPI_Init
strings libvftrace.a | grep vftrace_pause

shows that the mpiwrap library as well as the other libs are included.