From 9336746f89fc5733e480d44d45fde4556f992338 Mon Sep 17 00:00:00 2001 From: Roman Grundkiewicz Date: Wed, 2 Sep 2020 17:20:34 +0100 Subject: Add GitHub workflow with CUDA 11 on Ubuntu 20.04 (#704) * Add GitHub workflow with CUDA 11 on Ubuntu 20.04 * Make build job names unique * Make build with CUDA 11 experimental --- .github/workflows/macos-cpu.yml | 2 +- .github/workflows/ubuntu-cpu.yml | 2 +- .github/workflows/ubuntu-gpu.yml | 16 ++++++++++++++-- .github/workflows/windows-cpu.yml | 2 +- .github/workflows/windows-gpu.yml | 2 +- 5 files changed, 18 insertions(+), 6 deletions(-) (limited to '.github') diff --git a/.github/workflows/macos-cpu.yml b/.github/workflows/macos-cpu.yml index 07f2a9dd..87e269a6 100644 --- a/.github/workflows/macos-cpu.yml +++ b/.github/workflows/macos-cpu.yml @@ -7,7 +7,7 @@ on: branches: [ master ] jobs: - build: + build-macos: runs-on: macos-10.15 diff --git a/.github/workflows/ubuntu-cpu.yml b/.github/workflows/ubuntu-cpu.yml index 4217053c..401162d3 100644 --- a/.github/workflows/ubuntu-cpu.yml +++ b/.github/workflows/ubuntu-cpu.yml @@ -7,7 +7,7 @@ on: branches: [ master ] jobs: - build-and-upload: + build-ubuntu: runs-on: ubuntu-18.04 diff --git a/.github/workflows/ubuntu-gpu.yml b/.github/workflows/ubuntu-gpu.yml index ccea606b..a8b7a2ba 100644 --- a/.github/workflows/ubuntu-gpu.yml +++ b/.github/workflows/ubuntu-gpu.yml @@ -7,25 +7,37 @@ on: branches: [ master ] jobs: - build: + build-ubuntu-cuda: runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.experimental }} strategy: matrix: include: # Ubuntu 20.04 supports CUDA 11+ + - os: ubuntu-20.04 + cuda: "11.0" + gcc: 9 + boost: false # ubuntu-20.04 image does not have Boost pre-installed yet + experimental: true # continue even if the job fails # Ubuntu 18.04 supports CUDA 10.1+ - os: ubuntu-18.04 cuda: "10.2" gcc: 8 + boost: true + experimental: false # Ubuntu 16.04 supports CUDA 8+ - os: ubuntu-16.04 cuda: "10.2" gcc: 7 + boost: true + experimental: false - os: ubuntu-16.04 cuda: 9.2 gcc: 7 + boost: true + experimental: false steps: - name: Checkout @@ -58,7 +70,7 @@ jobs: cd build CC=/usr/bin/gcc-${{ matrix.gcc }} CXX=/usr/bin/g++-${{ matrix.gcc }} CUDAHOSTCXX=/usr/bin/g++-${{ matrix.gcc }} \ cmake .. \ - -DCOMPILE_CPU=on -DCOMPILE_CUDA=on -DCOMPILE_EXAMPLES=on -DCOMPILE_SERVER=on -DCOMPILE_TESTS=on \ + -DCOMPILE_CPU=on -DCOMPILE_CUDA=on -DCOMPILE_EXAMPLES=on -DCOMPILE_SERVER=${{ matrix.boost }} -DCOMPILE_TESTS=on \ -DUSE_FBGEMM=on -DUSE_SENTENCEPIECE=on \ -DBOOST_ROOT=$BOOST_ROOT_1_69_0 -DBOOST_INCLUDEDIR=$BOOST_ROOT_1_69_0/include -DBOOST_LIBRARYDIR=$BOOST_ROOT_1_69_0/lib \ -DBoost_ARCHITECTURE=-x64 \ diff --git a/.github/workflows/windows-cpu.yml b/.github/workflows/windows-cpu.yml index b6543d0d..70167fa7 100644 --- a/.github/workflows/windows-cpu.yml +++ b/.github/workflows/windows-cpu.yml @@ -7,7 +7,7 @@ on: branches: [ master ] jobs: - build-and-upload: + build-windows: runs-on: windows-2019 diff --git a/.github/workflows/windows-gpu.yml b/.github/workflows/windows-gpu.yml index 360b64f4..ef71abcd 100644 --- a/.github/workflows/windows-gpu.yml +++ b/.github/workflows/windows-gpu.yml @@ -7,7 +7,7 @@ on: branches: [ master ] jobs: - build: + build-windows-cuda: runs-on: windows-2019 -- cgit v1.2.3