From cc207fb92fb3f2d4ded9c47e61ebb0b87e472d39 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Sun, 14 Dec 2025 10:13:47 -0600 Subject: [PATCH 1/4] chore: update gcc,clang to 14,20 --- containers/debian/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/debian/Dockerfile b/containers/debian/Dockerfile index 78ecc258..a8693787 100644 --- a/containers/debian/Dockerfile +++ b/containers/debian/Dockerfile @@ -104,7 +104,7 @@ case ${ID} in apt-get -yqq install software-properties-common add-apt-repository ppa:ubuntu-toolchain-r/ppa case ${VERSION_CODENAME} in - noble) GCC="-13" ; CLANG="-17" ;; + noble) GCC="-14" ; CLANG="-20" ;; *) echo "Unsupported VERSION_CODENAME=${VERSION_CODENAME}" ; exit 1 ;; esac ;; *) echo "Unsupported ID=${ID}" ; exit 1 ;; From 1f35bfa301a51e167eb4dec9d102a0504de82f98 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Sun, 14 Dec 2025 10:50:09 -0600 Subject: [PATCH 2/4] feat: add flang --- containers/debian/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/debian/Dockerfile b/containers/debian/Dockerfile index a8693787..ca7b9888 100644 --- a/containers/debian/Dockerfile +++ b/containers/debian/Dockerfile @@ -119,7 +119,7 @@ fi # Install packages apt-get -yqq update apt-get -yqq install cpp${GCC} gcc${GCC} g++${GCC} gfortran${GCC} -apt-get -yqq install clang${CLANG} clang-tidy${CLANG} clang-format${CLANG} libclang${CLANG}-dev libc++${CLANG}-dev +apt-get -yqq install clang${CLANG} clang-tidy${CLANG} clang-format${CLANG} libclang${CLANG}-dev libc++${CLANG}-dev flang${CLANG} apt-get -yqq autoremove # Remove symlinks loop in nvidia/cuda:12.5.1-devel-ubuntu24.04 rm -f /usr/bin/cpp /etc/alternatives/cpp From 2ebfc74735ff74f2102e64e9c287a66c510f2b4e Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Sun, 14 Dec 2025 17:52:02 -0600 Subject: [PATCH 3/4] fix: add flang to update-alternatives --- containers/debian/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/containers/debian/Dockerfile b/containers/debian/Dockerfile index ca7b9888..fcdeb19a 100644 --- a/containers/debian/Dockerfile +++ b/containers/debian/Dockerfile @@ -130,6 +130,7 @@ update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++${GCC} 100 update-alternatives --install /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar${GCC} 100 update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran${GCC} 100 update-alternatives --install /usr/bin/clang clang /usr/bin/clang${CLANG} 100 +update-alternatives --install /usr/bin/flang flang /usr/bin/flang${CLANG} 100 update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++${CLANG} 100 update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format${CLANG} 100 update-alternatives --install /usr/bin/clang-format-diff clang-format-diff /usr/bin/clang-format-diff${CLANG} 100 From 34733dcf3a24ff8e736dc16f6be7fa67ace70ebb Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Thu, 18 Dec 2025 15:25:15 -0600 Subject: [PATCH 4/4] fix: cuda +allow-unsupported-compilers Add support for unsupported compilers in CUDA. --- spack-environment/packages.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spack-environment/packages.yaml b/spack-environment/packages.yaml index aa896f48..bfccffbf 100644 --- a/spack-environment/packages.yaml +++ b/spack-environment/packages.yaml @@ -106,6 +106,12 @@ packages: cppcoro: require: - '@10bbcdbf2be3ad3aa56febcf4c7662d771460a99' + cuda: + require: + # We disable CUDA's maximum supported compiler versions, e.g.: + # conflicts("%clang@20:", when="+cuda ^cuda@:12.9") + # https://github.com/spack/spack-packages/blob/develop/repos/spack_repo/builtin/build_systems/cuda.py + - +allow-unsupported-compilers dawn: require: - '@3_91a'