Skip to content

Commit ee39bb6

Browse files
authored
Merge pull request #1193 from pytorch/platform_specific_ci_configs
Different platform versions for each channel
2 parents 623e417 + e181722 commit ee39bb6

File tree

1 file changed

+114
-82
lines changed

1 file changed

+114
-82
lines changed

.circleci/config.yml

Lines changed: 114 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -338,57 +338,57 @@ jobs:
338338
image: ubuntu-2004:current
339339
resource_class: arm.xlarge
340340
steps:
341-
- checkout
342-
- install-cuda:
343-
os: "ubuntu2004"
344-
platform: "sbsa"
345-
cuda-pkg-name: "cuda-toolkit-11-4"
346-
- run:
347-
name: Install openblas
348-
command: sudo apt install libopenblas-dev
349-
- create-env:
350-
os: "ubuntu2004"
351-
platform: "sbsa"
352-
cudnn-version: << pipeline.parameters.cudnn-version >>
353-
cudnn-pkg-name: << pipeline.parameters.cudnn-pkg-name >>
354-
trt-version-short: << pipeline.parameters.trt-version-short >>
355-
trt-pkg-name: << pipeline.parameters.trt-pkg-name >>
356-
bazel-version: << pipeline.parameters.bazel-version >>
357-
bazel-platform: "arm64"
358-
- run:
359-
name: Set python version
360-
command: |
361-
pyenv install << parameters.python-version >>
362-
pyenv global << parameters.python-version >>
363-
- run:
364-
name: Install NGC Torch
365-
environment:
366-
TORCH_INSTALL: https://developer.download.nvidia.com/compute/redist/jp/v<< parameters.jetpack-version >>/pytorch/<< parameters.torch-build >>
367-
command: |
368-
set -e
369-
python3 -m pip install --upgrade pip; python3 -m pip install setuptools wheel; python3 -m pip install expecttest xmlrunner hypothesis aiohttp numpy=='1.19.4' pyyaml scipy=='1.5.3' ninja cython typing_extensions protobuf; export "LD_LIBRARY_PATH=/usr/lib/llvm-8/lib:$LD_LIBRARY_PATH"; python3 -m pip install --upgrade protobuf; python3 -m pip install --no-cache $TORCH_INSTALL
370-
- when:
371-
condition: << parameters.cxx11-abi >>
372-
steps:
373-
- build-py-cxx11-abi:
374-
platform: "sbsa"
375-
- unless:
376-
condition: << parameters.cxx11-abi >>
377-
steps:
378-
- build-py:
379-
platform: "sbsa"
380-
- run:
381-
name: Move to release dir
382-
command: |
383-
mkdir -p /tmp/dist/jetson
384-
cp -r /tmp/dist/builds/* /tmp/dist/jetson
385-
- persist_to_workspace:
386-
root: /tmp/dist
387-
paths:
388-
- jetson
389-
- store_artifacts:
390-
path: /tmp/dist/jetson
391-
destination: aarch64-pyt-jetson
341+
- checkout
342+
- install-cuda:
343+
os: "ubuntu2004"
344+
platform: "sbsa"
345+
cuda-pkg-name: "cuda-toolkit-11-4"
346+
- run:
347+
name: Install openblas
348+
command: sudo apt install libopenblas-dev
349+
- create-env:
350+
os: "ubuntu2004"
351+
platform: "sbsa"
352+
cudnn-version: << pipeline.parameters.cudnn-jetson-version >>
353+
cudnn-pkg-name: << pipeline.parameters.cudnn-jetson-pkg-name >>
354+
trt-version-short: << pipeline.parameters.trt-jetson-version-short >>
355+
trt-pkg-name: << pipeline.parameters.trt-jetson-pkg-name >>
356+
bazel-version: "5.1.1"
357+
bazel-platform: "arm64"
358+
- run:
359+
name: Set python version
360+
command: |
361+
pyenv install << parameters.python-version >>
362+
pyenv global << parameters.python-version >>
363+
- run:
364+
name: Install NGC Torch
365+
environment:
366+
TORCH_INSTALL: https://developer.download.nvidia.com/compute/redist/jp/v<< parameters.jetpack-version >>/pytorch/<< parameters.torch-build >>
367+
command: |
368+
set -e
369+
python3 -m pip install --upgrade pip; python3 -m pip install setuptools wheel; python3 -m pip install expecttest xmlrunner hypothesis aiohttp numpy=='1.19.4' pyyaml scipy=='1.5.3' ninja cython typing_extensions protobuf; export "LD_LIBRARY_PATH=/usr/lib/llvm-8/lib:$LD_LIBRARY_PATH"; python3 -m pip install --upgrade protobuf; python3 -m pip install --no-cache $TORCH_INSTALL
370+
- when:
371+
condition: << parameters.cxx11-abi >>
372+
steps:
373+
- build-py-cxx11-abi:
374+
platform: "sbsa"
375+
- unless:
376+
condition: << parameters.cxx11-abi >>
377+
steps:
378+
- build-py:
379+
platform: "sbsa"
380+
- run:
381+
name: Move to release dir
382+
command: |
383+
mkdir -p /tmp/dist/jetson
384+
cp -r /tmp/dist/builds/* /tmp/dist/jetson
385+
- persist_to_workspace:
386+
root: /tmp/dist
387+
paths:
388+
- jetson
389+
- store_artifacts:
390+
path: /tmp/dist/jetson
391+
destination: aarch64-pyt-jetson
392392

393393
build-x86_64-pyt-release:
394394
parameters:
@@ -407,11 +407,11 @@ jobs:
407407
- create-env:
408408
os: "ubuntu2004"
409409
platform: "x86_64"
410-
cudnn-version: << pipeline.parameters.cudnn-version >>
411-
cudnn-pkg-name: << pipeline.parameters.cudnn-pkg-name >>
412-
trt-version-short: << pipeline.parameters.trt-version-short >>
413-
trt-pkg-name: << pipeline.parameters.trt-pkg-name >>
414-
bazel-version: << pipeline.parameters.bazel-version >>
410+
cudnn-version: << pipeline.parameters.cudnn-release-version >>
411+
cudnn-pkg-name: << pipeline.parameters.cudnn-release-pkg-name >>
412+
trt-version-short: << pipeline.parameters.trt-release-version-short >>
413+
trt-pkg-name: << pipeline.parameters.trt-release-pkg-name >>
414+
bazel-version: "5.1.1"
415415
bazel-platform: "x86_64"
416416
- install-torch-from-index:
417417
torch-build: << parameters.torch-build >>
@@ -454,11 +454,11 @@ jobs:
454454
- create-env:
455455
os: "ubuntu2004"
456456
platform: "x86_64"
457-
cudnn-version: << pipeline.parameters.cudnn-version >>
458-
cudnn-pkg-name: << pipeline.parameters.cudnn-pkg-name >>
459-
trt-version-short: << pipeline.parameters.trt-version-short >>
460-
trt-pkg-name: << pipeline.parameters.trt-pkg-name >>
461-
bazel-version: << pipeline.parameters.bazel-version >>
457+
cudnn-version: << pipeline.parameters.cudnn-nightly-version >>
458+
cudnn-pkg-name: << pipeline.parameters.cudnn-nightly-pkg-name >>
459+
trt-version-short: << pipeline.parameters.trt-nightly-version-short >>
460+
trt-pkg-name: << pipeline.parameters.trt-nightly-pkg-name >>
461+
bazel-version: "5.1.1"
462462
bazel-platform: "x86_64"
463463
- install-torch-from-index:
464464
torch-build: << parameters.torch-build >>
@@ -499,14 +499,14 @@ jobs:
499499
- create-env:
500500
os: "ubuntu2004"
501501
platform: "x86_64"
502-
cudnn-version: << pipeline.parameters.cudnn-version >>
503-
cudnn-pkg-name: << pipeline.parameters.cudnn-pkg-name >>
504-
trt-version-short: << pipeline.parameters.trt-version-short >>
505-
trt-pkg-name: << pipeline.parameters.trt-pkg-name >>
506-
bazel-version: << pipeline.parameters.bazel-version >>
502+
cudnn-version: << pipeline.parameters.cudnn-release-version >>
503+
cudnn-pkg-name: << pipeline.parameters.cudnn-release-pkg-name >>
504+
trt-version-short: << pipeline.parameters.trt-release-version-short >>
505+
trt-pkg-name: << pipeline.parameters.trt-release-pkg-name >>
506+
bazel-version: "5.1.1"
507507
bazel-platform: "x86_64"
508508
- create-py-env:
509-
trt-version-long: << pipeline.parameters.trt-version-long >>
509+
trt-version-long: << pipeline.parameters.trt-release-version-long >>
510510
- install-torch-from-index:
511511
torch-build: << parameters.torch-build >>
512512
torch-build-index: << parameters.torch-build-index >>
@@ -530,7 +530,7 @@ jobs:
530530
steps:
531531
- checkout
532532
- create-py-env:
533-
trt-version-long: << pipeline.parameters.trt-version-long >>
533+
trt-version-long: << pipeline.parameters.trt-release-version-long >>
534534
- install-torch-from-index:
535535
torch-build: << parameters.torch-build >>
536536
torch-build-index: << parameters.torch-build-index >>
@@ -554,7 +554,7 @@ jobs:
554554
steps:
555555
- checkout
556556
- create-py-env:
557-
trt-version-long: << pipeline.parameters.trt-version-long >>
557+
trt-version-long: << pipeline.parameters.trt-nightly-version-long >>
558558
- attach_workspace:
559559
at: /tmp/dist/
560560
- run:
@@ -568,42 +568,74 @@ jobs:
568568
- test-fx
569569

570570
parameters:
571+
# Nightly platform config
571572
torch-nightly-build:
572573
type: string
573574
default: "1.13.0.dev20220715+cu113"
574575
torch-nightly-build-index:
575576
type: string
576577
default: "https://download.pytorch.org/whl/nightly/cu113"
578+
cudnn-nightly-version:
579+
type: string
580+
default: "8.4.0"
581+
cudnn-nightly-pkg-name:
582+
type: string
583+
default: "8.4.0.*-1+cuda11.6"
584+
trt-nightly-version-short:
585+
type: string
586+
default: "8.4.1"
587+
trt-nightly-version-long:
588+
type: string
589+
default: "8.4.1.5"
590+
trt-nightly-pkg-name:
591+
type: string
592+
default: "8.4.1-1+cuda11.6"
593+
594+
# Release platform config
577595
torch-release-build:
578596
type: string
579597
default: "1.11.0+cu113"
580598
torch-release-build-index:
581599
type: string
582600
default: "https://download.pytorch.org/whl/cu113"
583-
torch-jetson-build:
584-
type: string
585-
default: "torch-1.12.0a0+84d1cb9.nv22.4-cp38-cp38-linux_aarch64.whl"
586-
jetpack-version:
587-
type: string
588-
default: "50"
589-
cudnn-version:
601+
cudnn-release-version:
590602
type: string
591603
default: "8.2.1"
592-
cudnn-pkg-name:
604+
cudnn-release-pkg-name:
593605
type: string
594606
default: "8.2.1.*-1+cuda11.3"
595-
trt-version-short:
607+
trt-release-version-short:
596608
type: string
597609
default: "8.2.4"
598-
trt-version-long:
610+
trt-release-version-long:
599611
type: string
600612
default: "8.2.4.2"
601-
trt-pkg-name:
613+
trt-release-pkg-name:
602614
type: string
603615
default: "8.2.4-1+cuda11.4"
604-
bazel-version:
616+
617+
# Jetson platform config
618+
torch-jetson-build:
619+
type: string
620+
default: "torch-1.12.0a0+84d1cb9.nv22.4-cp38-cp38-linux_aarch64.whl"
621+
jetpack-version:
622+
type: string
623+
default: "50"
624+
cudnn-jetson-version:
625+
type: string
626+
default: "8.3.2"
627+
cudnn-jetson-pkg-name:
628+
type: string
629+
default: "8.3.2.*-1+cuda11.5"
630+
trt-jetson-version-short:
631+
type: string
632+
default: "8.4.0"
633+
trt-jetson-version-long:
634+
type: string
635+
default: "8.4.0.6"
636+
trt-jetson-pkg-name:
605637
type: string
606-
default: "5.1.1"
638+
default: "8.4.0-1+cuda11.6"
607639

608640
# Invoke jobs via workflows
609641
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows

0 commit comments

Comments
 (0)