-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Open
Labels
backend:AMDGPUgood first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contribute
Description
The amdgcn.wave.id
intrinsic reads a special-purpose register that holds the wave ID (that is (threadIdx.x + blockDim.x * (threadId.y + blockDim.y * threadId.z)) / waveSize
) on gfx12. It's undefined on other architectures.
However
- This feature is still available on other architectures (ex. gfx942 has the wave ID in ttmp11)
- In cases where it isn't supported, the wave ID intrinsic can still be expanded to a computation of the wave ID instead of failing compilation
Metadata
Metadata
Assignees
Labels
backend:AMDGPUgood first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contribute