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
This commit is contained in:
Roman Grundkiewicz 2020-09-02 17:20:34 +01:00 committed by GitHub
parent 4d9d15649e
commit 9336746f89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 6 deletions

View File

@ -7,7 +7,7 @@ on:
branches: [ master ]
jobs:
build:
build-macos:
runs-on: macos-10.15

View File

@ -7,7 +7,7 @@ on:
branches: [ master ]
jobs:
build-and-upload:
build-ubuntu:
runs-on: ubuntu-18.04

View File

@ -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 \

View File

@ -7,7 +7,7 @@ on:
branches: [ master ]
jobs:
build-and-upload:
build-windows:
runs-on: windows-2019

View File

@ -7,7 +7,7 @@ on:
branches: [ master ]
jobs:
build:
build-windows-cuda:
runs-on: windows-2019