Skip to content

Add ROCm backend support to compiler pass pipeline#2741

Open
gbaraldi wants to merge 1 commit intomainfrom
gb/rocm-backend-support
Open

Add ROCm backend support to compiler pass pipeline#2741
gbaraldi wants to merge 1 commit intomainfrom
gb/rocm-backend-support

Conversation

@gbaraldi
Copy link
Copy Markdown
Collaborator

Summary

  • Treat the "rocm" backend like "tpu" for raising passes (force raise = true)
  • Route "rocm" through the CPU-style kernel/JIT lowering path alongside "cpu" and "tpu"

Test plan

  • Verify compilation with ROCm backend uses correct pass pipeline
  • Ensure existing CPU, TPU, and GPU backends are unaffected

🤖 Generated with Claude Code

Treat the "rocm" backend like "tpu" for raising passes, and like
"cpu"/"tpu" for kernel/JIT lowering so that the ROCm backend goes
through the correct pass pipeline.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Comment thread src/Compiler.jl
# checking whether the user set an explicit list of passes, or chose
# `raise=true` to use the default passes.
raise = compile_options.raise
if backend == "tpu" && raise isa Bool
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

add an issue for us to separately support this natively post-deadline

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