[cfe-dev] [Openmp-dev] Clang does not generate `__kmpc_threadprivate_register_vec` for threadprivate arrays of objects
Alexey Bataev via cfe-dev
cfe-dev at lists.llvm.org
Wed Nov 21 02:18:14 PST 2018
Most probably, because it is not required. Everything works with the regular runtime function.
Best regards,
Alexey Bataev
21 нояб. 2018 г., в 0:43, Simone Atzeni via Openmp-dev <openmp-dev at lists.llvm.org<mailto:openmp-dev at lists.llvm.org>> написал(а):
Hi,
Given an array of objects declared OpenMP threadprivate, such as:
myclass x[4];
#pragma omp threadprivate (x)
Clang generates a call to ` __kmpc_threadprivate_register` instead of ` __kmpc_threadprivate_register_vec`.
The ` __kmpc_threadprivate_register` gets as size “sizeof(myclass) * array_size” so it works just fine, but I was wondering why not using the `__kmpc_threadprivate_register_vec` provided in the runtime?
Is there a particular reason?
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.
________________________________
_______________________________________________
Openmp-dev mailing list
Openmp-dev at lists.llvm.org<mailto:Openmp-dev at lists.llvm.org>
http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20181121/a30746a2/attachment.html>
More information about the cfe-dev
mailing list