Skip to content

Commit b5474c1

Browse files
committed
Bump CUDA version to 12.3.
1 parent a295f7d commit b5474c1

File tree

1 file changed

+39
-43
lines changed

1 file changed

+39
-43
lines changed

.github/workflows/build_and_test.yml

Lines changed: 39 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,23 @@ jobs:
4040
secrets:
4141
gcloud-service-key: ${{ secrets.GCLOUD_SERVICE_KEY }}
4242

43-
# Disable due to https://github.com/pytorch/xla/issues/8199
44-
# build-torch-with-cuda:
45-
# name: "Build PyTorch with CUDA"
46-
# uses: ./.github/workflows/_build_torch_with_cuda.yml
47-
# needs: get-torch-commit
48-
# with:
49-
# # note that to build a torch wheel with CUDA enabled, we do not need a GPU runner.
50-
# dev-image: us-central1-docker.pkg.dev/tpu-pytorch-releases/docker/development:3.10_cuda_12.1
51-
# torch-commit: ${{needs.get-torch-commit.outputs.torch_commit}}
52-
# runner: linux.24xlarge
43+
build-torch-with-cuda:
44+
name: "Build PyTorch with CUDA"
45+
uses: ./.github/workflows/_build_torch_with_cuda.yml
46+
needs: get-torch-commit
47+
with:
48+
# note that to build a torch wheel with CUDA enabled, we do not need a GPU runner.
49+
dev-image: us-central1-docker.pkg.dev/tpu-pytorch-releases/docker/development:3.10_cuda_12.3
50+
torch-commit: ${{needs.get-torch-commit.outputs.torch_commit}}
51+
runner: linux.24xlarge
5352

54-
# Disable due to https://github.com/pytorch/xla/issues/8199
55-
# build-cuda-plugin:
56-
# name: "Build XLA CUDA plugin"
57-
# uses: ./.github/workflows/_build_plugin.yml
58-
# with:
59-
# dev-image: us-central1-docker.pkg.dev/tpu-pytorch-releases/docker/development:3.10_cuda_12.1
60-
# secrets:
61-
# gcloud-service-key: ${{ secrets.GCLOUD_SERVICE_KEY }}
53+
build-cuda-plugin:
54+
name: "Build XLA CUDA plugin"
55+
uses: ./.github/workflows/_build_plugin.yml
56+
with:
57+
dev-image: us-central1-docker.pkg.dev/tpu-pytorch-releases/docker/development:3.10_cuda_12.3
58+
secrets:
59+
gcloud-service-key: ${{ secrets.GCLOUD_SERVICE_KEY }}
6260

6361
test-python-cpu:
6462
name: "CPU tests"
@@ -72,32 +70,30 @@ jobs:
7270
secrets:
7371
gcloud-service-key: ${{ secrets.GCLOUD_SERVICE_KEY }}
7472

75-
# Disable due to https://github.com/pytorch/xla/issues/8199
76-
# test-cuda:
77-
# name: "GPU tests"
78-
# uses: ./.github/workflows/_test.yml
79-
# needs: [build-torch-xla, build-cuda-plugin, get-torch-commit]
80-
# with:
81-
# dev-image: us-central1-docker.pkg.dev/tpu-pytorch-releases/docker/development:3.10_cuda_12.1
82-
# runner: linux.8xlarge.nvidia.gpu
83-
# timeout-minutes: 300
84-
# collect-coverage: false
85-
# install-cuda-plugin: true
86-
# torch-commit: ${{needs.get-torch-commit.outputs.torch_commit}}
87-
# secrets:
88-
# gcloud-service-key: ${{ secrets.GCLOUD_SERVICE_KEY }}
73+
test-cuda:
74+
name: "GPU tests"
75+
uses: ./.github/workflows/_test.yml
76+
needs: [build-torch-xla, build-cuda-plugin, get-torch-commit]
77+
with:
78+
dev-image: us-central1-docker.pkg.dev/tpu-pytorch-releases/docker/development:3.10_cuda_12.3
79+
runner: linux.8xlarge.nvidia.gpu
80+
timeout-minutes: 300
81+
collect-coverage: false
82+
install-cuda-plugin: true
83+
torch-commit: ${{needs.get-torch-commit.outputs.torch_commit}}
84+
secrets:
85+
gcloud-service-key: ${{ secrets.GCLOUD_SERVICE_KEY }}
8986

90-
# Disable due to https://github.com/pytorch/xla/issues/8199
91-
# test-cuda-with-pytorch-cuda-enabled:
92-
# name: "GPU tests requiring torch CUDA"
93-
# uses: ./.github/workflows/_test_requiring_torch_cuda.yml
94-
# needs: [build-torch-with-cuda, build-torch-xla, build-cuda-plugin, get-torch-commit]
95-
# with:
96-
# dev-image: us-central1-docker.pkg.dev/tpu-pytorch-releases/docker/development:3.10_cuda_12.1
97-
# runner: linux.8xlarge.nvidia.gpu
98-
# timeout-minutes: 300
99-
# collect-coverage: false
100-
# torch-commit: ${{needs.get-torch-commit.outputs.torch_commit}}
87+
test-cuda-with-pytorch-cuda-enabled:
88+
name: "GPU tests requiring torch CUDA"
89+
uses: ./.github/workflows/_test_requiring_torch_cuda.yml
90+
needs: [build-torch-with-cuda, build-torch-xla, build-cuda-plugin, get-torch-commit]
91+
with:
92+
dev-image: us-central1-docker.pkg.dev/tpu-pytorch-releases/docker/development:3.10_cuda_12.3
93+
runner: linux.8xlarge.nvidia.gpu
94+
timeout-minutes: 300
95+
collect-coverage: false
96+
torch-commit: ${{needs.get-torch-commit.outputs.torch_commit}}
10197

10298
test-tpu:
10399
name: "TPU tests"

0 commit comments

Comments
 (0)