Skip to content

Commit 0d1da7c

Browse files
authored
[OpenMP] Make use of getloadavg() on *BSD OS's (#70586)
OpenBSD does not have /proc filesystem, neither does FreeBSD (by default).
1 parent 91b9a66 commit 0d1da7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openmp/runtime/src/z_Linux_util.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2206,7 +2206,8 @@ int __kmp_is_address_mapped(void *addr) {
22062206

22072207
#ifdef USE_LOAD_BALANCE
22082208

2209-
#if KMP_OS_DARWIN || KMP_OS_NETBSD
2209+
#if KMP_OS_DARWIN || KMP_OS_DRAGONFLY || KMP_OS_FREEBSD || KMP_OS_NETBSD || \
2210+
KMP_OS_OPENBSD
22102211

22112212
// The function returns the rounded value of the system load average
22122213
// during given time interval which depends on the value of

0 commit comments

Comments
 (0)