Report only compatible GPU, i.e. no GPU if mixed/double precision is requested by the hardware does not support it

This commit is contained in:
Axel Kohlmeyer
2021-10-13 21:15:16 -04:00
parent c322064ff3
commit afad3f42d5
3 changed files with 15 additions and 5 deletions

View File

@ -1340,7 +1340,7 @@ void LAMMPS::print_config(FILE *fp)
fmt::print(fp,"Accelerator configuration:\n\n{}\n",
Info::get_accelerator_info());
#if defined(LMP_GPU)
fmt::print(fp,"GPU present: {}\n\n",Info::has_gpu_device() ? "yes" : "no");
fmt::print(fp,"Compatible GPU present: {}\n\n",Info::has_gpu_device() ? "yes" : "no");
#endif
fputs("Active compile time flags:\n\n",fp);