Skip to content

Commit

Permalink
add CI run with gcc9 and cuda
Browse files Browse the repository at this point in the history
install cuda silently and only specific packages
install TBB for gcc9 parallel STL
  • Loading branch information
bernhardmgruber committed Nov 13, 2020
1 parent 01c3b95 commit c14d75b
Showing 1 changed file with 42 additions and 5 deletions.
47 changes: 42 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,44 @@ jobs:
name: llama.hpp
path: build/llama-amalgamated/llama.hpp

build-ubuntu:
build-ubuntu-gcc9-cuda:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: vcpkg install dependencies
run: |
vcpkg install catch2 fmt tbb
- name: install CUDA 11
run: |
wget --no-verbose https://developer.download.nvidia.com/compute/cuda/11.1.1/local_installers/cuda_11.1.1_455.32.00_linux.run
sudo sh cuda_11.1.1_455.32.00_linux.run --silent --toolkit
- name: install alpaka
run: |
git clone https://github.com/alpaka-group/alpaka.git
mkdir alpaka/build
cd alpaka/build
export BOOST_ROOT=$BOOST_ROOT_1_72_0
cmake .. -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake
sudo cmake --build . --target install
- name: install Vc
run: |
git clone https://github.com/VcDevel/Vc.git
mkdir Vc/build
cd Vc/build
cmake .. -DBUILD_TESTING=OFF -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake
sudo cmake --build . --target install
- name: cmake
run: |
mkdir build
cd build
export BOOST_ROOT=$BOOST_ROOT_1_72_0
CXX=g++-9 cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DASAN_FOR_TESTS=ON -DALPAKA_CXX_STANDARD=17 -DALPAKA_ACC_GPU_CUDA_ENABLE=ON -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake
- name: build tests + examples
run: cmake --build build -j $THREADS
- name: run tests
run: build/tests

build-ubuntu-gcc10:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -53,9 +90,9 @@ jobs:
cd build
export BOOST_ROOT=$BOOST_ROOT_1_72_0
CXX=g++-10 cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DASAN_FOR_TESTS=ON -DALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLE=ON -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake
- name: build
- name: build tests + examples
run: cmake --build build -j $THREADS
- name: tests
- name: run tests
run: build/tests

build-windows:
Expand Down Expand Up @@ -94,8 +131,8 @@ jobs:
cd build
$env:BOOST_ROOT = $env:BOOST_ROOT_1_72_0
cmake .. -DALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLE=ON "-DCMAKE_TOOLCHAIN_FILE=$env:VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake"
- name: build
- name: build tests + examples
run: cmake --build build -j $env:THREADS --config $env:CONFIG
- name: tests
- name: run tests
run: |
& build/$env:CONFIG/tests

0 comments on commit c14d75b

Please sign in to comment.