AMDMIGraphX icon indicating copy to clipboard operation
AMDMIGraphX copied to clipboard

hipblaslt_ext::getAllAlgos returns solutions, none of which are supported

Open ahsan-ca opened this issue 1 year ago • 5 comments

hipblaslt_ext::getAllAlgos returns algos which can then be validated using hipblaslt_ext::matmulIsAlgoSupported. For some cases, all the algos returned are invalid.

This seems to be an issue that hipBLASLt team needs to look into. Collect such cases and logs for hipBLASLt team to look into.

ahsan-ca avatar Dec 13 '24 17:12 ahsan-ca

Observation of investigation:

  • On bert-base-cased, we hit the issue of getAllAlgos() returning all invalid solutions, only when we disable MLIR. With MLIR enabled, we do not hit this issue.

I have opened a ticket for this issue against hipBLASLt.

ahsan-ca avatar Dec 18 '24 18:12 ahsan-ca

Feedback from the hipBLASLt team:

This is a standard behavior. getall means to get all the solutions, and when that solution is valid
for a certain size, checked by issuppoted then call matmul.

ahsan-ca avatar Dec 20 '24 17:12 ahsan-ca

Reached out to the team with hipBLASLt logs, have been asked to provide more info, working on collecting that.

Observation: The issue for all solutions being invalid only happens when we disable MLIR.

ahsan-ca avatar Jan 29 '25 20:01 ahsan-ca

I had provided the information requested by the hipBLASLt team, waiting on their response.

ahsan-ca avatar Feb 10 '25 01:02 ahsan-ca

Still waiting on what hipBLASLt team has to say. Keeping this issue around for following up with them.

ahsan-ca avatar Feb 21 '25 18:02 ahsan-ca

hipBLASLt team suggested to use hipblasLtMatmulAlgoGetHeuristic for cases where no supported algo is returned.

ahsan-ca avatar Aug 15 '25 16:08 ahsan-ca