From 8fc2c13f8d557ce1ad7985df56ce54bf94c8573d Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 15 Dec 2020 20:47:20 -0500 Subject: [PATCH] add PGI compiler version detection --- src/info.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/info.cpp b/src/info.cpp index 63ea4dccce..085e4e65ea 100644 --- a/src/info.cpp +++ b/src/info.cpp @@ -1179,6 +1179,8 @@ std::string Info::get_compiler_info() std::string buf; #if __clang__ buf = fmt::format("Clang C++ {}", __VERSION__); +#elif __PGI + buf = fmt::format("PGI C++ {}.{}",__PGIC__,__PGIC_MINOR__); #elif __INTEL_COMPILER double version = static_cast(__INTEL_COMPILER)*0.01; buf = fmt::format("Intel C++ {:.2f}.{} / {}", version,