Dear Steve,
so you mean I need to make sure, that my final application
uses the exact same MPI version as I use when building LAMMPS.
So, I should figure out, which exact mpi.h is used during building
my custom code, then override the MPI_INC setting in the LAMMPS
Makefile.mpi to be sure, right?
As it seems to me, it is not enough to just specify the
mpicxx wrappers in my case, though it should be sufficient IMHO.
Best,
Stephan
If you build LAMMPS as a static lib, then you have to provide the
MPI lib (or any other external iib) explicitly when you link your
final application (your code + LAMMPS + list of external libs).
It sounds like you do that for just LAMMPS (e.g. the couple apps).
If you can't do it for your code, then it seems like the error is
either in your code (the way you built it), or the MPI lib you are
providing when you link (which would need to be compatible with
the mpi.h file used when you built LAMMPS as a static lib).
Steve
Dear users,
i try to compile LAMMPS on BlueGene/Q.
I managed to build it as a static lib with the mpicxx compiler
wrappers successfully. Also the examples in COUPLE work for me,
when compiling it manually as indicated in the README.
However, if I try to link the liblammps.a in another CMakeProject,
I fail in the end with ```undefined references to MPI_Send``` and
to some other MPI functions.
If I look into the liblammps.a by the tool nm, I see exactly those
undefined references marked by a capital U.
I don't see the failure, since I compile my CMakeProject also with
mpicxx wrappers, and this links fine to MPI in the end.
Do you have any suggestions? I mean this suggests to me an MPI
version mismatch somehow.
Best, Stephan
---------------------------------------------------------------------
- ---------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!