forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and standardize implementation of RADIUSS packages (spack#45648)
* Add latest releases of Camp, RAJA, Umpire, CHAI and CARE * Address review comments + blt requirement in Umpire * CARE @develop & @main: Submodules -> False * Changes in Umpire * Changes in RAJA * Changes in CHAI * Changes in RAJA: prefer 'spec.satisfies' to 'in spec' This is due to a non-equivalence in Spack with providers like mpi. See e.g. spack#46126 * Changes in Umpire: prefer 'spec.satisfies' to 'in spec' This is due to a non-equivalence in Spack with providers like mpi. See e.g. spack#46126 * Changes in CARE: Still need to update to CachedCMakePackage based on RADIUSS Spack Configs version * Missing change in RAJA + changes in fmt * Fix synta * Changes in Camp * Fix style * CHAI: when ~raja, turn off RAJA in build system * Fix: [email protected] does not support [email protected] * Enforce same version constraint on Umpire as for RAJA * Enforce preferred version of vtk-m in ascent 0.9.3 * Migrate CARE package to CachedCMakePackage * Fix style in CARE package * CARE: Apply changes for uniform implementation accross RADIUSS projects * Caliper: move to CachedCMakePackage, from RADIUSS Spack Configs * Adapt RAJA Perf to spack CI * Activate CHAI, CARE and RAJAPerf in Spack CI * Fixes and diffs with RADIUSS Spack Configs * Caliper: fix * Caliper : fix + RAJAPerf : style * RAJAPerf: fixes * Update maintainers * raja-perf: fix license header * raja-perf: Fix variant naming openmp_target -> omptarget * raja-perf: style and blt dependency versions * CARE: benchmark and examples off by default (like tests) * CARE: fix missing variable * Update var/spack/repos/builtin/packages/raja-perf/package.py * CARE: fix branch name * Revert changes in MFEM to pass CI * Fix CXX17 condition in RAJA + add sycl option in RAJAPerf --------- Co-authored-by: Rich Hornung <[email protected]>
- Loading branch information
1 parent
cb43019
commit d7f5dba
Showing
10 changed files
with
834 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -196,14 +196,14 @@ class Ascent(CMakePackage, CudaPackage): | |
####################### | ||
with when("+raja"): | ||
depends_on("raja") | ||
depends_on("[email protected]:", when="@0.9.3:") | ||
depends_on("[email protected]:2024.02.99", when="@0.9.3:") | ||
depends_on("raja+openmp", when="+openmp") | ||
depends_on("raja~openmp", when="~openmp") | ||
|
||
with when("+umpire"): | ||
depends_on("umpire") | ||
depends_on("umpire@:2023.06.0", when="@:0.9.2") | ||
depends_on("[email protected]:", when="@0.9.3:") | ||
depends_on("[email protected]:2024.02.99", when="@0.9.3:") | ||
|
||
####################### | ||
# BabelFlow | ||
|
@@ -216,6 +216,7 @@ class Ascent(CMakePackage, CudaPackage): | |
####################### | ||
with when("+vtkh"): | ||
depends_on("vtk-m +doubleprecision ~64bitids") | ||
depends_on("[email protected]:", when="@0.9.3:") | ||
depends_on("[email protected]:", when="@0.9.2:") | ||
# 2.1 support needs commit e52b7bb8c9fd131f2fd49edf58037cc5ef77a166 | ||
depends_on("vtk-m@:2.0", when="@:0.9.2") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,15 @@ class Camp(CMakePackage, CudaPackage, ROCmPackage): | |
license("BSD-3-Clause") | ||
|
||
version("main", branch="main", submodules=False) | ||
version( | ||
"2024.07.0", | ||
tag="v2024.07.0", | ||
commit="0f07de4240c42e0b38a8d872a20440cb4b33d9f5", | ||
submodules=False, | ||
) | ||
version( | ||
"2024.02.1", | ||
tag="v2024.02.", | ||
tag="v2024.02.1", | ||
commit="79c320fa09db987923b56884afdc9f82f4b70fc4", | ||
submodules=False, | ||
) | ||
|
@@ -53,12 +59,14 @@ class Camp(CMakePackage, CudaPackage, ROCmPackage): | |
# TODO: figure out gtest dependency and then set this default True. | ||
variant("tests", default=False, description="Build tests") | ||
variant("openmp", default=False, description="Build with OpenMP support") | ||
variant("omptarget", default=False, description="Build with OpenMP Target support") | ||
variant("sycl", default=False, description="Build with Sycl support") | ||
|
||
depends_on("cub", when="+cuda") | ||
|
||
depends_on("blt", type="build") | ||
depends_on("[email protected]:", type="build", when="@2024.02.1:") | ||
depends_on("[email protected]:", type="build", when="@2024.02.0:") | ||
depends_on("[email protected]", type="build", when="@2024.02.0") | ||
depends_on("[email protected]:0.5.3", type="build", when="@2022.03.0:2023.06.0") | ||
|
||
patch("libstdc++-13-missing-header.patch", when="@:2022.10") | ||
|
@@ -67,6 +75,16 @@ class Camp(CMakePackage, CudaPackage, ROCmPackage): | |
|
||
conflicts("^blt@:0.3.6", when="+rocm") | ||
|
||
conflicts("+omptarget +rocm") | ||
conflicts("+sycl +omptarget") | ||
conflicts("+sycl +rocm") | ||
conflicts( | ||
"+sycl", | ||
when="@:2024.02.99", | ||
msg="Support for SYCL was introduced in RAJA after 2024.02 release, " | ||
"please use a newer release.", | ||
) | ||
|
||
def cmake_args(self): | ||
spec = self.spec | ||
|
||
|
@@ -94,7 +112,12 @@ def cmake_args(self): | |
options.append("-DGPU_TARGETS={0}".format(archs)) | ||
options.append("-DAMDGPU_TARGETS={0}".format(archs)) | ||
|
||
options.append(self.define_from_variant("ENABLE_OPENMP", "openmp")) | ||
if spec.satisfies("+omptarget"): | ||
options.append(cmake_cache_string("RAJA_DATA_ALIGN", 64)) | ||
|
||
options.append(self.define_from_variant("ENABLE_TESTS", "tests")) | ||
options.append(self.define_from_variant("ENABLE_OPENMP", "openmp")) | ||
options.append(self.define_from_variant("CAMP_ENABLE_TARGET_OPENMP", "omptarget")) | ||
options.append(self.define_from_variant("ENABLE_SYCL", "sycl")) | ||
|
||
return options |
Oops, something went wrong.