diff options
author | MaheshRavishankar <ravishankarm@google.com> | 2020-02-08 18:23:09 -0800 |
---|---|---|
committer | MaheshRavishankar <ravishankarm@google.com> | 2020-02-08 22:30:03 -0800 |
commit | aaddca1efd1d5a66d014023b9649cb273a84a7ae (patch) | |
tree | 365cc7cd5fcec83a438d950a6be02be331c9c66f /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | e629674176f6a0cb2975f474a03d657a5ab5e3e7 (diff) | |
download | llvm-aaddca1efd1d5a66d014023b9649cb273a84a7ae.zip llvm-aaddca1efd1d5a66d014023b9649cb273a84a7ae.tar.gz llvm-aaddca1efd1d5a66d014023b9649cb273a84a7ae.tar.bz2 |
[mlir][GPUToSPIRV] Modify the lowering of gpu.block_dim to be consistent with Vulkan SPEC
The existing lowering of gpu.block_dim added a global variable with
the WorkGroupSize decoration. This raises an error within
Vulkan/SPIR-V validation since Vulkan requires this to have a constant
initializer. This is not yet supported in SPIR-V dialect. Changing the
lowering to return the workgroup size as a constant value instead,
obtained from spv.entry_point_abi attribute gets around the issue for
now. The validation goes through since the workgroup size is specified
using spv.execution_mode operation.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions