mirror of
https://github.com/marian-nmt/marian.git
synced 2024-09-17 09:47:34 +03:00
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:
parent
4d9d15649e
commit
9336746f89
2
.github/workflows/macos-cpu.yml
vendored
2
.github/workflows/macos-cpu.yml
vendored
@ -7,7 +7,7 @@ on:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-macos:
|
||||
|
||||
runs-on: macos-10.15
|
||||
|
||||
|
2
.github/workflows/ubuntu-cpu.yml
vendored
2
.github/workflows/ubuntu-cpu.yml
vendored
@ -7,7 +7,7 @@ on:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build-and-upload:
|
||||
build-ubuntu:
|
||||
|
||||
runs-on: ubuntu-18.04
|
||||
|
||||
|
16
.github/workflows/ubuntu-gpu.yml
vendored
16
.github/workflows/ubuntu-gpu.yml
vendored
@ -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 \
|
||||
|
2
.github/workflows/windows-cpu.yml
vendored
2
.github/workflows/windows-cpu.yml
vendored
@ -7,7 +7,7 @@ on:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build-and-upload:
|
||||
build-windows:
|
||||
|
||||
runs-on: windows-2019
|
||||
|
||||
|
2
.github/workflows/windows-gpu.yml
vendored
2
.github/workflows/windows-gpu.yml
vendored
@ -7,7 +7,7 @@ on:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-windows-cuda:
|
||||
|
||||
runs-on: windows-2019
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user