Skip to content

Commit

Permalink
[OpenMP] Make use of getloadavg() on *BSD OS's (#70586)
Browse files Browse the repository at this point in the history
OpenBSD does not have /proc filesystem, neither does FreeBSD (by default).
  • Loading branch information
brad0 committed Oct 29, 2023
1 parent 91b9a66 commit 0d1da7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openmp/runtime/src/z_Linux_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d1da7c

Please sign in to comment.