In the SPMD case, we need to initialize the data sharing and globalization infrastructure. This covers the case when an SPMD region calls a function in a different compilation unit.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 20353 Build 20353: arc lint + arc unit
Event Timeline
test/OpenMP/nvptx_data_sharing.cpp | ||
---|---|---|
33 | It is better to check that this call is not emitted, like this CK1-NOT: call void @__kmpc_data_sharing_init_stack | |
test/OpenMP/nvptx_data_sharing_spmd.cpp | ||
1–24 ↗ | (On Diff #155037) | I think we already have some tests with SPMD construct, you can just modify the existing tests instead of adding another one (e.g. nvptx_target_parallel_codegen.cpp) |
In case I'm not missing something obvious this function doesn't exist (yet) in libomptarget-nvptx?