Skip to content

Build PyTorch/XLA with the same version of CUDA as PyTorch #8700

@tengyifei

Description

@tengyifei

As of 2.6, PyTorch is building and testing with CUDA 12.4 and 12.6: pytorch/pytorch#138609

We have tests that interop PyTorch/XLA GPU with a CUDA PyTorch build:

xla/test/test_operations.py

Lines 165 to 168 in 065cb5b

def onlyIfTorchSupportsCUDA(fn):
return unittest.skipIf(
not torch.cuda.is_available(), reason="requires PyTorch CUDA support")(
fn)

Therefore, it's good to avoid CUDA version skew between PyTorch/XLA and upstream PyTorch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions