Skip to content

KonduitAI/cuda-install

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

CUDA + Cmake example using Github Actions

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.

Ubuntu Windows

Sample application.

To be representative of a real world example this should include:

  • cmake for cross platform build tooling
  • nvcc to compile .cu code.
  • some form of test script?

Compilation

mkdir -p build
cd build
cmake .. 
make

Execution

cd build
./main

Version Compatibility

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 between 1600 and 1913
  • Windows-2019
    • Visual Studio 16.5.5 which maps to _MSC_VER 1925
      • CUDA >= 10.1
        • CUDA 10.0 requires _MSC_VER between 1700 and 1920
  • 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.
  • 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 enable CUDA 8.0+

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published