-
Notifications
You must be signed in to change notification settings - Fork 40
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
Conversation
if (checkChip && failed(hasValidChip())) { | ||
return failure(); | ||
} | ||
// if (checkChip && failed(hasValidChip())) { |
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.
can we instead use AmdArchDb.cpp
file to keep this validity check instead of removing it ?
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 think this is only used for miopen integration. Otherwise, checkChip is always false. Let's remove checkChip flag and other non used files
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 is only used for miopen integration.
Okay. Looks like another maintenance overhead. We should check if MIOpen requires rocMLIR or not.
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.
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.
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.
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'); |
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.
remove P
Remove hasValidChip() and checkChip. Modify isApplicable() function.
Resolves #1753