Currently this is only possible for "early access users" who have accounts at NERSC.

Example slurm script submitted with "sbatch <scriptname>" ("srun" is the cray-equivalent of "mpirun"):

#!/bin/bash
#SBATCH -p regular
#SBATCH -N 1
#SBATCH -t 01:00:00
#SBATCH -A lcls
#SBATCH --image=docker:registry.services.nersc.gov/psana:ana-0.17.4a
module load shifter
cd $HOME/shifter
srun -n 32 shifter ./myjob.csh

Where my job.csh looks like the usual psana-python command:

#!/bin/tcsh
source /reg/g/psdm/etc/ana_env.csh
cd $HOME/shifter
setenv SIT_PSDM_DATA /global/project/projectdirs/lcls/g/psdm/
python psana_io_benchmark.py exp=cxig3614:run=81

Getting An Account

Note: this should only be necessary for expert developers.  Send mail to pcds-ana-l if you have questions.

Apply for an account at this link:

http://www.nersc.gov/users/accounts/user-accounts/get-a-nersc-account/

Use "Amedeo Perazzo" as the PI, and "LCLS" as the repo.

Useful NERSC Links

(courtesy of Anton Barty)

 

• The ‘module add’ command. Explains why stuff is not there by default, and how to get it easily.
http://www.nersc.gov/users/software/nersc-user-environment/modules/
If you don’t find this, you’re lost (or end up reinstalling pointlessly)
• Version control
http://www.nersc.gov/users/software/version-control-tools/
• Libraries
http://www.nersc.gov/users/software/programming-libraries/
• Globus for data transfer
http://www.nersc.gov/users/storage-and-file-systems/transferring-data/globus-online/
• Queues
http://www.nersc.gov/users/queues/
X11 can be slow from afar. I did find NX instructions with a nice tutorial
http://www.nersc.gov/users/connecting-to-nersc/using-nx/
http://portal.nersc.gov/project/mpccc/nx/NX_Tutorial/M_Install.html
You seem to need the tutorial to get it to work