|
1 |
| -name: CUDA Version |
| 1 | +# name: CUDA Version |
2 | 2 |
|
3 |
| -on: |
4 |
| - push: |
5 |
| - branches: |
6 |
| - - master |
7 |
| - pull_request: |
8 |
| - branches: |
9 |
| - - master |
| 3 | +# on: |
| 4 | +# push: |
| 5 | +# branches: |
| 6 | +# - master |
| 7 | +# pull_request: |
| 8 | +# branches: |
| 9 | +# - master |
10 | 10 |
|
11 |
| -env: |
12 |
| - github_actions: 'true' |
13 |
| - os_name: linux |
14 |
| - conda_env: test-env |
| 11 | +# env: |
| 12 | +# github_actions: 'true' |
| 13 | +# os_name: linux |
| 14 | +# conda_env: test-env |
15 | 15 |
|
16 |
| -jobs: |
17 |
| - test: |
18 |
| - name: ${{ matrix.task }} ${{ matrix.cuda_version }} ${{ matrix.method }} (linux, ${{ matrix.compiler }}, Python ${{ matrix.python_version }}) |
19 |
| - runs-on: [self-hosted, linux] |
20 |
| - timeout-minutes: 60 |
21 |
| - strategy: |
22 |
| - fail-fast: false |
23 |
| - matrix: |
24 |
| - include: |
25 |
| - - method: source |
26 |
| - compiler: gcc |
27 |
| - python_version: "3.8" |
28 |
| - cuda_version: "11.7.1" |
29 |
| - task: cuda |
30 |
| - - method: pip |
31 |
| - compiler: clang |
32 |
| - python_version: "3.9" |
33 |
| - cuda_version: "10.0" |
34 |
| - task: cuda |
35 |
| - - method: wheel |
36 |
| - compiler: gcc |
37 |
| - python_version: "3.10" |
38 |
| - cuda_version: "9.0" |
39 |
| - task: cuda |
40 |
| - - method: source |
41 |
| - compiler: gcc |
42 |
| - python_version: "3.8" |
43 |
| - cuda_version: "11.7.1" |
44 |
| - task: cuda_exp |
45 |
| - - method: pip |
46 |
| - compiler: clang |
47 |
| - python_version: "3.9" |
48 |
| - cuda_version: "10.0" |
49 |
| - task: cuda_exp |
50 |
| - steps: |
51 |
| - - name: Setup or update software on host machine |
52 |
| - run: | |
53 |
| - sudo apt-get update |
54 |
| - sudo apt-get install --no-install-recommends -y \ |
55 |
| - apt-transport-https \ |
56 |
| - ca-certificates \ |
57 |
| - curl \ |
58 |
| - git \ |
59 |
| - gnupg-agent \ |
60 |
| - lsb-release \ |
61 |
| - software-properties-common |
62 |
| - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
63 |
| - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" -y |
64 |
| - curl -sL https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - |
65 |
| - curl -sL https://nvidia.github.io/nvidia-docker/$(. /etc/os-release;echo $ID$VERSION_ID)/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list |
66 |
| - sudo apt-get update |
67 |
| - sudo apt-get install --no-install-recommends -y \ |
68 |
| - containerd.io \ |
69 |
| - docker-ce \ |
70 |
| - docker-ce-cli \ |
71 |
| - nvidia-docker2 |
72 |
| - sudo chmod a+rw /var/run/docker.sock |
73 |
| - sudo systemctl restart docker |
74 |
| - - name: Remove old folder with repository |
75 |
| - run: sudo rm -rf $GITHUB_WORKSPACE |
76 |
| - - name: Checkout repository |
77 |
| - uses: actions/checkout@v1 |
78 |
| - with: |
79 |
| - fetch-depth: 5 |
80 |
| - submodules: true |
81 |
| - - name: Setup and run tests |
82 |
| - run: | |
83 |
| - export ROOT_DOCKER_FOLDER=/LightGBM |
84 |
| - cat > docker.env <<EOF |
85 |
| - GITHUB_ACTIONS=${{ env.github_actions }} |
86 |
| - OS_NAME=${{ env.os_name }} |
87 |
| - COMPILER=${{ matrix.compiler }} |
88 |
| - TASK=${{ matrix.task }} |
89 |
| - METHOD=${{ matrix.method }} |
90 |
| - CONDA_ENV=${{ env.conda_env }} |
91 |
| - PYTHON_VERSION=${{ matrix.python_version }} |
92 |
| - BUILD_DIRECTORY=$ROOT_DOCKER_FOLDER |
93 |
| - LGB_VER=$(head -n 1 VERSION.txt) |
94 |
| - EOF |
95 |
| - cat > docker-script.sh <<EOF |
96 |
| - export CONDA=\$HOME/miniforge |
97 |
| - export PATH=\$CONDA/bin:\$PATH |
98 |
| - nvidia-smi |
99 |
| - $ROOT_DOCKER_FOLDER/.ci/setup.sh || exit -1 |
100 |
| - $ROOT_DOCKER_FOLDER/.ci/test.sh || exit -1 |
101 |
| - EOF |
102 |
| - cuda_version="${{ matrix.cuda_version }}" |
103 |
| - cuda_major=${cuda_version%%.*} |
104 |
| - docker_img="nvcr.io/nvidia/cuda:${cuda_version}-devel" |
105 |
| - if [[ ${cuda_major} -gt 10 ]]; then |
106 |
| - docker_img="${docker_img}-ubuntu$(lsb_release -rs)" |
107 |
| - fi |
108 |
| - docker run --env-file docker.env -v "$GITHUB_WORKSPACE":"$ROOT_DOCKER_FOLDER" --rm --gpus all "$docker_img" /bin/bash $ROOT_DOCKER_FOLDER/docker-script.sh |
109 |
| - all-successful: |
110 |
| - # https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert |
111 |
| - runs-on: ubuntu-latest |
112 |
| - needs: [test] |
113 |
| - steps: |
114 |
| - - name: Note that all tests succeeded |
115 |
| - run: echo "🎉" |
| 16 | +# jobs: |
| 17 | +# test: |
| 18 | +# name: ${{ matrix.task }} ${{ matrix.cuda_version }} ${{ matrix.method }} (linux, ${{ matrix.compiler }}, Python ${{ matrix.python_version }}) |
| 19 | +# runs-on: [self-hosted, linux] |
| 20 | +# timeout-minutes: 60 |
| 21 | +# strategy: |
| 22 | +# fail-fast: false |
| 23 | +# matrix: |
| 24 | +# include: |
| 25 | +# - method: source |
| 26 | +# compiler: gcc |
| 27 | +# python_version: "3.8" |
| 28 | +# cuda_version: "11.7.1" |
| 29 | +# task: cuda |
| 30 | +# - method: pip |
| 31 | +# compiler: clang |
| 32 | +# python_version: "3.9" |
| 33 | +# cuda_version: "10.0" |
| 34 | +# task: cuda |
| 35 | +# - method: wheel |
| 36 | +# compiler: gcc |
| 37 | +# python_version: "3.10" |
| 38 | +# cuda_version: "9.0" |
| 39 | +# task: cuda |
| 40 | +# - method: source |
| 41 | +# compiler: gcc |
| 42 | +# python_version: "3.8" |
| 43 | +# cuda_version: "11.7.1" |
| 44 | +# task: cuda_exp |
| 45 | +# - method: pip |
| 46 | +# compiler: clang |
| 47 | +# python_version: "3.9" |
| 48 | +# cuda_version: "10.0" |
| 49 | +# task: cuda_exp |
| 50 | +# steps: |
| 51 | +# - name: Setup or update software on host machine |
| 52 | +# run: | |
| 53 | +# sudo apt-get update |
| 54 | +# sudo apt-get install --no-install-recommends -y \ |
| 55 | +# apt-transport-https \ |
| 56 | +# ca-certificates \ |
| 57 | +# curl \ |
| 58 | +# git \ |
| 59 | +# gnupg-agent \ |
| 60 | +# lsb-release \ |
| 61 | +# software-properties-common |
| 62 | +# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
| 63 | +# sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" -y |
| 64 | +# curl -sL https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - |
| 65 | +# curl -sL https://nvidia.github.io/nvidia-docker/$(. /etc/os-release;echo $ID$VERSION_ID)/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list |
| 66 | +# sudo apt-get update |
| 67 | +# sudo apt-get install --no-install-recommends -y \ |
| 68 | +# containerd.io \ |
| 69 | +# docker-ce \ |
| 70 | +# docker-ce-cli \ |
| 71 | +# nvidia-docker2 |
| 72 | +# sudo chmod a+rw /var/run/docker.sock |
| 73 | +# sudo systemctl restart docker |
| 74 | +# - name: Remove old folder with repository |
| 75 | +# run: sudo rm -rf $GITHUB_WORKSPACE |
| 76 | +# - name: Checkout repository |
| 77 | +# uses: actions/checkout@v1 |
| 78 | +# with: |
| 79 | +# fetch-depth: 5 |
| 80 | +# submodules: true |
| 81 | +# - name: Setup and run tests |
| 82 | +# run: | |
| 83 | +# export ROOT_DOCKER_FOLDER=/LightGBM |
| 84 | +# cat > docker.env <<EOF |
| 85 | +# GITHUB_ACTIONS=${{ env.github_actions }} |
| 86 | +# OS_NAME=${{ env.os_name }} |
| 87 | +# COMPILER=${{ matrix.compiler }} |
| 88 | +# TASK=${{ matrix.task }} |
| 89 | +# METHOD=${{ matrix.method }} |
| 90 | +# CONDA_ENV=${{ env.conda_env }} |
| 91 | +# PYTHON_VERSION=${{ matrix.python_version }} |
| 92 | +# BUILD_DIRECTORY=$ROOT_DOCKER_FOLDER |
| 93 | +# LGB_VER=$(head -n 1 VERSION.txt) |
| 94 | +# EOF |
| 95 | +# cat > docker-script.sh <<EOF |
| 96 | +# export CONDA=\$HOME/miniforge |
| 97 | +# export PATH=\$CONDA/bin:\$PATH |
| 98 | +# nvidia-smi |
| 99 | +# $ROOT_DOCKER_FOLDER/.ci/setup.sh || exit -1 |
| 100 | +# $ROOT_DOCKER_FOLDER/.ci/test.sh || exit -1 |
| 101 | +# EOF |
| 102 | +# cuda_version="${{ matrix.cuda_version }}" |
| 103 | +# cuda_major=${cuda_version%%.*} |
| 104 | +# docker_img="nvcr.io/nvidia/cuda:${cuda_version}-devel" |
| 105 | +# if [[ ${cuda_major} -gt 10 ]]; then |
| 106 | +# docker_img="${docker_img}-ubuntu$(lsb_release -rs)" |
| 107 | +# fi |
| 108 | +# docker run --env-file docker.env -v "$GITHUB_WORKSPACE":"$ROOT_DOCKER_FOLDER" --rm --gpus all "$docker_img" /bin/bash $ROOT_DOCKER_FOLDER/docker-script.sh |
| 109 | +# all-successful: |
| 110 | +# # https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert |
| 111 | +# runs-on: ubuntu-latest |
| 112 | +# needs: [test] |
| 113 | +# steps: |
| 114 | +# - name: Note that all tests succeeded |
| 115 | +# run: echo "🎉" |
0 commit comments