Skip to content

[GPU] Automatically dump lowered mlir module on 'enableObjectDump=true' #366

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

Closed
wants to merge 1 commit into from

Conversation

dchigarev
Copy link
Contributor

mlir::ExecutionEngine(enableObjectDump=true) doesn't actually dump any module, but provides an ability to call ExecutionEngine::dumpToObjectFile(...) later (which only can dump to a file, while we want it to be dumped to std::err in OV integration).

Comment on lines +811 to +814
if (enableObjectDump) {
mod.dump();
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@AndreyPavlenko what do you think, should it be a separate option in OclModuleBuilderOptions? Or maybe we can add a bool parameter to OclModuleBuilder::build(..., bool dump_lowered_module=false)?

Copy link
Contributor

Choose a reason for hiding this comment

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

It should be a separate option, because enableObjectDump is used to dump the compiled object.
It could also be implemented without adding a new option, like here -

builderOpts.pipeline = opts.printIr ? [](OpPassManager &pm) {

@dchigarev
Copy link
Contributor Author

decided to implement this in #362

@dchigarev dchigarev closed this Oct 2, 2024
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.

2 participants