[llvm] [NVPTX] Add support for atomic add for f16 type (PR #84295)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 13 11:14:44 PDT 2024


Artem-B wrote:

Huh. It appears that the instruction does not accept immetiate arguments for f16 variants, though it does accept them for f32. This looks like a bug in ptxas.
https://godbolt.org/z/9Gv1McM4M

Normally f16 instruction variants accept plain hex immediate values.

Looks like we'll need to disable insttruction variant with an immediate argument and force passing it via a register.


https://github.com/llvm/llvm-project/pull/84295


More information about the llvm-commits mailing list