Skip to content

Commit 4b4347a

Browse files
authored
CUDA CI: Add -Werror=deprecated-declarations (#4702)
This helps us detect the use of deprecated features earlier. Note that we only added it to the CUDA 13 CI. The CUDA 12 CIs would fail due to our simple logic of handing the CUB version.
1 parent 26054b2 commit 4b4347a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/cuda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ jobs:
215215
# /home/runner/work/amrex/amrex/Src/Base/AMReX_GpuLaunchGlobal.H:16:41: error: unused parameter ‘f0’ [-Werror=unused-parameter]
216216
# 16 | AMREX_GPU_GLOBAL void launch_global (L f0) { f0(); }
217217
#
218-
make -j4 WARN_ALL=TRUE WARN_ERROR=TRUE XTRA_CXXFLAGS="-fno-operator-names -Wno-unused-parameter" CCACHE=ccache CUDA_ARCH="8.0 9.0"
218+
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"
219219
make install
220220
221221
ccache -s

0 commit comments

Comments
 (0)