This patch expands SPMDization by guarding code regions that should be executed only by the main thread. It defines an SPMD guarded execution mode where the main thread executes guarded regions and synchronizes with worker threads using simple barriers to ensure that values are updated. Given it is possible that the same code region executes both from SPMD or SPMDized guarded execution mode, the patch creates a non-guarded version of the region and a flag to guard or not that is managed by the runtime.
Diff Detail
- Repository
- rG LLVM Github Monorepo
clang-tidy: warning: invalid case style for function '__kmpc_target_init' [readability-identifier-naming]
not useful