-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TLS support problem #47
Comments
@jagode, threads.c contains the following code:
The code above has the following problem: if, for some reason, the PAPI configure script is unable to automatically detect the supported TLS and set |
I think I'm hitting this problem, when trying to build papi-7.0.1 with AMD aocc 4.1.0, which is based on clang-16. I get:
and than
Note and finally:
|
Adding
|
_papi_hwi_my_thread
is a TLS global variable. The variable, currently, is guarded in both threads.c & threads.h and declared only if the PAPI configure script can detect TLS support (either by default or as selected by the user through the--with-tls=<keyword>
configure option). If TLS support is not detected the variable is undeclared and the build fails, as following reported by static analysis:The text was updated successfully, but these errors were encountered: