Repository navigation
fix(hip-kernel-provider): log why Gfx950AttentionDense declines a graph #12927
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
Merged
yassinsolim
merged 7 commits into
develop
from
users/ysoliman/hqs-gfx950-decline-reasons
Oct 6, 2026
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
587892f
fix(hipdnn): log why Gfx950AttentionDense declines a graph
yassinsolim f0dcdb9
fix(hipdnn): build Gfx950AttentionDense decline reasons only when log…
yassinsolim b5254c4
Merge branch 'develop' into users/ysoliman/hqs-gfx950-decline-reasons
yassinsolim b66e074
fix(hipdnn): log Gfx950AttentionDense node declines only for SDPA graphs
yassinsolim 58a58b8
test(hipdnn): cover operator<< for AttentionImplementation
yassinsolim 5ac70b5
Merge remote-tracking branch 'origin/develop' into HEAD
yassinsolim b299b0d
style(hip-kernel-provider): drop a stray blank line left by the #1292…
yassinsolim 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 hidden or 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 hidden or 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
213 changes: 202 additions & 11 deletions
213
...p-kernel-provider/src/engines/kernel_ingestor_engine/packs/Gfx950AttentionDenseNative.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
37 changes: 37 additions & 0 deletions
37
projects/hipdnn/flatbuffers_sdk/tests/flatbuffer_utilities/TestFlatbufferTypeHelpers.cpp
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| // Copyright © Advanced Micro Devices, Inc., or its affiliates. | ||
| // SPDX-License-Identifier: MIT | ||
|
|
||
| #include <gtest/gtest.h> | ||
| #include <sstream> | ||
| #include <string> | ||
|
|
||
| #include <hipdnn_flatbuffers_sdk/data_objects/sdpa_attributes_generated.h> | ||
| #include <hipdnn_flatbuffers_sdk/flatbuffer_utilities/FlatbufferTypeHelpers.hpp> | ||
|
|
||
| using hipdnn_flatbuffers_sdk::data_objects::AttentionImplementation; | ||
|
|
||
| namespace | ||
| { | ||
|
|
||
| std::string streamed(AttentionImplementation implementation) | ||
| { | ||
| std::ostringstream oss; | ||
| oss << implementation; | ||
| return oss.str(); | ||
| } | ||
|
|
||
| } // namespace | ||
|
|
||
| TEST(TestFlatbufferTypeHelpers, OstreamOperatorAttentionImplementation) | ||
| { | ||
| EXPECT_EQ(streamed(AttentionImplementation::AUTO), "AUTO"); | ||
| EXPECT_EQ(streamed(AttentionImplementation::COMPOSITE), "COMPOSITE"); | ||
| EXPECT_EQ(streamed(AttentionImplementation::UNIFIED), "UNIFIED"); | ||
| } | ||
|
|
||
| TEST(TestFlatbufferTypeHelpers, OstreamOperatorAttentionImplementationOutOfRangeIsEmpty) | ||
| { | ||
| // A value past the schema's last enumerator, as a newer serializer could write, prints | ||
| // nothing instead of reading past the generated name table. | ||
| EXPECT_TRUE(streamed(static_cast<AttentionImplementation>(42)).empty()); | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.