sandialabs / spack-manager

A project and machine deployment model using Spack
https://sandialabs.github.io/spack-manager/
Other
26 stars 17 forks source link

Container for (spack-manager) CUDA GPU Build of Exawind for NERSC Science Platform #575

Open ajpowelsnl opened 1 year ago

ajpowelsnl commented 1 year ago

The proposed code specifies a spack-manager-based GPU-capable container on NERSC science platforms.

Build

podman-hpc build --no-cache -t <TAG_NAME> -f Dockerfile-containergpucuda .

Run

podman-hpc run --rm --gpu -it <TAG_NAME>

Expected Output

root@8953e3033a99:/exawind-entry/spack-manager# which exawind
/exawind-entry/spack-manager/snapshots/exawind/containergpucuda/2023-11-03/opt/linux-ubuntu22.04-zen3/gcc-11.4.0/exawind-git.d3c1aa4656fc3c6eccaec8c684671c82a3895172=multiphase-fyborjcfgnruxcks2vwzrc4guyw5toew/bin/exawind
root@8953e3033a99:/exawind-entry/spack-manager# exawind --help
usage: exawind [--awind NPROCS] [--nwind NPROCS] input_file
    -h,--help       Show this help message
    --awind NPROCS      Number of ranks for AMR-Wind (default = all ranks)
    --nwind NPROCS      Number of ranks for Nalu-Wind (default = all ranks)

Helpful Hints