diff options
author | Fabian Mora <fmora.dev@gmail.com> | 2023-07-22 11:32:42 +0000 |
---|---|---|
committer | Fabian Mora <fmora.dev@gmail.com> | 2023-07-22 11:33:11 +0000 |
commit | 4538347fb2dafbf7ec175ffa96f802472aa707e9 (patch) | |
tree | fbf948dafe67b302dc321ca26e2dd1f04f8f6dca /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | ff380ced051975d45ded8c1386d8d602c615db61 (diff) | |
download | llvm-4538347fb2dafbf7ec175ffa96f802472aa707e9.zip llvm-4538347fb2dafbf7ec175ffa96f802472aa707e9.tar.gz llvm-4538347fb2dafbf7ec175ffa96f802472aa707e9.tar.bz2 |
[mlir][rocdl] Change the translation of `GridDim*Op` to `__ockl_get_num_groups`
Currently, `ROCDL::GridDim*Op` is being translated to `__ockl_get_global_size`, however
to match the meaning of `gpu.grid_dim` it should instead be translated to
`__ockl_get_num_groups`. This change would also make it agree with the meaning
of `gridDimx.*` in HIP, see:
https://github.com/ROCm-Developer-Tools/hipamd/blob/develop/include/hip/amd_detail/amd_hip_runtime.h#L257
Difference between the functions:
```
__ockl_get_global_size = blockDim * numBlocks
__ockl_get_num_groups = numBlocks
```
Reviewed By: krzysz00
Differential Revision: https://reviews.llvm.org/D156009
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions