diff --git a/.github/workflows/cuda.yml b/.github/workflows/cuda.yml index 424911f2..02874f02 100644 --- a/.github/workflows/cuda.yml +++ b/.github/workflows/cuda.yml @@ -29,7 +29,7 @@ jobs: - name: Install Packages run: | - sudo apt-get install -y cmake make wget + sudo apt-get install -y cmake make wget gcc-12 g++-12 - name: Install CUDA run: | @@ -83,6 +83,8 @@ jobs: -DCMAKE_VERBOSE_MAKEFILE=ON \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ -DCMAKE_CUDA_FLAGS="-std=c++20" \ + -DCMAKE_C_COMPILER=/usr/bin/gcc-12 \ + -DCMAKE_CXX_COMPILER=/usr/bin/g++-12 \ .. \ --debug-output