-
Notifications
You must be signed in to change notification settings - Fork 17
Fix gc-cpu-runner arith dialect parsing failure #178
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
Conversation
The above mentioned error is not reproducible on a few environments, so I am not sure whether the fix is a must or not. |
src/gc-cpu-runner/gc-cpu-runner.cpp
Outdated
@@ -38,6 +39,7 @@ int main(int argc, char **argv) { | |||
llvm::InitializeNativeTargetAsmParser(); | |||
|
|||
mlir::DialectRegistry registry; | |||
mlir::registerAllDialects(registry); |
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 would suggest to find out which dialect we really need, instead of all dialects initialization.
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.
Only arith
is needed. I narrowed down the scope.
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.
LGTM
LGTM |
CPUs with/without bf16 support may have a difference? I suggest to root-cause this issue a bit more. Anyway, this PR LGTM. |
I checked this issue with @crazydemo last Friday. It happens on 10219, but not 10220, so it is not that likely to be related to instruction set. I will spend time to root cause this issue, comparing the environment difference between 10219 and 10220 later~ |
Fix gc-cpu-runner arith dialect parsing failure
Fix gc-cpu-runner parser stage error on bf16 workloads