Skip to content

Commit 06963fb

Browse files
authored
[OpenMP] Disable load balance on Haiku (#136082)
Haiku does not have a means of retrieving the desired information and the -1 setting causes the code to fallback anyway.
1 parent da959c9 commit 06963fb

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

openmp/runtime/src/kmp_config.h.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
#define KMP_ASM_INTRINS 1
121121
#define USE_ITT_BUILD LIBOMP_USE_ITT_NOTIFY
122122
#define INTEL_ITTNOTIFY_PREFIX __kmp_itt_
123-
#if ! KMP_MIC
123+
#if ! (KMP_MIC || KMP_OS_HAIKU)
124124
# define USE_LOAD_BALANCE 1
125125
#endif
126126
#if ! (KMP_OS_WINDOWS || KMP_OS_DARWIN)

openmp/runtime/src/z_Linux_util.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2522,10 +2522,6 @@ int __kmp_get_load_balance(int max) {
25222522
return running_threads;
25232523
}
25242524

2525-
#elif KMP_OS_HAIKU
2526-
2527-
int __kmp_get_load_balance(int max) { return -1; }
2528-
25292525
#else // Linux* OS
25302526

25312527
// The function returns number of running (not sleeping) threads, or -1 in case

0 commit comments

Comments
 (0)