Page History
Prescriptions from Chris with my comments.
Login
ssh -Y <username>@cori.nersc.gov
ssh -Ycori05 # other nodes may have different versions of compilers...
Cloning lcls2 repository
Version control with git -describes git initialization.
...
git clone git@github.com:slac-lcls/lcls2.git
Create and activate conda environment
module load python
See available conda environments and create one:
...
Code Block | ||||
---|---|---|---|---|
| ||||
channels: - defaults - conda-forge dependencies: - python=3.6 - cmake - h5py - ipython - numpy - cython - matplotlib - mongodb - pymongo - mpi4py - nose - pyzmq - versioneer - requests |
Build
cd lcls2
export CRAYPE_LINK_TYPE=dynamic
export INSTDIR=`pwd`/install
For python2.7
./build_python2_psana.sh
export PYTHONPATH=$INSTDIR/lib/python2.7/site-packages
For python3.6
./build_python3_light.sh
export PYTHONPATH=$INSTDIR/lib/python3.6/site-packages
Useful conda commands
conda list
conda env list
conda env remove --name <ps-0.1.1
-...-environment-name>
Run apps etc
python psana/psana/pscalib/calib/MDBWebUtils.py 7
ipython
> import psana
References
- Version control with git
- https://github.com/slac-lcls/relmanage/blob/master/env_create.yaml
- https://github.com/slac-lcls/lcls2
...
Overview
Content Tools