summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorCyrus Harrison <cyrush@llnl.gov>2023-06-24 20:32:34 -0700
committerGitHub <noreply@github.com>2023-06-24 23:32:34 -0400
commitcb23362b7f4b428b29002dac72f2a8b7d437c9d9 (patch)
tree5e59e3c40cbbc5d3aa038dc5de1f4a5a0f91d6c3 /var
parent42c4a8b3883eed52a35c126d0f99383f3b9f7937 (diff)
downloadspack-cb23362b7f4b428b29002dac72f2a8b7d437c9d9.tar.gz
spack-cb23362b7f4b428b29002dac72f2a8b7d437c9d9.tar.bz2
spack-cb23362b7f4b428b29002dac72f2a8b7d437c9d9.tar.xz
spack-cb23362b7f4b428b29002dac72f2a8b7d437c9d9.zip
ascent: add optional occa dep (#38426)
Co-authored-by: cyrush <cyrush@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ascent/package.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ascent/package.py b/var/spack/repos/builtin/packages/ascent/package.py
index 3eac326132..9ab6004e83 100644
--- a/var/spack/repos/builtin/packages/ascent/package.py
+++ b/var/spack/repos/builtin/packages/ascent/package.py
@@ -90,6 +90,7 @@ class Ascent(CMakePackage, CudaPackage):
variant("dray", default=False, description="Build with Devil Ray support")
variant("adios2", default=False, description="Build Adios2 filter support")
variant("fides", default=False, description="Build Fides filter support")
+ variant("occa", default=False, description="Build with OCCA support")
# caliper
variant("caliper", default=False, description="Build Caliper support")
@@ -213,6 +214,9 @@ class Ascent(CMakePackage, CudaPackage):
depends_on("mfem+shared", when="+mfem+shared")
depends_on("mfem~shared", when="+mfem~shared")
+ # occa
+ depends_on("occa", when="+occa")
+
# fides
depends_on("fides", when="+fides")
@@ -616,6 +620,15 @@ class Ascent(CMakePackage, CudaPackage):
cfg.write("# mfem not built by spack \n")
#######################
+ # OCCA
+ #######################
+ if "+occa" in spec:
+ cfg.write("# occa from spack \n")
+ cfg.write(cmake_cache_entry("OCCA_DIR", spec["occa"].prefix))
+ else:
+ cfg.write("# occa not built by spack \n")
+
+ #######################
# Devil Ray
#######################
if "+dray" in spec: