1616
1717 # Build libamrex and all tests with CUDA 12.6
1818 tests-cuda12 :
19- name : CUDA@12.6 C++17 Release [tests]
19+ name : CUDA@12.6 Release [tests]
2020 runs-on : ubuntu-24.04
2121 needs : check_changes
2222 if : needs.check_changes.outputs.has_non_docs_changes == 'true'
4747 which nvcc || echo "nvcc not in PATH!"
4848
4949 cmake -S . -B build \
50+ -DCMAKE_CXX_STANDARD=20 \
5051 -DCMAKE_VERBOSE_MAKEFILE=ON \
5152 -DAMReX_FFT=ON \
5253 -DAMReX_EB=ON \
7071
7172 # Build libamrex and all tests for CUDA with LLVM Clang + libc++ + CTK 11.7
7273 tests-cuda11-clang :
73- name : Clang@15 CUDA@11.7 C++17 Release [tests]
74+ name : Clang@15 CUDA@11.7 Release [tests]
7475 runs-on : ubuntu-22.04
7576 needs : check_changes
7677 if : needs.check_changes.outputs.has_non_docs_changes == 'true'
@@ -109,6 +110,7 @@ jobs:
109110 export LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64:${LD_LIBRARY_PATH}
110111
111112 cmake -S . -B build \
113+ -DCMAKE_CXX_STANDARD=20 \
112114 -DCMAKE_VERBOSE_MAKEFILE=ON \
113115 -DAMReX_MPI=OFF \
114116 -DAMReX_FFT=ON \
@@ -126,7 +128,7 @@ jobs:
126128
127129 # Build libamrex and all tests with NVHPC (recent supported)
128130 tests-nvhpc-nvcc :
129- name : NVHPC NVCC/NVC++ C++17 Release [tests]
131+ name : NVHPC NVCC/NVC++ Release [tests]
130132 runs-on : ubuntu-24.04
131133 needs : check_changes
132134 if : needs.check_changes.outputs.has_non_docs_changes == 'true'
@@ -167,6 +169,7 @@ jobs:
167169 cmake --version
168170
169171 cmake -S . -B build \
172+ -DCMAKE_CXX_STANDARD=20 \
170173 -DCMAKE_VERBOSE_MAKEFILE=ON \
171174 -DAMReX_ENABLE_TESTS=ON \
172175 -DAMReX_TEST_TYPE=Small \
@@ -218,11 +221,7 @@ jobs:
218221
219222 export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
220223 ./configure --dim 3 --with-cuda yes --enable-eb yes --enable-xsdk-defaults yes --with-fortran no --enable-fft yes
221- #
222- # /home/runner/work/amrex/amrex/Src/Base/AMReX_GpuLaunchGlobal.H:16:41: error: unused parameter ‘f0’ [-Werror=unused-parameter]
223- # 16 | AMREX_GPU_GLOBAL void launch_global (L f0) { f0(); }
224- #
225- make -j4 WARN_ALL=TRUE WARN_ERROR=TRUE XTRA_CXXFLAGS="-fno-operator-names -Wno-unused-parameter -Werror=deprecated-declarations" CCACHE=ccache CUDA_ARCH="8.0 9.0"
224+ make -j4 CXXSTD=c++20 WARN_ALL=TRUE WARN_ERROR=TRUE XTRA_CXXFLAGS="-fno-operator-names -Werror=deprecated-declarations" CCACHE=ccache CUDA_ARCH="8.0 9.0"
226225 make install
227226
228227 ccache -s
0 commit comments