Commit b437014
authored
[OpenMPIRBuilder] Do not call host runtime for GPU teams codegen (#79984)
Patch ensures that host runtime functions are not called for handling
OpenMP teams clause on the device.
GPU code for pragma `omp target teams distribute parallel do` will
require only one call to OpenMP loop-worksharing GPU runtime. Support
for it will be added later.
This patch does not include changes required for handling `omp target
teams` for the host side.1 parent 3f5fcb5 commit b437014
File tree
2 files changed
+33
-2
lines changed- llvm/lib/Frontend/OpenMP
- mlir/test/Target/LLVMIR
2 files changed
+33
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6251 | 6251 | | |
6252 | 6252 | | |
6253 | 6253 | | |
| 6254 | + | |
| 6255 | + | |
6254 | 6256 | | |
6255 | | - | |
| 6257 | + | |
6256 | 6258 | | |
6257 | 6259 | | |
6258 | 6260 | | |
| |||
6305 | 6307 | | |
6306 | 6308 | | |
6307 | 6309 | | |
6308 | | - | |
| 6310 | + | |
| 6311 | + | |
6309 | 6312 | | |
6310 | 6313 | | |
6311 | 6314 | | |
| |||
6342 | 6345 | | |
6343 | 6346 | | |
6344 | 6347 | | |
| 6348 | + | |
| 6349 | + | |
| 6350 | + | |
6345 | 6351 | | |
6346 | 6352 | | |
6347 | 6353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments