-
Notifications
You must be signed in to change notification settings - Fork 95
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
Enable GEMM/dot for FP8 using hipblasLT #3577
Merged
Merged
Changes from 4 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
e6e3a5a
Initial
CharlieL7 dd60b39
Remove conditional for now
CharlieL7 a3ded15
Merge branch 'develop' of github.com:ROCm/AMDMIGraphX into ocp_fp8_hi…
CharlieL7 3628c7a
Add check for the hipblas gemm flag
CharlieL7 f28d40d
Declare env var, disable fp8ocp gemm with no intrinsics
CharlieL7 8cc9914
Use enabled
CharlieL7 33a755e
Merge branch 'develop' into ocp_fp8_hipblaslt
CharlieL7 139d12d
Merge branch 'develop' into ocp_fp8_hipblaslt
causten 856b6cb
Turn off unsupported hipblas types
CharlieL7 8e00c91
Hipblaslt types check gfx number
CharlieL7 af9d6e3
revert to previous
CharlieL7 223ba4d
add preprocessor conditional on hipblaslt version
CharlieL7 7f5798c
Use CMake macro to check symbols (needs testing)
CharlieL7 0506abd
Revert " Use CMake macro to check symbols (needs testing)"
CharlieL7 1c52a93
Merge branch 'develop' into ocp_fp8_hipblaslt
CharlieL7 d453fdc
Use variable defined by hipblaslt for HIP float8 ocp types
CharlieL7 6fe6af2
Merge branch 'develop' of github.com:ROCmSoftwarePlatform/AMDMIGraphX…
CharlieL7 78988d0
Merge branch 'develop' into ocp_fp8_hipblaslt
CharlieL7 92c1e37
Merge branch 'develop' into ocp_fp8_hipblaslt
causten 519a63b
Merge branch 'develop' into ocp_fp8_hipblaslt
causten File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably need to do
MIGRAPHX_DECLARE_ENV_VAR(MIGRAPHX_ENABLE_HIPBLASLT_GEMM)
at the top of the file...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what that does exactly. Is the env variable not declared elsewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be the way MIGraphX handles env vars. Doing this provides functions like enabled/disabled etc to work with the env vars, so we can set any of the following values for the env variable:
Also, I missed to mention that we should do
if(not enabled(MIGRAPHX_ENABLE_HIPBLASLT_GEMM{}))
instead of!MIGRAPHX_ENABLE_HIPBLASLT_GEMM
, for guarding using the env variable.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this environment variable not clash with the one already declared in lowering.cpp? Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think they should clash.