Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/gc/ExecutionEngine/GPURuntime/ocl/GpuOclRuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,10 @@ OclModuleBuilder::build(const OclRuntime::Ext &ext) {
opts.enablePerfNotificationListener = false;
#endif

if (enableObjectDump) {
mod.dump();
}

Comment on lines +811 to +814
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) {

auto eng = ExecutionEngine::create(mod, opts);
CHECKE(eng, "Failed to create ExecutionEngine!");
eng->get()->registerSymbols(OclRuntime::Exports::symbolMap);
Expand Down