Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Content

Table of Contents

Cloning packages from git

git clone git@github.com:slac-lcls/lcls2.git

git clone git@github.com:lcls-psana/Detector.git

git clone git@github.com:lcls-psana/PSCalib.git

git clone git@github.com:lcls-psana/CalibManager.git

git clone git@github.com:lcls-psana/pyimgalgos.git

git clone git@github.com:lcls-psana/.git

git clonegit@github.com:lcls-psana/SConsTools.git

git clone git@github.com:lcls-psana/pdsdata.git
git clone git@github.com:lcls-psana/psalg.git

git clone git@github.com:lcls-psana/data_test.git /tmp/data_test

git clone git@github.com:slaclab/anarel-manage.git manage

git clone git@github.com:slac-lcls/psana1-feedstock.git

git clone https://github.com/slac-lcls/psana1-feedstock

PCDS

LCLS1

Development

cd mytestrel

rm .sit_conda_env

...

source /cds/sw/ds/ana/conda1/manage/bin/setup_testrel

LCLS2

Development

cd mytestrel

source /cds/sw/ds/ana/conda2/manage/bin/psconda.sh

...

source /reg/g/pcds/dist/pds/ued/scripts/setup_env.sh

Clone packages from git

git clone git@github.com:slac-lcls/lcls2.git

git clone git@github.com:lcls-psana/Detector.git

git clone git@github.com:lcls-psana/PSCalib.git

git clone git@github.com:lcls-psana/CalibManager.git

git clone git@github.com:lcls-psana/pyimgalgos.git

git clone git@github.com:lcls-psana/.git

...

git clone git@github.com:lcls-psana/pdsdata.git
git clone git@github.com:lcls-psana/psalg.git

git clone git@github.com:lcls-psana/data_test.git /tmp/data_test

git clone git@github.com:slaclab/anarel-manage.git manage

git clone git@github.com:slac-lcls/psana1-feedstock.git

git clone https://github.com/slac-lcls/psana1-feedstock

Build ami2

ssh -Y psbuild-rhel7

...

It’s “ssh psffb”.  add the “dir=“ option to DataSource, or “export SIT_PSDM_DATA=/cds/data/drpsrcf


SLURM commands

sinfo -N -r -l
squeue -u $USER | grep 197 | awk '{print $1}' | xargs -n 1 scancel
squeue -u <username>

scancel <job_id>

scontrol show partition <partition>
scontrol show node <hostname>
scontrol show job <job_id>

scontrol hold <job_list>
scontrol release <job_list>
scontrol show hostnames

sinfo --states=idle

Reservation of batch host for individual work

srun --partition milano --nodelist=sdfmilan112 --account lcls:prjdat21 -n 1 --time=02:00:00 --exclusive --pty /bin/bash

srun --partition milano --account lcls:prjdat21 -n 1 --time=02:00:00 --exclusive --pty /bin/bash

srun --partition milano --reservation=lcls:scaling --account lcls:prjdat21 -n 1 --time=02:00:00 --exclusive --pty /bin/bash

Patching release

on pcds

> s3dflogin

> pslogin

ssh psbuild-rhel7-01 -l psreldev

source /cds/sw/ds/ana/conda1/manage/bin/psconda.sh

on s3df

>s3dflogin

ssh psana -l psreldev

source /sdf/group/lcls/ds/ana/sw/conda1/manage/bin/psconda.sh

Patching

conda deactivate

conda env list

conda activate ana-4.0.51-py3

2023-09-15 O'Grady, Paul Christopher <cpo@slac.stanford.edu> To: Dubrovin, Mikhail

...

(ana-4.0.51-py3) pwd
/sdf/group/lcls/ds/ana/sw/conda1/inst/envs/ana-4.0.51-py3/lib/python3.9/site-packages/Detector
(ana-4.0.51-py3) cp ~cpo/git/Detector/src/AreaDetector.py AreaDetector.py
(ana-4.0.51-py3) cd ../PSCalib/
(ana-4.0.51-py3) cp ~cpo/git/PSCalib/src/GlobalUtils.py GlobalUtils.py
(ana-4.0.51-py3)

chris

References