[Openmp-commits] [openmp] 0d1da7c - [OpenMP] Make use of getloadavg() on *BSD OS's (#70586)
via Openmp-commits
openmp-commits at lists.llvm.org
Sun Oct 29 15:30:15 PDT 2023
Author: Brad Smith
Date: 2023-10-29T18:30:11-04:00
New Revision: 0d1da7c37f64bcca9b57396af26b7cf4136aefa7
URL: https://github.com/llvm/llvm-project/commit/0d1da7c37f64bcca9b57396af26b7cf4136aefa7
DIFF: https://github.com/llvm/llvm-project/commit/0d1da7c37f64bcca9b57396af26b7cf4136aefa7.diff
LOG: [OpenMP] Make use of getloadavg() on *BSD OS's (#70586)
OpenBSD does not have /proc filesystem, neither does FreeBSD (by default).
Added:
Modified:
openmp/runtime/src/z_Linux_util.cpp
Removed:
################################################################################
diff --git a/openmp/runtime/src/z_Linux_util.cpp b/openmp/runtime/src/z_Linux_util.cpp
index 478c09baa1beefe..e6aa6f413d168c5 100644
--- a/openmp/runtime/src/z_Linux_util.cpp
+++ b/openmp/runtime/src/z_Linux_util.cpp
@@ -2206,7 +2206,8 @@ int __kmp_is_address_mapped(void *addr) {
#ifdef USE_LOAD_BALANCE
-#if KMP_OS_DARWIN || KMP_OS_NETBSD
+#if KMP_OS_DARWIN || KMP_OS_DRAGONFLY || KMP_OS_FREEBSD || KMP_OS_NETBSD || \
+ KMP_OS_OPENBSD
// The function returns the rounded value of the system load average
// during given time interval which depends on the value of
More information about the Openmp-commits
mailing list