Skip to content

Commit a46615f

Browse files
committed
Use index-url rather then extra-index-url
1 parent bf7fd30 commit a46615f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/test_linux_job.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
script: |
4949
conda create --yes --quiet -n test python=3.8
5050
conda activate test
51-
python3 -m pip install --extra-index-url https://download.pytorch.org/whl/nightly/cpu --pre torch
51+
python3 -m pip install --index-url https://download.pytorch.org/whl/nightly/cpu --pre torch
5252
# Can import pytorch
5353
python3 -c 'import torch'
5454
test-gpu:
@@ -57,24 +57,24 @@ jobs:
5757
matrix:
5858
runner_type: ["linux.4xlarge.nvidia.gpu", "linux.g5.4xlarge.nvidia.gpu"]
5959
with:
60-
job-name: "linux-py3.8-cu116"
60+
job-name: "linux-py3.8-cu121"
6161
runner: ${{ matrix.runner_type }}
6262
test-infra-repository: ${{ github.repository }}
6363
test-infra-ref: ${{ github.ref }}
6464
submodules: ${{ 'true' }}
6565
gpu-arch-type: cuda
66-
gpu-arch-version: "11.6"
66+
gpu-arch-version: "12.1"
6767
timeout: 60
6868
script: |
6969
conda create --yes --quiet -n test python=3.8
7070
conda activate test
71-
python3 -m pip install --extra-index-url https://download.pytorch.org/whl/nightly/cu116 --pre torch
71+
python3 -m pip install --index-url https://download.pytorch.org/whl/nightly/cu121 --pre torch
7272
# Can import pytorch, cuda is available
7373
python3 -c 'import torch;cuda_avail = torch.cuda.is_available();print("CUDA available: " + str(cuda_avail));assert(cuda_avail)'
7474
python3 -c 'import torch;t = torch.ones([2,2], device="cuda:0");print(t);print("tensor device:" + str(t.device))'
7575
nvidia-smi
76-
nvcc --version | grep "cuda_11.6"
77-
[[ "${CUDA_HOME}" == "/usr/local/cuda-11.6" ]] || exit 1
76+
nvcc --version | grep "cuda_12.1"
77+
[[ "${CUDA_HOME}" == "/usr/local/cuda-12.1" ]] || exit 1
7878
test-docker-image:
7979
uses: ./.github/workflows/linux_job.yml
8080
with:

tools/pkg-helpers/pytorch_pkg_helpers/wheel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_pytorch_pip_install_command(
2424
if channel == "nightly":
2525
pip_install += " --pre"
2626
extra_index = f"https://download.pytorch.org/whl/{channel}/{gpu_arch_version}"
27-
return [f"export PIP_INSTALL_TORCH='{pip_install} --extra-index-url {extra_index}'"]
27+
return [f"export PIP_INSTALL_TORCH='{pip_install} --index-url {extra_index}'"]
2828

2929

3030
def get_pytorch_s3_bucket_path(

0 commit comments

Comments
 (0)