From b02b5730fc64fb5bdbdcfe31ea5ac27c79ea1901 Mon Sep 17 00:00:00 2001 From: Saveliy Borisov <94908850+Amazingkivas@users.noreply.github.com> Date: Tue, 5 Nov 2024 23:48:13 +0300 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a797a1f..ad758cd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -62,6 +62,8 @@ jobs: run: | sudo apt-get update sudo apt-get install -y nvidia-cuda-toolkit + sudo apt-get install -y g++-10 + sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 100 echo 'export PATH=/usr/local/cuda/bin:$PATH' >> ~/.bashrc source ~/.bashrc cd 3rdparty/kokkos @@ -70,6 +72,7 @@ jobs: cmake .. \ -DCMAKE_CXX_COMPILER=${PWD}/../bin/nvcc_wrapper \ -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc \ + -DCMAKE_CUDA_HOST_COMPILER=/usr/bin/g++-10 \ -DKokkos_ENABLE_CUDA=ON \ -DKokkos_ARCH_AMPERE80=ON \ -DCMAKE_CXX_STANDARD=17