- Spack usage disclaimer, copyright and trademark notice
- Introduction to SPACK
- Getting Started
- Build Customization
- Technical Support
AMD Toolchain with SPACK
SPACK HPC Applications
CloverLeaf® is a mini-app that solves the compressible Euler equations on a Cartesian grid using an explicit second-order accurate method. Each cell stores three values: energy, density, and pressure. A velocity vector is stored at each cell corner. This arrangement of data with some quantities at cell centers and others at cell corners is known as a staggered grid.
Official Website for CloverLeaf: https://uk-mac.github.io/CloverLeaf/
Note: CloverLeaf master consists of various build types such as Reference, Serial, MPI, OpenMP, and so on. Here, only Reference build type that features both MPI and OpenMP as default has been covered.
Build CloverLeaf Using Spack
Reference to add external packages to Spack: Build Customization (Adding external packages to Spack)
Use any combination of the following components/applications and their versions:
|AOCC||3.2.0, 3.1.0, 3.0.0|
Specifications and Dependencies
|-d||To enable debug output|
|-v||To enable verbose|
|@||To specify version number|
|%||To specify compiler|
|+debug||Build with DEBUG flags|
|+ieee||To build with IEEE standards|
|^openmpi fabrics=auto||To build with Open MPI and using fabrics=auto|
CloverLeaf does not accept command line arguments. It expects to find a file called clover.in in the directory it is running in.
There are a number of input files that come with the code. To use any of these, they must be copied to clover.in in the run directory and CloverLeaf invoked.
|# The dataset clover_bm1024_short.in can be downloaded (manually) from the following location:
$ spack cd -i cloverleaf@master
$ export OMP_NUM_THREADS=1