[CI] Put Multi-GPU test suites in separate pipeline (#8286)
* [CI] Put Multi-GPU test suites in separate pipeline * Avoid unset var error in Bash
This commit is contained in:
parent
cbf3a5f918
commit
b14c44ee5e
@ -12,9 +12,14 @@ else
|
|||||||
export BRANCH_NAME=$BUILDKITE_BRANCH
|
export BRANCH_NAME=$BUILDKITE_BRANCH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $BUILDKITE_BRANCH == "master" || $BUILDKITE_BRANCH == "release_"* ]]
|
if [[ -z ${DISABLE_RELEASE:-} ]]
|
||||||
then
|
then
|
||||||
|
if [[ $BUILDKITE_BRANCH == "master" || $BUILDKITE_BRANCH == "release_"* ]]
|
||||||
|
then
|
||||||
is_release_branch=1
|
is_release_branch=1
|
||||||
|
else
|
||||||
|
is_release_branch=0
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
is_release_branch=0
|
is_release_branch=0
|
||||||
fi
|
fi
|
||||||
|
|||||||
29
tests/buildkite/pipeline-mgpu.yml
Normal file
29
tests/buildkite/pipeline-mgpu.yml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
env:
|
||||||
|
DOCKER_CACHE_ECR_ID: "492475357299"
|
||||||
|
DOCKER_CACHE_ECR_REGION: "us-west-2"
|
||||||
|
DISABLE_RELEASE: "1"
|
||||||
|
# Skip uploading artifacts to S3 bucket
|
||||||
|
# Also, don't build all CUDA archs; just build sm_75
|
||||||
|
steps:
|
||||||
|
- block: ":rocket: Run this test job"
|
||||||
|
if: build.pull_request.repository.fork == true
|
||||||
|
#### -------- BUILD --------
|
||||||
|
- label: ":console: Build CUDA"
|
||||||
|
command: "tests/buildkite/build-cuda.sh"
|
||||||
|
key: build-cuda
|
||||||
|
agents:
|
||||||
|
queue: linux-amd64-cpu
|
||||||
|
- label: ":console: Build JVM packages with CUDA"
|
||||||
|
command: "tests/buildkite/build-jvm-packages-gpu.sh"
|
||||||
|
key: build-jvm-packages-gpu
|
||||||
|
agents:
|
||||||
|
queue: linux-amd64-mgpu
|
||||||
|
|
||||||
|
- wait
|
||||||
|
|
||||||
|
#### -------- TEST --------
|
||||||
|
- label: ":console: Test Python package, 4 GPUs"
|
||||||
|
command: "tests/buildkite/test-python-gpu.sh mgpu"
|
||||||
|
key: test-python-mgpu
|
||||||
|
agents:
|
||||||
|
queue: linux-amd64-mgpu
|
||||||
@ -40,11 +40,6 @@ steps:
|
|||||||
key: build-jvm-packages
|
key: build-jvm-packages
|
||||||
agents:
|
agents:
|
||||||
queue: linux-amd64-cpu
|
queue: linux-amd64-cpu
|
||||||
- label: ":console: Build JVM packages with CUDA"
|
|
||||||
command: "tests/buildkite/build-jvm-packages-gpu.sh"
|
|
||||||
key: build-jvm-packages-gpu
|
|
||||||
agents:
|
|
||||||
queue: linux-amd64-mgpu
|
|
||||||
- label: ":console: Build JVM package doc"
|
- label: ":console: Build JVM package doc"
|
||||||
command: "tests/buildkite/build-jvm-doc.sh"
|
command: "tests/buildkite/build-jvm-doc.sh"
|
||||||
key: build-jvm-doc
|
key: build-jvm-doc
|
||||||
@ -69,11 +64,6 @@ steps:
|
|||||||
key: test-python-gpu
|
key: test-python-gpu
|
||||||
agents:
|
agents:
|
||||||
queue: linux-amd64-gpu
|
queue: linux-amd64-gpu
|
||||||
- label: ":console: Test Python package, 4 GPUs"
|
|
||||||
command: "tests/buildkite/test-python-gpu.sh mgpu"
|
|
||||||
key: test-python-mgpu
|
|
||||||
agents:
|
|
||||||
queue: linux-amd64-mgpu
|
|
||||||
- label: ":console: Run Google Tests, 4 GPUs"
|
- label: ":console: Run Google Tests, 4 GPUs"
|
||||||
command: "tests/buildkite/test-cpp-gpu.sh"
|
command: "tests/buildkite/test-cpp-gpu.sh"
|
||||||
key: test-cpp-gpu
|
key: test-cpp-gpu
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user