forked from dmlc/xgboost
-
Notifications
You must be signed in to change notification settings - Fork 1
89 lines (84 loc) · 2.99 KB
/
Copy pathcuda13.yml
File metadata and controls
89 lines (84 loc) · 2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: XGBoost CI (CUDA 13)
on: [push, pull_request]
permissions:
contents: read # to fetch code (actions/checkout)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
BRANCH_NAME: >-
${{ github.event.pull_request.number && 'PR-' }}${{ github.event.pull_request.number || github.ref_name }}
jobs:
build-cuda13:
name: Build CUDA 13
runs-on:
- runs-on=${{ github.run_id }}
- runner=linux-amd64-cpu
- tag=cuda13-build-cuda13
steps:
# Restart Docker daemon so that it recognizes the ephemeral disks
- run: sudo systemctl restart docker
- uses: actions/checkout@v4
with:
submodules: "true"
- name: Log into Docker registry (AWS ECR)
run: bash ops/pipeline/login-docker-registry.sh
- run: |
bash ops/pipeline/build-cuda13.sh
- name: Stash files
run: |
python3 ops/pipeline/manage-artifacts.py upload \
--s3-bucket ${{ env.RUNS_ON_S3_BUCKET_CACHE }} \
--prefix cache/${{ github.run_id }}/build-cuda13 \
build/testxgboost ./xgboost python-package/dist/*.whl
test-cpp-cuda13:
name: Google Test (C++) with CUDA 13
needs: [build-cuda13]
runs-on:
- runs-on=${{ github.run_id }}
- runner=linux-amd64-gpu
- tag=cuda13-test-cpp-cuda13
steps:
# Restart Docker daemon so that it recognizes the ephemeral disks
- run: sudo systemctl restart docker
- uses: actions/checkout@v4
with:
submodules: "true"
- name: Log into Docker registry (AWS ECR)
run: bash ops/pipeline/login-docker-registry.sh
- name: Unstash gtest
run: |
python3 ops/pipeline/manage-artifacts.py download \
--s3-bucket ${{ env.RUNS_ON_S3_BUCKET_CACHE }} \
--prefix cache/${{ github.run_id }}/build-cuda13 \
--dest-dir build \
testxgboost
chmod +x build/testxgboost
- run: |
bash ops/pipeline/test-cpp-cuda13.sh
test-python-cuda13:
name: Run Python tests with CUDA 13
needs: [build-cuda13]
runs-on:
- runs-on=${{ github.run_id }}
- runner=linux-amd64-gpu
- tag=cuda13-test-python-cuda13
steps:
# Restart Docker daemon so that it recognizes the ephemeral disks
- run: sudo systemctl restart docker
- uses: actions/checkout@v4
with:
submodules: "true"
- name: Log into Docker registry (AWS ECR)
run: bash ops/pipeline/login-docker-registry.sh
- name: Unstash Python wheel
run: |
python3 ops/pipeline/manage-artifacts.py download \
--s3-bucket ${{ env.RUNS_ON_S3_BUCKET_CACHE }} \
--prefix cache/${{ github.run_id }}/build-cuda13 \
--dest-dir wheelhouse \
*.whl xgboost
mv -v wheelhouse/xgboost .
chmod +x ./xgboost
- name: Run Python tests
run: bash ops/pipeline/test-python-wheel-cuda13.sh