-
Notifications
You must be signed in to change notification settings - Fork 32
31 lines (26 loc) · 1.1 KB
/
ubuntu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Ubuntu build
on: [push, pull_request]
jobs:
# Ref.:
# https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/ubuntu18.04/10.1/base/Dockerfile
# https://github.com/ComputationalRadiationPhysics/picongpu/blob/0.5.0/share/picongpu/dockerfiles/ubuntu-1604/Dockerfile
# https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/
build_gcc_nvcc:
name: NVCC 11.0.2 SP [Linux]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: |
.github/workflows/dependencies/nvcc11.sh
- name: build
run: |
export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
export LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64:${LD_LIBRARY_PATH}
which nvcc || echo "nvcc not in PATH!"
export CXXFLAGS="-Wall -Wextra -Werror"
cmake -S . -B build \
-DCMAKE_CUDA_ARCHITECTURES=35 \
-DSAME_NVCC_FLAGS_IN_SUBPROJECTS=ON
cmake --build build -j 2
sudo cmake --build build --target install