In order to fold calls based on high-level knowledge and control flow
tracking it helps to expose the information as a runtime call. The
logic: !SPMD && getTID() == getMasterTID() was used in various places
and is now encapsulated in __kmpc_is_generic_main_thread. As part of
this rewrite we replaced eager computation of arguments with on-demand
computation, especially helpful if the calls can be folded and arguments
don't need to be computed consequently.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
openmp/libomptarget/deviceRTLs/common/src/loop.cu | ||
---|---|---|
458 | why do we still check location to tell if SPMD mode? Don't we want to completely remove it? |
why do we still check location to tell if SPMD mode? Don't we want to completely remove it?