Describe the bug
As using the AMD GPU backend, it can't support some tl.extra.shim ops in triton compiler. e.g. div_rn, div_ru and so on. they are only supported by nvidia now. and i think maybe there is a better way to support different tl.extra.language ops in trition for different backend, but not those hardcode w/o any conditions. thanks
issue log:
Traceback (most recent call last):
File "/rocm_perf/FlagGems/src/flag_gems/testing/test_amd_backend.py", line 3, in
import flag_gems
File "/rocm_perf/FlagGems/src/flag_gems/init.py", line 15, in
from .fused import * # noqa: F403
File "/rocm_perf/FlagGems/src/flag_gems/fused/init.py", line 6, in
from .outer import outer
File "/rocm_perf/FlagGems/src/flag_gems/fused/outer.py", line 5, in
from ..ops import mul, mv
File "/rocm_perf/FlagGems/src/flag_gems/ops/init.py", line 43, in
from .div import (
File "/rocm_perf/FlagGems/src/flag_gems/ops/div.py", line 9, in
div_rn = tl_extra_shim.div_rn
AttributeError: module 'triton.language.extra.hip.libdevice' has no attribute 'div_rn'
and you can find them in the src/flaggems/ops/div.py
Describe the bug
As using the AMD GPU backend, it can't support some tl.extra.shim ops in triton compiler. e.g. div_rn, div_ru and so on. they are only supported by nvidia now. and i think maybe there is a better way to support different tl.extra.language ops in trition for different backend, but not those hardcode w/o any conditions. thanks
issue log:
Traceback (most recent call last):
File "/rocm_perf/FlagGems/src/flag_gems/testing/test_amd_backend.py", line 3, in
import flag_gems
File "/rocm_perf/FlagGems/src/flag_gems/init.py", line 15, in
from .fused import * # noqa: F403
File "/rocm_perf/FlagGems/src/flag_gems/fused/init.py", line 6, in
from .outer import outer
File "/rocm_perf/FlagGems/src/flag_gems/fused/outer.py", line 5, in
from ..ops import mul, mv
File "/rocm_perf/FlagGems/src/flag_gems/ops/init.py", line 43, in
from .div import (
File "/rocm_perf/FlagGems/src/flag_gems/ops/div.py", line 9, in
div_rn = tl_extra_shim.div_rn
AttributeError: module 'triton.language.extra.hip.libdevice' has no attribute 'div_rn'
and you can find them in the src/flaggems/ops/div.py