Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a85708c
Create azure-pipelines.yml
suo May 10, 2019
ef9ca9a
Update azure-pipelines.yml for Azure Pipelines
suo May 11, 2019
8c6ea6c
Update azure-pipelines.yml for Azure Pipelines
suo May 11, 2019
09696a6
Update azure-pipelines.yml for Azure Pipelines
suo May 11, 2019
6e4135f
Update azure-pipelines.yml for Azure Pipelines
suo May 11, 2019
954586d
Update azure-pipelines.yml for Azure Pipelines
suo May 11, 2019
cb7eaa4
Update azure-pipelines.yml for Azure Pipelines
suo May 11, 2019
02228a3
Update azure-pipelines.yml for Azure Pipelines
suo May 13, 2019
ad57c89
Update azure-pipelines.yml for Azure Pipelines
suo May 13, 2019
f7580df
Update azure-pipelines.yml for Azure Pipelines
suo May 13, 2019
e097876
Update azure-pipelines.yml for Azure Pipelines
suo May 13, 2019
440b331
Update azure-pipelines.yml for Azure Pipelines
suo May 13, 2019
0685c19
foo
suo May 13, 2019
33703d0
Update azure-pipelines.yml for Azure Pipelines
suo May 13, 2019
c40a88a
Update azure-pipelines.yml for Azure Pipelines
suo May 13, 2019
869b612
Update azure-pipelines.yml for Azure Pipelines
suo May 13, 2019
8540e15
Update azure-pipelines.yml for Azure Pipelines
suo May 13, 2019
c8f15f2
Update azure-pipelines.yml for Azure Pipelines
suo May 13, 2019
ba4b0f5
Update azure-pipelines.yml for Azure Pipelines
suo May 13, 2019
78a3cf5
Update azure-pipelines.yml for Azure Pipelines
suo May 13, 2019
b1f90a4
Update azure-pipelines.yml for Azure Pipelines
suo May 13, 2019
8cd6c88
Update azure-pipelines.yml for Azure Pipelines
suo May 13, 2019
306a9ae
Update azure-pipelines.yml for Azure Pipelines
suo May 13, 2019
3fdec33
Update azure-pipelines.yml for Azure Pipelines
suo May 14, 2019
f48d8e7
Update azure-pipelines.yml for Azure Pipelines
suo May 14, 2019
0442053
Update azure-pipelines.yml for Azure Pipelines
suo May 14, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .jenkins/pytorch/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

# shellcheck disable=SC2034
COMPACT_JOB_NAME="${BUILD_ENVIRONMENT}"
echo "Compact job name: $COMPACT_JOB_NAME"

source "$(dirname "${BASH_SOURCE[0]}")/common.sh"

Expand Down
82 changes: 82 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
- master

jobs:
- job:
pool:
name: "Default"
demands: "gpu"
displayName: "Build and Test"
container:
image: pytorch.azurecr.io/tmp-lpmzxocpdogrtxhbleawtkoqukyezwwv:latest
endpoint: pytorch
options: -u 0 --runtime=nvidia
# image: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-xenial-cuda9-cudnn7-py3:300
# endpoint: aws_docker
# options: -u 0 --runtime=nvidia
timeoutInMinutes: 360
steps:
- checkout: self
submodules: "true"
clean: "all"
- bash: |
set -x
id=$(id -u)
sudo chown -R $id:$id /opt/conda
# we should probably remove the sudo -E; this is because the container user
# azure creates is not the same as the docker container owner, and chown -R'ing
# everything takes a long time.
.jenkins/pytorch/build.sh
env:
BUILD_ENVIRONMENT: pytorch-linux-xenial-cuda9-cudnn7-py3-build
SCCACHE_BUCKET: "ossci-compiler-cache-circleci-v2"
AWS_ACCESS_KEY_ID: $(SCCACHE_ACCESS_KEY_ID)
AWS_SECRET_ACCESS_KEY: $(SCCACHE_SECRET)
TORCH_CUDA_ARCH_LIST: 5.2
displayName: 'Build'
- bash: |
set +x
set -e
export PATH="/home/suo_azpcontainer/.local/bin:$PATH"
.jenkins/pytorch/test.sh
env:
BUILD_ENVIRONMENT: pytorch-linux-xenial-cuda9-cudnn7-py3-test
USE_CUDA_DOCKER_RUNTIME: 1
displayName: 'Test'

# jobs:
# - job:
# pool: "Default"
# displayName: "Build and Test"
# container:
# image: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/pytorch-linux-trusty-py3.5:300
# endpoint: aws_docker
# options: -u 0
# timeoutInMinutes: 120
# steps:
# - checkout: self
# submodules: "true"
# - bash: |
# set +x
# sudo chown -R azureuser_azpcontainer:azureuser_azpcontainer /usr/local
# sudo chown -R azureuser_azpcontainer:azureuser_azpcontainer /opt/python
# .jenkins/pytorch/build.sh
# env:
# BUILD_ENVIRONMENT: pytorch-linux-trusty-py3.5-build
# SCCACHE_BUCKET: "ossci-compiler-cache-circleci-v2"
# AWS_ACCESS_KEY_ID: $(SCCACHE_ACCESS_KEY_ID)
# AWS_SECRET_ACCESS_KEY: $(SCCACHE_SECRET)
# displayName: 'Build'
# - bash: |
# set +x
# set -e
# export PATH="/home/azureuser_azpcontainer/.local/bin:$PATH"
# .jenkins/pytorch/test.sh
# env:
# BUILD_ENVIRONMENT: pytorch-linux-trusty-py3.5-test
# displayName: 'Test'