Skip to content

Commit

Permalink
[OpenMP]Fix trivial build failure in MacOS
Browse files Browse the repository at this point in the history
MacOS build of LLVM with OpenMP enabled fails with an error
that it doesn't know what std::abs is. Fix by including <cmath>
so that the relevant function declaration is included.

No functional change intended.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D150687
  • Loading branch information
Leporacanthicus committed May 17, 2023
1 parent acce2a3 commit 782a16d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openmp/runtime/src/kmp_collapse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include "kmp_str.h"
#include "kmp_collapse.h"

#include <cmath>

#if OMPT_SUPPORT
#include "ompt-specific.h"
#endif
Expand Down

0 comments on commit 782a16d

Please sign in to comment.