Skip to content

Commit

Permalink
Add entries to print newer OpenMP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
LSchwiebert committed Nov 23, 2024
1 parent d3dd0e7 commit aab3c02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ int main(int argc, char *argv[]) {
// Print OpenMP version if recognized or OpenMP date code if not recognized.
#ifdef _OPENMP
std::unordered_map<unsigned, std::string> omp_map{
{200505, "2.5"}, {200805, "3.0"}, {201107, "3.1"},
{201307, "4.0"}, {201511, "4.5"}, {201611, "5.0 Preview 1"},
{201811, "5.0"}};
{200505, "2.5"}, {200805, "3.0"}, {201107, "3.1"}, {201307, "4.0"},
{201511, "4.5"}, {201611, "5.0 Preview 1"}, {201811, "5.0"},
{202011, "5.1"}, {202111, "5.2"}, {202411, "6.0"}};
std::unordered_map<unsigned, std::string>::const_iterator match =
omp_map.find(_OPENMP);
if (match == omp_map.end())
Expand Down

0 comments on commit aab3c02

Please sign in to comment.