Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in fuse_ops for hip_gemm_pointwise #3690

Open
ahsan-ca opened this issue Dec 6, 2024 · 1 comment · May be fixed by #3712
Open

Error in fuse_ops for hip_gemm_pointwise #3690

ahsan-ca opened this issue Dec 6, 2024 · 1 comment · May be fixed by #3712
Assignees
Labels
bug Something isn't working

Comments

@ahsan-ca
Copy link
Contributor

ahsan-ca commented Dec 6, 2024

Repro:

#fuse_ops_fail.py
import migraphx

p = migraphx.program()
mm = p.get_main_module()

s1 = migraphx.shape(type="float_type", lens=[1, 3072])
s2 = migraphx.shape(type="float_type", lens=[3072, 18432])
s3 = migraphx.shape(type="float_type", lens=[18432])

x1 = mm.add_parameter("x1", s1)
x2 = mm.add_parameter("x2", s2)
c = mm.add_parameter("c", s3)

dot = mm.add_instruction(migraphx.op("dot"), [x1, x2])

c = mm.add_instruction(migraphx.op("multibroadcast", out_lens=dot.shape().lens()), [c])
add = mm.add_instruction(migraphx.op("add"), [c, dot])

mm.add_return([add])

Compile using driver:

export MIGRAPHX_ENABLE_HIPBLASLT_GEMM=1	
migraphx-driver compile fuse_ops_fail.py

Error:

terminate called after throwing an instance of 'std::bad_function_call'
  what():  bad_function_call
Aborted (core dumped)
@ahsan-ca ahsan-ca added the bug Something isn't working label Dec 6, 2024
@ahsan-ca ahsan-ca self-assigned this Dec 6, 2024
@ahsan-ca
Copy link
Contributor Author

ahsan-ca commented Dec 6, 2024

Similar to #3681, this needs to be fixed for hip_gemm_pointwise as well.

@ahsan-ca ahsan-ca linked a pull request Dec 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant