Skip to content
Snippets Groups Projects
Commit 6d55eed7 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Make simple cosmetic improvements to build info

parent 208e4840
No related branches found
No related tags found
1 merge request!11Feature/mpi
...@@ -14,7 +14,11 @@ std::string BuildInfo::type() ...@@ -14,7 +14,11 @@ std::string BuildInfo::type()
std::string BuildInfo::compiler() 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() std::string BuildInfo::kokkosDevices()
......
...@@ -68,7 +68,7 @@ std::string initialize(int& argc, char* argv[]) ...@@ -68,7 +68,7 @@ std::string initialize(int& argc, char* argv[])
<< '\n'; << '\n';
pout() << "type: " << rang::style::bold << BuildInfo::type() << rang::style::reset << '\n'; pout() << "type: " << rang::style::bold << BuildInfo::type() << rang::style::reset << '\n';
pout() << "compiler: " << rang::style::bold << BuildInfo::compiler() << 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() << "mpi: " << rang::style::bold << BuildInfo::mpiLibrary() << rang::style::reset << '\n';
pout() << "-------------------------------------------------------\n"; pout() << "-------------------------------------------------------\n";
{ {
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#define PASTIS_BUILD_TYPE "@CMAKE_BUILD_TYPE@" #define PASTIS_BUILD_TYPE "@CMAKE_BUILD_TYPE@"
#define PASTIS_BUILD_COMPILER "@CMAKE_CXX_COMPILER@" #define PASTIS_BUILD_COMPILER "@CMAKE_CXX_COMPILER@"
#define PASTIS_BUILD_COMPILER_VERSION "@CMAKE_CXX_COMPILER_VERSION@"
#define PASTIS_BUILD_KOKKOS_DEVICES "@KOKKOS_GMAKE_DEVICES@" #define PASTIS_BUILD_KOKKOS_DEVICES "@KOKKOS_GMAKE_DEVICES@"
#endif // PASTIS_BUILD_INFO_HPP #endif // PASTIS_BUILD_INFO_HPP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment