Unverified Commit a3fd0595 authored by Jinjing Zhou's avatar Jinjing Zhou Committed by GitHub
Browse files

Fix jenkins (#3875)

* try fix

* try fix

* try fix

* try fix

* Revert "try fix"

This reverts commit a3fa0b1e9c0ab892cc3a22acf3770903db8b14a7.

* try fix shared memory

* try fix shared memory

* try fix image version

* fix
parent 480a4ae3
...@@ -152,9 +152,10 @@ pipeline { ...@@ -152,9 +152,10 @@ pipeline {
} }
stage('Bot Instruction') { stage('Bot Instruction') {
agent { agent {
kubernetes { docker {
yamlFile 'docker/pods/ci-lint.yaml' label 'linux-benchmark-node'
defaultContainer 'dgl-ci-lint' image 'dgllib/dgl-ci-lint'
alwaysPull true
} }
} }
steps { steps {
...@@ -174,9 +175,10 @@ pipeline { ...@@ -174,9 +175,10 @@ pipeline {
stages { stages {
stage('Lint Check') { stage('Lint Check') {
agent { agent {
kubernetes { docker {
yamlFile 'docker/pods/ci-lint.yaml' label "linux-cpu-node"
defaultContainer 'dgl-ci-lint' image "dgllib/dgl-ci-lint"
alwaysPull true
} }
} }
steps { steps {
...@@ -194,9 +196,11 @@ pipeline { ...@@ -194,9 +196,11 @@ pipeline {
parallel { parallel {
stage('CPU Build') { stage('CPU Build') {
agent { agent {
kubernetes { docker {
yamlFile 'docker/pods/ci-compile-cpu.yaml' label "linux-cpu-node"
defaultContainer 'dgl-ci-cpu-compile' image "dgllib/dgl-ci-cpu:cu101_v220217"
args "-u root"
alwaysPull true
} }
} }
steps { steps {
...@@ -210,9 +214,11 @@ pipeline { ...@@ -210,9 +214,11 @@ pipeline {
} }
stage('GPU Build') { stage('GPU Build') {
agent { agent {
kubernetes { docker {
yamlFile 'docker/pods/ci-compile-gpu.yaml' label "linux-cpu-node"
defaultContainer 'dgl-ci-gpu-compile' image "dgllib/dgl-ci-gpu:cu101_v220217"
args "-u root"
alwaysPull true
} }
} }
steps { steps {
...@@ -245,9 +251,10 @@ pipeline { ...@@ -245,9 +251,10 @@ pipeline {
parallel { parallel {
stage('C++ CPU') { stage('C++ CPU') {
agent { agent {
kubernetes { docker {
yamlFile 'docker/pods/ci-cpu.yaml' label "linux-cpu-node"
defaultContainer 'dgl-ci-cpu' image "dgllib/dgl-ci-cpu:cu101_v220217"
alwaysPull true
} }
} }
steps { steps {
...@@ -261,9 +268,11 @@ pipeline { ...@@ -261,9 +268,11 @@ pipeline {
} }
stage('C++ GPU') { stage('C++ GPU') {
agent { agent {
kubernetes { docker {
yamlFile 'docker/pods/ci-gpu.yaml' label "linux-gpu-node"
defaultContainer 'dgl-ci-gpu' image "dgllib/dgl-ci-gpu:cu101_v220217"
args "--runtime nvidia"
alwaysPull true
} }
} }
steps { steps {
...@@ -288,9 +297,10 @@ pipeline { ...@@ -288,9 +297,10 @@ pipeline {
} }
stage('Tensorflow CPU') { stage('Tensorflow CPU') {
agent { agent {
kubernetes { docker {
yamlFile 'docker/pods/ci-cpu.yaml' label "linux-cpu-node"
defaultContainer 'dgl-ci-cpu' image "dgllib/dgl-ci-cpu:cu101_v220217"
alwaysPull true
} }
} }
stages { stages {
...@@ -308,9 +318,11 @@ pipeline { ...@@ -308,9 +318,11 @@ pipeline {
} }
stage('Tensorflow GPU') { stage('Tensorflow GPU') {
agent { agent {
kubernetes { docker {
yamlFile 'docker/pods/ci-gpu.yaml' label "linux-gpu-node"
defaultContainer 'dgl-ci-gpu' image "dgllib/dgl-ci-gpu:cu101_v220217"
args "--runtime nvidia"
alwaysPull true
} }
} }
stages { stages {
...@@ -328,9 +340,11 @@ pipeline { ...@@ -328,9 +340,11 @@ pipeline {
} }
stage('Torch CPU') { stage('Torch CPU') {
agent { agent {
kubernetes { docker {
yamlFile 'docker/pods/ci-cpu.yaml' label "linux-cpu-node"
defaultContainer 'dgl-ci-cpu' image "dgllib/dgl-ci-cpu:cu101_v220217"
args "--shm-size=4gb"
alwaysPull true
} }
} }
stages { stages {
...@@ -378,9 +392,11 @@ pipeline { ...@@ -378,9 +392,11 @@ pipeline {
} }
stage('Torch GPU') { stage('Torch GPU') {
agent { agent {
kubernetes { docker {
yamlFile 'docker/pods/ci-gpu.yaml' label "linux-gpu-node"
defaultContainer 'dgl-ci-gpu' image "dgllib/dgl-ci-gpu:cu101_v220217"
args "--runtime nvidia --shm-size=8gb"
alwaysPull true
} }
} }
stages { stages {
...@@ -404,9 +420,10 @@ pipeline { ...@@ -404,9 +420,10 @@ pipeline {
} }
stage('MXNet CPU') { stage('MXNet CPU') {
agent { agent {
kubernetes { docker {
yamlFile 'docker/pods/ci-cpu.yaml' label "linux-cpu-node"
defaultContainer 'dgl-ci-cpu' image "dgllib/dgl-ci-cpu:cu101_v220217"
alwaysPull true
} }
} }
stages { stages {
...@@ -429,9 +446,11 @@ pipeline { ...@@ -429,9 +446,11 @@ pipeline {
} }
stage('MXNet GPU') { stage('MXNet GPU') {
agent { agent {
kubernetes { docker {
yamlFile 'docker/pods/ci-gpu.yaml' label "linux-gpu-node"
defaultContainer 'dgl-ci-gpu' image "dgllib/dgl-ci-gpu:cu101_v220217"
args "--runtime nvidia"
alwaysPull true
} }
} }
stages { stages {
......
...@@ -178,7 +178,7 @@ def start_torch_adam_worker(rank, world_size, weight, has_zero_grad=False, ...@@ -178,7 +178,7 @@ def start_torch_adam_worker(rank, world_size, weight, has_zero_grad=False,
th.distributed.barrier() th.distributed.barrier()
@unittest.skipIf(os.name == 'nt', reason='Do not support windows yet') @unittest.skipIf(os.name == 'nt', reason='Do not support windows yet')
@unittest.skipIf(F.ctx().type == 'gpu', reason='cpu only test') @unittest.skipIf(F.ctx().type != 'cpu', reason='cpu only test')
@pytest.mark.parametrize("num_workers", [2, 4]) @pytest.mark.parametrize("num_workers", [2, 4])
def test_multiprocess_cpu_sparse_adam(num_workers): def test_multiprocess_cpu_sparse_adam(num_workers):
backend = 'gloo' backend = 'gloo'
...@@ -282,7 +282,7 @@ def test_multiprocess_sparse_adam_cuda_tensor(num_workers): ...@@ -282,7 +282,7 @@ def test_multiprocess_sparse_adam_cuda_tensor(num_workers):
assert F.allclose(dgl_weight, torch_weight) assert F.allclose(dgl_weight, torch_weight)
@unittest.skipIf(os.name == 'nt', reason='Do not support windows yet') @unittest.skipIf(os.name == 'nt', reason='Do not support windows yet')
@unittest.skipIf(F.ctx().type == 'gpu', reason='cpu only test') @unittest.skipIf(F.ctx().type != 'cpu', reason='cpu only test')
@pytest.mark.parametrize("num_workers", [2, 4]) @pytest.mark.parametrize("num_workers", [2, 4])
def test_multiprocess_sparse_adam_cpu_zero_step(num_workers): def test_multiprocess_sparse_adam_cpu_zero_step(num_workers):
backend = 'gloo' backend = 'gloo'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment