Skip to content

Commit

Permalink
Don't propagate +shared to umpire if +cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
chapman39 committed Jul 19, 2024
1 parent f858be5 commit 7a023b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/spack/packages/serac/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,15 @@ class Serac(CachedCMakePackage, CudaPackage):
# CMake packages "build_type=RelWithDebInfo|Debug|Release|MinSizeRel"

# Optional (require our variant in "when")
for dep in ["raja", "umpire", "strumpack"]:
for dep in ["raja", "strumpack"]:
depends_on("{0} build_type=Debug".format(dep), when="+{0} build_type=Debug".format(dep))
depends_on("{0}+shared".format(dep), when="+{0}+shared".format(dep))
depends_on("{0}~shared".format(dep), when="+{0}~shared".format(dep))

# Only propagate shared if not CUDA
depends_on("umpire build_type=Debug".format(dep), when="+umpire build_type=Debug".format(dep))
depends_on("umpire+shared".format(dep), when="+umpire+shared~cuda".format(dep))
depends_on("umpire~shared".format(dep), when="+umpire~shared".format(dep))

# Don't add propagate shared variant to sundials
depends_on("sundials build_type=Debug".format(dep), when="+sundials build_type=Debug".format(dep))
Expand Down

0 comments on commit 7a023b1

Please sign in to comment.