".github/git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "226e7f7de8358161072524f4f91ed8366a1dead6"
Unverified Commit a77260f0 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[ci] bump CUDA version from 11.4.0 to 11.4.2 at CI (#4628)

* [ci] bump CUDA version from 11.4.0 to 11.4.2 at CI

* Update cuda.yml
parent f8010d61
...@@ -26,7 +26,7 @@ jobs: ...@@ -26,7 +26,7 @@ jobs:
- method: source - method: source
compiler: gcc compiler: gcc
python_version: 3.7 python_version: 3.7
cuda_version: "11.4.0" cuda_version: "11.4.2"
- method: pip - method: pip
compiler: clang compiler: clang
python_version: 3.8 python_version: 3.8
...@@ -45,6 +45,7 @@ jobs: ...@@ -45,6 +45,7 @@ jobs:
curl \ curl \
git \ git \
gnupg-agent \ gnupg-agent \
lsb-release \
software-properties-common software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" -y sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" -y
...@@ -86,7 +87,13 @@ jobs: ...@@ -86,7 +87,13 @@ jobs:
$ROOT_DOCKER_FOLDER/.ci/setup.sh || exit -1 $ROOT_DOCKER_FOLDER/.ci/setup.sh || exit -1
$ROOT_DOCKER_FOLDER/.ci/test.sh || exit -1 $ROOT_DOCKER_FOLDER/.ci/test.sh || exit -1
EOF EOF
docker run --env-file docker.env -v "$GITHUB_WORKSPACE":"$ROOT_DOCKER_FOLDER" --rm --gpus all "nvcr.io/nvidia/cuda:${{ matrix.cuda_version }}-devel" /bin/bash $ROOT_DOCKER_FOLDER/docker-script.sh cuda_version="${{ matrix.cuda_version }}"
cuda_major=${cuda_version%%.*}
docker_img="nvcr.io/nvidia/cuda:${cuda_version}-devel"
if [[ ${cuda_major} -gt 10 ]]; then
docker_img="${docker_img}-ubuntu$(lsb_release -rs)"
fi
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
all-successful: all-successful:
# https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert # https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957/4?u=graingert
runs-on: ubuntu-latest runs-on: ubuntu-latest
......
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