aboutsummaryrefslogtreecommitdiff
path: root/openmp/runtime/src/z_Linux_util.cpp
diff options
context:
space:
mode:
authorBrad Smith <brad@comstyle.com>2025-04-17 15:11:33 -0400
committerGitHub <noreply@github.com>2025-04-17 15:11:33 -0400
commit06963fb9c79ae012de5796b73bb810f8da09728e (patch)
treeb2e715c7fb305a86ebf254d593b5af19fae441ef /openmp/runtime/src/z_Linux_util.cpp
parentda959c92c5a46abd59d38d26d5e0758d48fb7f65 (diff)
downloadllvm-06963fb9c79ae012de5796b73bb810f8da09728e.zip
llvm-06963fb9c79ae012de5796b73bb810f8da09728e.tar.gz
llvm-06963fb9c79ae012de5796b73bb810f8da09728e.tar.bz2
[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.
Diffstat (limited to 'openmp/runtime/src/z_Linux_util.cpp')
-rw-r--r--openmp/runtime/src/z_Linux_util.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/openmp/runtime/src/z_Linux_util.cpp b/openmp/runtime/src/z_Linux_util.cpp
index 87f2711..3b82b45 100644
--- a/openmp/runtime/src/z_Linux_util.cpp
+++ b/openmp/runtime/src/z_Linux_util.cpp
@@ -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