[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.
This commit is contained in:
Brad Smith
2025-04-17 15:11:33 -04:00
committed by GitHub
parent da959c92c5
commit 06963fb9c7
2 changed files with 1 additions and 5 deletions

View File

@@ -120,7 +120,7 @@
#define KMP_ASM_INTRINS 1
#define USE_ITT_BUILD LIBOMP_USE_ITT_NOTIFY
#define INTEL_ITTNOTIFY_PREFIX __kmp_itt_
#if ! KMP_MIC
#if ! (KMP_MIC || KMP_OS_HAIKU)
# define USE_LOAD_BALANCE 1
#endif
#if ! (KMP_OS_WINDOWS || KMP_OS_DARWIN)

View File

@@ -2522,10 +2522,6 @@ int __kmp_get_load_balance(int max) {
return running_threads;
}
#elif KMP_OS_HAIKU
int __kmp_get_load_balance(int max) { return -1; }
#else // Linux* OS
// The function returns number of running (not sleeping) threads, or -1 in case