diff --git a/src/utils/BuildInfo.cpp b/src/utils/BuildInfo.cpp index c47c183b022f7d369736012bcb6f8411deb8ad54..600d249ea7c39f6599961254bdd5aa6aff1c1726 100644 --- a/src/utils/BuildInfo.cpp +++ b/src/utils/BuildInfo.cpp @@ -14,7 +14,11 @@ std::string BuildInfo::type() std::string BuildInfo::compiler() { - return PASTIS_BUILD_COMPILER; + std::stringstream compiler_info; + compiler_info << PASTIS_BUILD_COMPILER + << " (" << PASTIS_BUILD_COMPILER_VERSION + << ")" << std::ends; + return compiler_info.str(); } std::string BuildInfo::kokkosDevices() diff --git a/src/utils/PastisUtils.cpp b/src/utils/PastisUtils.cpp index a6be8f30a8d4663feac28162fc918876de13abd2..db228f8d1a5550eea0e86338e9e27ecb3094b2b8 100644 --- a/src/utils/PastisUtils.cpp +++ b/src/utils/PastisUtils.cpp @@ -68,7 +68,7 @@ std::string initialize(int& argc, char* argv[]) << '\n'; pout() << "type: " << rang::style::bold << BuildInfo::type() << rang::style::reset << '\n'; pout() << "compiler: " << rang::style::bold << BuildInfo::compiler() << rang::style::reset << '\n'; - pout() << "devices: " << rang::style::bold << BuildInfo::kokkosDevices() << rang::style::reset << '\n'; + pout() << "kokkos: " << rang::style::bold << BuildInfo::kokkosDevices() << rang::style::reset << '\n'; pout() << "mpi: " << rang::style::bold << BuildInfo::mpiLibrary() << rang::style::reset << '\n'; pout() << "-------------------------------------------------------\n"; { diff --git a/src/utils/pastis_build_info.hpp.in b/src/utils/pastis_build_info.hpp.in index cd8756fc6bebedb8277b4d05bbbae280343bc686..86a2eff3dfe794b34a24c8722239c23bf4c21dce 100644 --- a/src/utils/pastis_build_info.hpp.in +++ b/src/utils/pastis_build_info.hpp.in @@ -3,6 +3,7 @@ #define PASTIS_BUILD_TYPE "@CMAKE_BUILD_TYPE@" #define PASTIS_BUILD_COMPILER "@CMAKE_CXX_COMPILER@" +#define PASTIS_BUILD_COMPILER_VERSION "@CMAKE_CXX_COMPILER_VERSION@" #define PASTIS_BUILD_KOKKOS_DEVICES "@KOKKOS_GMAKE_DEVICES@" #endif // PASTIS_BUILD_INFO_HPP