@@ -158,16 +158,16 @@ jobs:
158158 sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 16
159159 sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-16 16
160160
161- - name : 📚 Install NVIDIA HPC SDK
161+ - name : 📚 Install CUDA Toolkit
162162 if : matrix.parallelisation == 'cuda'
163163 shell : bash
164164 run : |
165- curl https://developer.download.nvidia.com/hpc-sdk/ubuntu/DEB-GPG-KEY-NVIDIA-HPC-SDK | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg
166- echo 'deb [signed-by=/usr/share/keyrings/nvidia-hpcsdk-archive-keyring.gpg] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | sudo tee /etc/apt/sources.list.d/nvhpc.list
167- sudo apt update -y
168- sudo apt install -y nvhpc-23-3
169- echo "/opt/nvidia/hpc_sdk/Linux_x86_64/23.3/compilers /bin" >> $GITHUB_PATH
170- echo "/opt/nvidia/hpc_sdk/Linux_x86_64/23.3/math_libs /lib64" >> $GITHUB_PATH
165+ wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb
166+ sudo dpkg -i cuda-keyring_1.0-1_all.deb
167+ sudo apt-get update
168+ sudo apt-get -y install cuda
169+ echo "/usr/local/cuda-12.1 /bin" >> $GITHUB_PATH
170+ echo "/usr/local/cuda-12.1 /lib64" >> $GITHUB_PATH
171171
172172 - name : 📚 Install LLVM (MacOS)
173173 if : matrix.os == 'macos-13'
@@ -199,7 +199,7 @@ jobs:
199199 if : matrix.parallelisation == 'cuda'
200200 shell : bash
201201 working-directory : ${{runner.workspace}}/build
202- run : cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $CMAKE_FLAGS -DSPIRIT_USE_CUDA=ON -DCUDA_TOOLKIT_ROOT_DIR=/opt/nvidia/hpc_sdk/Linux_x86_64/23.3/ cuda/
202+ run : cmake $GITHUB_WORKSPACE -DCMAKE_CUDA_COMPILER=clang++ -DSPIRIT_CUDA_ARCH=70 - DCMAKE_BUILD_TYPE=$BUILD_TYPE $CMAKE_FLAGS -DSPIRIT_USE_CUDA=ON -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/ cuda-12.1 /
203203
204204 - name : ⚙ Configure with OpenMP
205205 if : matrix.parallelisation == 'openmp'
@@ -239,14 +239,15 @@ jobs:
239239 steps :
240240 - uses : actions/checkout@v3
241241
242- - name : Force downgrade to gcc-10 on Ubuntu 22.04 to avoid a bug in gcc-11.3 header
242+ - name : Force upgrade to gcc-12 on Ubuntu 22.04 (resolve issue with __noinline__ macro)
243243 if : matrix.config.os == 'ubuntu-22.04'
244244 shell : bash
245245 run : |
246+ sudo add-apt-repository ppa:jonathonf/gcc
246247 sudo apt-get --purge remove "g++*"
247- sudo apt install g++-10
248- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10
249- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
248+ sudo apt install g++-12
249+ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 10
250+ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 10
250251
251252 - name : 📚 Install NVIDIA HPC SDK and some libs
252253 shell : bash
@@ -478,7 +479,7 @@ jobs:
478479 - os : ubuntu-22.04
479480 env :
480481 BUILD_TYPE : Release
481- CMAKE_FLAGS : -DSPIRIT_UI_USE_IMGUI=OFF -DSPIRIT_UI_CXX_USE_QT=OFF -DSPIRIT_USE_CUDA=ON -DSPIRIT_CUDA_ARCH=sm_70
482+ CMAKE_FLAGS : -DSPIRIT_UI_USE_IMGUI=OFF -DSPIRIT_UI_CXX_USE_QT=OFF -DSPIRIT_USE_CUDA=ON -DSPIRIT_CUDA_ARCH=70
482483
483484 steps :
484485 - uses : actions/checkout@v3
@@ -763,4 +764,4 @@ jobs:
763764 tag_name : ${{ github.ref }}
764765 release_name : Release ${{ github.ref }}
765766 body : ${{ steps.changelog.outputs.changelog }}
766- draft : true
767+ draft : true
0 commit comments