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:
conda env list
conda env create --name ps<ps-0.1.1-py2 -...-environment-name> -f env_create.yaml
source activate ps<ps-0.1.1-py2-...-environment-name>
where the file env_create.yaml
contains the list of require packages.
Originally it is located in https://github.com/slac-lcls/relmanage/blob/master/env_create.yaml or env_create_py2.yaml
for python2.
Code Block | ||||
---|---|---|---|---|
| ||||
channels: - defaults - conda-forge dependencies: - python=23.76 - 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_
python2python2_psana.sh
export
INSTDIR=`pwd`/installPYTHONPATH=$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