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:
cmakefor cross platform build toolingnvccto compile .cu code.- some form of test script?
mkdir -p build
cd build
cmake ..
makecd build
./mainCUDA 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 1916CUDA >= 10.0CUDA 9.2requires_MSC_VERbetween1600and1913
- Visual Studio
- Windows-2019
- Visual Studio
16.5.5which maps to_MSC_VER 1925CUDA >= 10.1CUDA 10.0requires_MSC_VERbetween1700and1920
- Visual Studio
- Ubuntu 16.04
- GNU C++
7.5.0,8.4.0&9.3.0are 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.0are available - CUDA
10.0+are available in the apt repository.- You can use the older
1604apt repo to enableCUDA 8.0+
- You can use the older
- GNU C++