[all-commits] [llvm/llvm-project] d83983: [OpenMP] Use TLS for gtid on Solaris (#138508)
Rainer Orth via All-commits
all-commits at lists.llvm.org
Tue May 6 00:12:05 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d83983999d975357ada46d482c29b83fac41b90c
https://github.com/llvm/llvm-project/commit/d83983999d975357ada46d482c29b83fac41b90c
Author: Rainer Orth <ro at gcc.gnu.org>
Date: 2025-05-06 (Tue, 06 May 2025)
Changed paths:
M openmp/runtime/src/kmp_global.cpp
Log Message:
-----------
[OpenMP] Use TLS for gtid on Solaris (#138508)
When running the `openmp` testsuite on Solaris/amd64, many tests `FAIL`
like
```
# | OMP: Error #11: Stack overflow detected for OpenMP thread #1
```
In a `Debug` build, I also get
```
# | Assertion failure at kmp_runtime.cpp(203): __kmp_gtid_get_specific() < 0 || __kmp_gtid_get_specific() == i.
```
Further investigation shows that just setting `__kmp_gtid_mode` to 3
massively reduces the number of failures.
Tested on `amd64-pc-solaris2.11` and `x86_64-pc-linux-gnu`.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list