Skip to content

[Misc] QD_DUMP_IR dumps to files with the task_id added to the filename#441

Draft
hughperkins wants to merge 2 commits intomainfrom
hp/dump-ir-multiple-tasks
Draft

[Misc] QD_DUMP_IR dumps to files with the task_id added to the filename#441
hughperkins wants to merge 2 commits intomainfrom
hp/dump-ir-multiple-tasks

Conversation

@hughperkins
Copy link
Copy Markdown
Collaborator

… tasks

When a kernel contains multiple top-level for loops, each loop is compiled as a separate offloaded task. Previously all tasks wrote their LLVM IR to the same file (kernel->name + "_llvm.ll"), so only the last task to finish was visible. Use the per-task name instead so each gets its own file.

Made-with: Cursor

Issue: #

Brief Summary

copilot:summary

Walkthrough

copilot:walkthrough

… tasks

When a kernel contains multiple top-level for loops, each loop is compiled
as a separate offloaded task. Previously all tasks wrote their LLVM IR to
the same file (kernel->name + "_llvm.ll"), so only the last task to finish
was visible. Use the per-task name instead so each gets its own file.

Made-with: Cursor
…tiple tasks

Same issue as the _llvm.ll fix: moduleToDumpName returns only the first
function name, so multi-task kernels produce only one dump file. Use new
moduleDumpNames helper to iterate over all defined functions and dump
one file per task.
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.

1 participant