This repo is a very simple CUDA application, used to GitHub Actions as a CI service for CUDA compilation.
This will potentially be expanded to investigate self-hosted runner(s) for running tests locally.
To be representative of a real world example this should include:
cmake
for cross platform build toolingnvcc
to compile .cu code.- some form of test script?
mkdir -p build
cd build
cmake ..
make
cd build
./main
CUDA is only supported with appropriate host compilers.
This support matrix can be found in the CUDA documentation, however for reference, there are some obvious caveats related to the current state of github actions (at the time of writing)
- Windows-2016
- Visual Studio
15.9.23
, which maps to_MSC_VER 1916
CUDA >= 10.0
CUDA 9.2
requires_MSC_VER
between1600
and1913
- Visual Studio
- Windows-2019
- Visual Studio
16.5.5
which maps to_MSC_VER 1925
CUDA >= 10.1
CUDA 10.0
requires_MSC_VER
between1700
and1920
- Visual Studio
- Ubuntu 16.04
- GNU C++
7.5.0
,8.4.0
&9.3.0
are available - CUDA
8.0+
are available in the apt repository.
- GNU C++
- Ubuntu 18.04
- GNU C++
7.5.0
,8.4.0
&9.3.0
are available - CUDA
10.0+
are available in the apt repository.- You can use the older
1604
apt repo to enableCUDA 8.0+
- You can use the older
- GNU C++