llvm-project
15504148 - [OpenMP][OMPIRBuilder] Use device shared memory for arg structures

Commit
12 days ago
[OpenMP][OMPIRBuilder] Use device shared memory for arg structures Argument structures are created when sections of the LLVM IR corresponding to an OpenMP construct are outlined into their own function. For this, stack allocations are used. This patch modifies this behavior when compiling for a target device and outlining `parallel`-related IR, so that it uses device shared memory instead of private stack space. This is needed in order for threads to have access to these arguments.
Author
Committer
Parents
Loading