print compiled in accelerator configuration with ./lmp -h

This commit is contained in:
Axel Kohlmeyer
2021-04-22 16:10:51 -04:00
parent eb85edfb3d
commit 65cef12ae2
3 changed files with 57 additions and 51 deletions

View File

@ -1326,6 +1326,9 @@ void LAMMPS::print_config(FILE *fp)
std::string infobuf = Info::get_mpi_info(major,minor);
fmt::print(fp,"MPI v{}.{}: {}\n\n",major,minor,infobuf);
fmt::print(fp,"Accelerator configuration:\n\n{}\n",
Info::get_accelerator_info());
fputs("Active compile time flags:\n\n",fp);
if (Info::has_gzip_support()) fputs("-DLAMMPS_GZIP\n",fp);
if (Info::has_png_support()) fputs("-DLAMMPS_PNG\n",fp);