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 a25203a commit c3400ee
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,11 @@ int main(int argc, char *argv[]) {
#endif
// 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"}};
std::unordered_map<unsigned, std::string>::const_iterator match =
omp_map.find(_OPENMP);
std::unordered_map<int, 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"},
{202011, "5.1"}, {202111, "5.2"}, {202411, "6.0"}};
auto match = omp_map.find(_OPENMP);
if (match == omp_map.end())
printf("%-40s %u\n", "Info: Compiled with OpenMP Version", _OPENMP);
else
Expand Down

0 comments on commit c3400ee

Please sign in to comment.