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

Remove hasValidChip() from ConvGenerator #1771

Merged
merged 6 commits into from
Mar 12, 2025
Merged

Conversation

dorde-antic
Copy link
Contributor

@dorde-antic dorde-antic commented Mar 10, 2025

Remove hasValidChip() and checkChip. Modify isApplicable() function.

Resolves #1753

@dorde-antic dorde-antic requested a review from causten as a code owner March 10, 2025 17:25
if (checkChip && failed(hasValidChip())) {
return failure();
}
// if (checkChip && failed(hasValidChip())) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we instead use AmdArchDb.cpp file to keep this validity check instead of removing it ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is only used for miopen integration. Otherwise, checkChip is always false. Let's remove checkChip flag and other non used files

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is only used for miopen integration.

Okay. Looks like another maintenance overhead. We should check if MIOpen requires rocMLIR or not.

Copy link
Contributor

@dhernandez0 dhernandez0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove checkChip and used files for miopen integration.

EDIT: Actually I think MLIRRockThin is needed for get_fat_library_deps_list.pl. So let's remove at least checkChip in isApplicable() and hasValidChip()

Ideally, we would get rid of MLIRRockThin and figure out dependencies using some other way? But let's do that in another ticket.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove "bool checkChip = true" in isApplicable

@@ -138,10 +138,11 @@ class ConvGenerator {
std::replace(targetLayout.begin(), targetLayout.end(), 'y', '0');
std::replace(targetLayout.begin(), targetLayout.end(), 'x', '1');
std::replace(targetLayout.begin(), targetLayout.end(), 'h', '0');
std::replace(targetLayout.begin(), targetLayout.end(), 'w', '1');
std::replace(targetLayout.begin(), targetLayout.end() P, 'w', '1');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove P

@dorde-antic dorde-antic merged commit 99f48eb into develop Mar 12, 2025
13 of 23 checks passed
@dorde-antic dorde-antic deleted the hasValidChip-change branch March 12, 2025 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants