Skip to content

Add g++ to Docker image for torch.compile - #658

Merged
wesselvannierop merged 1 commit into
mainfrom
fix/dockerfile-gxx
Oct 19, 2026
Merged

wesselvannierop merged 1 commit into
mainfrom
fix/dockerfile-gxx

Conversation

@wesselvannierop

@wesselvannierop wesselvannierop commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

The image has no C++ compiler, so on the torch backend any jitted zea op (the default) fails with InvalidCxxCompiler: No working C++ compiler found from inductor. CI's ubuntu runners ship g++, so this only shows up in the image.

Adds g++ to the apt packages. Verified in the dev container: tests/test_operations.py::test_companding failed on torch without g++ and passes with it.

Summary by CodeRabbit

  • Chores
    • Updated the container build environment with additional compiler support.

@wesselvannierop
wesselvannierop requested review from a team and tristan-deep and removed request for a team October 19, 2026 09:40
@wesselvannierop wesselvannierop added the dev Workflows, docker, etc. label Oct 19, 2026
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 66fcd0a4-ba11-4233-9c81-9f216c56a237
📥 Commits

Reviewing files that changed from the base of the PR and between d700872 and 90ca883.

📒 Files selected for processing: 1
  • Dockerfile

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

Walkthrough

The Dockerfile now installs g++ through apt-get alongside the existing system packages. Other package installation steps remain unchanged.

Changes

Docker build

Layer / File(s) Summary
Install g++
Dockerfile
The apt-get install package list now includes g++. Existing packages and cleanup steps remain unchanged.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~3 minutes

Merge Risk: ⚪ Minimal · up to 90ca8

The image gains g++ for torch-compiled operations, with the existing package-install flow unchanged. No actionable merge-blocking risk is evident.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: adding g++ to the Docker image to support torch.compile.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@tristan-deep tristan-deep left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice one!

@wesselvannierop
wesselvannierop merged commit 1664836 into main Oct 19, 2026
15 checks passed
@wesselvannierop
wesselvannierop deleted the fix/dockerfile-gxx branch October 19, 2026 15:05
@tristan-deep tristan-deep mentioned this pull request Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev Workflows, docker, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants