diff options
author | Matthew Thompson <matthew.thompson@nasa.gov> | 2024-01-25 16:08:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-25 14:08:48 -0700 |
commit | 4006020d782c9ff521d0a38d9c366b9754f838c4 (patch) | |
tree | f0511170bdae1b2523086e02a9bad05375923fa5 | |
parent | 6d4fa96aad83af9cb1363bb5e5afdb628add53eb (diff) | |
download | spack-4006020d782c9ff521d0a38d9c366b9754f838c4.tar.gz spack-4006020d782c9ff521d0a38d9c366b9754f838c4.tar.bz2 spack-4006020d782c9ff521d0a38d9c366b9754f838c4.tar.xz spack-4006020d782c9ff521d0a38d9c366b9754f838c4.zip |
pflogger: Add v1.12 (#42288)
* pflogger: add version 1.12
* Add version
* return MPI variant to false default
* [@spackbot] updating style on behalf of mathomp4
---------
Co-authored-by: mathomp4 <mathomp4@users.noreply.github.com>
-rw-r--r-- | var/spack/repos/builtin/packages/pflogger/package.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pflogger/package.py b/var/spack/repos/builtin/packages/pflogger/package.py index 2075ec9252..f06133605e 100644 --- a/var/spack/repos/builtin/packages/pflogger/package.py +++ b/var/spack/repos/builtin/packages/pflogger/package.py @@ -22,6 +22,7 @@ class Pflogger(CMakePackage): version("develop", branch="develop") version("main", branch="main") + version("1.12.0", sha256="ff29b0ce4baf50675edb69c3c7493be5410839b5f81e3ce5405f04925503fb0d") version("1.11.0", sha256="bf197b6f223a75c7d3eee23888cdde204b5aea053c308852a3f8f677784b8899") version("1.10.0", sha256="8e25564699c0adcbe9a23fded6637668ce659480b39420be5a4c8181cd44ad53") version("1.9.5", sha256="baa3ebb83962f1b6c8c5b0413fe9d02411d3e379c76b8c190112e158c10ac0ac") @@ -56,6 +57,9 @@ class Pflogger(CMakePackage): depends_on("mpi", when="+mpi") + # Using pFlogger with MPICH 4 is only supported from version 1.11 + conflicts("^mpich@4:", when="@:1.10") + depends_on("cmake@3.12:", type="build") def cmake_args(self): @@ -65,4 +69,10 @@ class Pflogger(CMakePackage): if spec.satisfies("+mpi"): args.extend(["-DCMAKE_Fortran_COMPILER=%s" % spec["mpi"].mpifc]) + # From version 1.12 on, there is an `ENABLE_MPI` option that + # defaults to `ON`. If we don't want MPI, we need to set it to + # `OFF` + if spec.satisfies("@1.12: ~mpi"): + args.append("-DENABLE_MPI=OFF") + return args |