Commit 8299585
committed
[OpenMP] Use TLS for gtid on Solaris
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 reduced the number of failures.
Tested on `amd64-pc-solaris2.11` and `x86_64-pc-linux-gnu`.1 parent 112291a commit 8299585
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
0 commit comments