summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Simberg <mikael.simberg@iki.fi>2023-11-29 15:10:27 +0100
committerGitHub <noreply@github.com>2023-11-29 15:10:27 +0100
commit72216b503ff1897bc4128595e707a7a02222cfed (patch)
tree3b801d302a3ddeaa3f026ca4eae73518600f8365
parentc06f353f558c746e87112f6cae7d6ae4857da14a (diff)
downloadspack-72216b503ff1897bc4128595e707a7a02222cfed.tar.gz
spack-72216b503ff1897bc4128595e707a7a02222cfed.tar.bz2
spack-72216b503ff1897bc4128595e707a7a02222cfed.tar.xz
spack-72216b503ff1897bc4128595e707a7a02222cfed.zip
dla-future: Add conflicts for compilation issues pre-0.3.1 (#41317)
* dla-future: Add conflict for pedantic warnings turning into errors * dla-future: Add conflicts for nvcc/fmt/Umpire compilation issues
-rw-r--r--var/spack/repos/builtin/packages/dla-future/package.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/dla-future/package.py b/var/spack/repos/builtin/packages/dla-future/package.py
index c360aa3078..5e90ac112e 100644
--- a/var/spack/repos/builtin/packages/dla-future/package.py
+++ b/var/spack/repos/builtin/packages/dla-future/package.py
@@ -79,6 +79,22 @@ class DlaFuture(CMakePackage, CudaPackage, ROCmPackage):
depends_on("rocsolver", when="+rocm")
depends_on("rocthrust", when="+rocm")
+ # nvcc 11.2 and older is unable to detect fmt::formatter specializations.
+ # DLA-Future 0.3.1 includes a workaround to avoid including fmt in device
+ # code:
+ # https://github.com/pika-org/pika/issues/870
+ # https://github.com/eth-cscs/DLA-Future/pull/1045
+ conflicts("^fmt@10:", when="@:0.3.0 +cuda ^cuda@:11.2")
+
+ # Compilation problem triggered by the bundled fmt in Umpire together with
+ # fmt 10, which only happens with GCC 9 and nvcc 11.2 and older:
+ # https://github.com/eth-cscs/DLA-Future/issues/1044
+ conflicts("^fmt@10:", when="@:0.3.0 %gcc@9 +cuda ^cuda@:11.2 ^umpire@2022.10:")
+
+ # Pedantic warnings, triggered by GCC 9 and 10, are always errors until 0.3.1:
+ # https://github.com/eth-cscs/DLA-Future/pull/1043
+ conflicts("%gcc@9:10", when="@:0.3.0")
+
depends_on("hdf5 +cxx+mpi+threadsafe+shared", when="+hdf5")
conflicts("+cuda", when="+rocm")