Skip to content
Snippets Groups Projects
Commit 1f770a6a authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

print information about serial/parallel and MPI version for known libraries

parent 596acaf4
No related branches found
No related tags found
No related merge requests found
......@@ -978,9 +978,25 @@ void print_style(FILE *fp, const char *str, int &pos)
}
}
#define lmp_str(s) #s
#define lmp_xstr(s) lmp_str(s)
static const char lammps_config_options[]
= "LAMMPS compile time settings:\n\n"
"Integer sizes setting: "
"MPI library setting: "
#if defined(MPI_STUBS)
"Serial version using STUBS"
#elif defined(MPICH_VERSION)
"Parallel version using MPICH " MPICH_VERSION
#elif defined(OPEN_MPI)
"Parallel version using OpenMPI "
lmp_xstr(OMPI_MAJOR_VERSION) "."
lmp_xstr(OMPI_MINOR_VERSION) "."
lmp_xstr(OMPI_RELEASE_VERSION)
#else
"Parallel version using unknown MPI library"
#endif
"\nInteger sizes setting: "
#if defined(LAMMPS_SMALLSMALL)
" -DLAMMPS_SMALLSMALL"
#elif defined(LAMMPS_SMALLBIG)
......@@ -1019,8 +1035,6 @@ static const char lammps_config_options[]
#endif
"\nMemory alignment: "
#if defined(LAMMPS_MEMALIGN)
#define lmp_str(s) #s
#define lmp_xstr(s) lmp_str(s)
" -DLAMMPS_MEMALIGN=" lmp_xstr(LAMMPS_MEMALIGN)
#else
" (default)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment