This is a minimal container for running larnd-sim on Perlmutter at NERSC.
First, a couple of input files must be copied into this directory before they can be bundled into the container:
./copy_inputs.sh
This will create and populate the inputs
directory.
Next, build the image:
podman-hpc build -t larnd-sim .
At this point, the inputs
directory can be deleted.
To make the image available on other nodes:
podman-hpc migrate larnd-sim
It's a good idea to grab a dedicated GPU. Assuming that myproject
is the NERSC project you want to charge:
salloc -q shared -C gpu -t 20 --gpus-per-task 1 --ntasks 1 -A myproject_g
Now enter the container:
podman-hpc run --gpu --rm -it larnd-sim /bin/bash
Then launch the simulation:
/software/run_larnd_sim.sh
The output of the simulation will show up in the /outputs
directory inside the container.