Amdgpu kernel with function attribute "uniform-work-group-size"="true" requires
uniform work group size (i.e. each dimension of global size is a multiple of
corresponding dimension of work group size). hipExtModuleLaunchKernel allows to
launch HIP kernel with non-uniform workgroup size, which makes it necessary for
runtime to check and enforce uniform workgroup size if kernel requires it. To
let runtime be able to enforce that, this metadata is needed to indicate that
the kernel requires uniform workgroup size.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
60,050 ms | x64 debian > MLIR.Examples/standalone::test.toy |
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp | ||
---|---|---|
1087–1090 | Don't need to query it twice, just use getFnAttribute once. I thought there was a helper around for these awful bool string attributes |
llvm/test/CodeGen/AMDGPU/hsa-metadata-uniform-workgroup-size-v5.ll | ||
---|---|---|
2 | Don't need -verify-machineinstrs |
Don't need to query it twice, just use getFnAttribute once.
I thought there was a helper around for these awful bool string attributes