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.shThis 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-simIt'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_gNow enter the container:
podman-hpc run --gpu --rm -it larnd-sim /bin/bashThen launch the simulation:
/software/run_larnd_sim.shThe output of the simulation will show up in the /outputs directory inside the container.