Skip to content

Add support for building PyTorch/XLA using clang. #9059

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

Merged
merged 1 commit into from
Apr 30, 2025

Conversation

zhanyong-wan
Copy link
Collaborator

@zhanyong-wan zhanyong-wan commented Apr 29, 2025

This is step 1 for supporting clang. We still need to fix some incompatibilities for the clang build to succeed.

With this change, one can add --config=clang to the bazel command line to select clang (as opposed to gcc) as the C/C++ compiler when building PyTorch/XLA.

We select clang-17 as that's the versioned installed in the PyTorch/XLA dev container.

#9061

@zhanyong-wan zhanyong-wan requested a review from qihqi April 29, 2025 23:40
@zhanyong-wan zhanyong-wan enabled auto-merge (squash) April 29, 2025 23:40
@zhanyong-wan zhanyong-wan merged commit a7c3e85 into pytorch:master Apr 30, 2025
24 checks passed
@zhanyong-wan zhanyong-wan deleted the clang branch April 30, 2025 15:06
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.

3 participants