-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial push for laghos gpu implementation * lint * lint * lint * removing unused import * updating dryruns --------- Co-authored-by: august-knox <[email protected]>
- Loading branch information
1 parent
757b8da
commit b5384ff
Showing
4 changed files
with
83 additions
and
50 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
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
from spack.package import * | ||
|
||
|
||
class Laghos(MakefilePackage): | ||
class Laghos(MakefilePackage, CudaPackage, ROCmPackage): | ||
"""Laghos (LAGrangian High-Order Solver) is a CEED miniapp that solves the | ||
time-dependent Euler equations of compressible gas dynamics in a moving | ||
Lagrangian frame using unstructured high-order finite element spatial | ||
|
@@ -33,16 +33,35 @@ class Laghos(MakefilePackage): | |
depends_on("caliper", when="+caliper") | ||
depends_on("adiak", when="+caliper") | ||
|
||
depends_on("hypre~fortran", when="@develop") | ||
depends_on("[email protected]+optimize+pic+shared", when="@develop") | ||
depends_on("mfem@develop^[email protected]+optimize+pic+shared", when="@develop") | ||
depends_on("[email protected]+optimize+pic+shared") | ||
#depends_on("[email protected]+optimize+pic+shared", when="@develop") | ||
#depends_on("mfem@develop^[email protected]+optimize+pic+shared", when="@develop") | ||
depends_on("[email protected]:", when="@3.1") | ||
depends_on("[email protected]:4.1", when="@3.0") | ||
# Recommended mfem version for laghos v2.0 is: ^[email protected] | ||
depends_on("[email protected]", when="@2.0") | ||
# Recommended mfem version for laghos v1.x is: ^[email protected] | ||
depends_on("[email protected]", when="@1.0,1.1") | ||
|
||
depends_on("[email protected]_comm_cali") | ||
depends_on("mfem cxxstd=14") | ||
|
||
|
||
depends_on("mpi") | ||
depends_on("hypre+mpi") | ||
depends_on("hypre+cuda+mpi", when="+cuda") | ||
depends_on("[email protected]+mixedint~fortran", when="@develop") | ||
|
||
requires("+cuda", when="^hypre+cuda") | ||
for arch in ("none", "50", "60", "70", "80"): | ||
depends_on(f"hypre cuda_arch={arch}", when=f"cuda_arch={arch}") | ||
depends_on(f"mfem cuda_arch={arch}", when=f"cuda_arch={arch}") | ||
depends_on("mfem +cuda+mpi", when="+cuda") | ||
depends_on("mfem +rocm+mpi", when="+rocm") | ||
depends_on("hypre +rocm +mpi", when="+rocm") | ||
requires("+rocm", when="^hypre+rocm") | ||
for target in ("none", "gfx803", "gfx900", "gfx906", "gfx908", "gfx90a", "gfx942"): | ||
depends_on(f"hypre amdgpu_target={target}", when=f"amdgpu_target={target}") | ||
depends_on(f"mfem amdgpu_target={target}", when=f"amdgpu_target={target}") | ||
# Replace MPI_Session | ||
patch( | ||
"https://github.com/CEED/Laghos/commit/c800883ab2741c8c3b99486e7d8ddd8e53a7cb95.patch?full_index=1", | ||
|