This patch adds the weak identifier to the openmp device environment
variable. The changes introduced in https://reviews.llvm.org/D117211
result in multiply defined symbols. Because the symbol is potentially
included multiple times for each offloading file we will get symbol
colisions, and because it needs to have external visiblity it should be
weak.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Sure, it can be weak. Definition in the old devicertl too please. I guess we have multiple copies because there are multiple TUs each with their own internalized RTL, and this symbol needs to exist in isolation so the host runtime only has to patch one of them. Thanks!