-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc_rackham
56 lines (43 loc) · 2.29 KB
/
bashrc_rackham
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#export OMP_NUM_THREADS=1
#export MKL_SERIAL=yes
#export GOTO_NUM_THREADS=1
#if [ $HOSTNAME == "ppc" ]; then
# export LIBGL_ALWAYS_INDIRECT=y
#fi
alias mc='source /usr/libexec/mc/mc-wrapper.sh'
#alias ll='ls -l --group-directories-first'
alias srunR='srun -A staff -t 15:00 -p devel'
alias srunS='srun -A staff -M snowy -t 15:00 -p devel'
alias bashS='srun -A staff -M snowy -t 15:00 -p devel --pty bash'
if [[ $(hostname) != "transit.uppmax.uu.se" ]]; then
export XDG_CACHE_HOME=/crex/proj/staff/pmitev/nobackup/XDG_CACHE_HOME
export SINGULARITY_CACHEDIR=/crex/proj/staff/pmitev/nobackup/.SINGULARITY_CACHEDIR
export SINGULARITY_TMPDIR=/crex/proj/staff/pmitev/nobackup/.SINGULARITY_TMPDIR
export APPTAINER_CACHEDIR=/crex/proj/staff/pmitev/nobackup/.SINGULARITY_CACHEDIR
export APPTAINER_TMPDIR=/crex/proj/staff/pmitev/nobackup/.SINGULARITY_TMPDIR
export UV_CACHE_DIR=/crex/proj/staff/pmitev/nobackup/.UV_CACHE_DIR
fi
# dbdeployer settings
export SANDBOX_HOME=/crex/proj/staff/pmitev/nobackup/sandbox_home
export SANDBOX_BINARY=/crex/proj/staff/pmitev/nobackup/sandbox_binary
export CONDA_ENVS_PATH=/crex/proj/staff/pmitev/nobackup/CONDA_ENVS
export CONDA_PKGS_DIRS=/crex/proj/staff/pmitev/nobackup/CONDA_PKGS
export NXF_HOME=/crex/proj/staff/pmitev/nobackup/NXF_HOME
export NXF_SINGULARITY_CACHEDIR=/crex/proj/staff/pmitev/nobackup/NXF_SINGULARITY_CACHEDIR
export UDOCKER_DIR=/crex/proj/staff/pmitev/udocker
export PROOT_NO_SECCOMP=1
#export VGL_CLIENT=$DISPLAY
#export VGL_BINDIR=/usr/bin
function jiu() { jobinfo -u ${1:-$USER} ; }
function scs() { scontrol show jobid=${1:-1} ; }
function scsv() { scontrol show --details --details jobid=${1:-1} ; }
function scu() { scontrol update jobid=${1:-1} ${2} ; }
function sj() { squeue -a -o"%.7i %.8a %.9P %.8f %50j %.8u %.8T %.10M %.10l %.10L %.3D %.3C %.12R" -S j,-T,i -u ${1:-$USER} ; }
function userproj() {
local U=${1:-$USER}
sacctmgr -n list assoc where user=$U -P format=account | cat <(id -Gn $U | tr ' ' '\n') - | sort -Vu | grep -vP "($U|no_project)"
}
function sallocx() { salloc ${@} bash -c 'ssh -Y $(scontrol show hostnames | head -n 1)' ; }
# Remove a personal module cache, can be annoying when built on rackham but sitting on another system.
# # No special privileges required
# function purge-cache() { rm -rf $HOME/.lmod.d ; }