[cfe-dev] Clang does not generate calls to "kmpc_threadprivate_cached"

Alexey Bataev via cfe-dev cfe-dev at lists.llvm.org
Thu Aug 9 14:21:39 PDT 2018


Hi Simone, use -fno-openmp-use-tls  option

Best regards,
Alexey Bataev

9 авг. 2018 г., в 15:11, Simone Atzeni via cfe-dev <cfe-dev at lists.llvm.org<mailto:cfe-dev at lists.llvm.org>> написал(а):

Hi all,

If I understand correctly when I declare a variable “#pragma omp threadprivate(myvar)”, clang generates the code to declare the variable as TLS, instead of using the OpenMP runtime and call the function “kmpc_threadprivate_cached”.
I was wondering if there is a way to obtain the second behavior and let actually the runtime manage the threadprivate declaration through the right kmpc call.

Thanks!
Simone
________________________________
This email message is for the sole use of the intended recipient(s) and may contain confidential information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180809/6984b2c2/attachment.html>


More information about the cfe-dev mailing list