Matteo uses the following custom env convention
DATA=/data/xchem-fragalysis
HOME2=/data/xchem-fragalysis/mferla
Along with JOB_*
which are script dependent.
About using Matteo's conda:
source $DATA/mferla/rocky-conda/etc/profile.d/conda.sh
conda activate base
export CONDA_ENVS_PATH=$DATA/mferla/.conda/envs:$DATA/sanchezg/app/miniconda3_2/envs:$DATA/mferla/rocky-conda/envs
You can add your own env space if you wish and still borrow Matteo & Ruben's envs. So the last line would be:
export CONDA_ENVS_PATH=👾👾👾:$DATA/mferla/.conda/envs:$DATA/sanchezg/app/miniconda3_2/envs:$DATA/mferla/rocky-conda/envs
where 👾👾👾
is an absolute path to your env.
Fullpath: /data/xchem-fragalysis/shared/target_script.condor
This script runs $JOB_NODE_SCRIPT within initial dir $HOME2
to specify a particular machine in its entirety.
add -a 'Requirements=(machine == "orpheus-worker-gpu-666.novalocal")'
as a cmd arg
to specify a particular machine.
For machine info
see https://www.stats.ox.ac.uk/~ferla/info/condor.html
or run condor_status -json
Envs used:
- $HOME2 the fake home
- $JOB_SCRIPT
The folder HOME2/logs
must exists beforehand.
nice scripts to use for JOB_SCRIPT
- /data/xchem-fragalysis/shared/singularity.sh
- /data/xchem-fragalysis/shared/helloworld.sh
This is just a test:
JOB_SCRIPT=/data/xchem-fragalysis/shared/helloworld.sh condor_submit /data/xchem-fragalysis/shared/target_script.condor
Then
echo 'Stdout'
cat $HOME/log/condor-log.615.0.out
echo 'Stderr'
cat $HOME/log/condor-log.615.0.err
JOB_SCRIPT=/data/xchem-fragalysis/shared/singularity.sh \
APPTAINER_CONTAINER=/data/xchem-fragalysis/shared/singularity/rockyplus.def \
JOB_INNER_SCRIPT=/data/xchem-fragalysis/mferla/Zika/job.sh \
condor_submit /data/xchem-fragalysis/shared/target_script.condor
/etc/ssh/sshd_config is not readable, so I don't know if AllowTcpForwarding
is allowd.
All variants w/ ssh -oProxyCommand='ssh -p22 qdf33232@ssh.diamond.ac.uk -W %h:%p -i $HOME/.ssh/diamond_rsa -F /tmp/blank' -p22 qdf33232@diamond-cpu -i $HOME/.ssh/diamond_rsa -v -F /tmp/blank -o ForwardAgent=no -o RequestTTY=yes fail.
Author: Matteo Date: 12 August 2023
This is stored here in case I am away and someone needs one of these files.
I will one day write this all up properly