Skip to content

Commit

Permalink
Update vai.config
Browse files Browse the repository at this point in the history
PBS-based cluster deprecated
  • Loading branch information
njspix authored Jan 5, 2024
1 parent f14799a commit 97d4afc
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions conf/vai.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,7 @@ singularity {
autoMounts = true
}

// See if we can find evidence that we're on the new HPC
def new_cluster = false
try {
new_cluster = ['/bin/bash', '-c', 'echo $HOSTNAME'].execute().text.trim() ==~ /(compute|submit)[0-9]{3}/
} catch (java.io.IOException e) {
System.err.println("WARNING: Couldn't figure out which cluster we're on, defaulting to old (PBS) cluster")
}

if (new_cluster) {
System.out.println("Using VAI institutional configuration for new HPC cluster")
} else {
System.out.println("Using VAI institutional configuration for old HPC cluster")
}


process {
beforeScript = { new_cluster ? '' : 'module load VARI/singularity' }()
executor = { new_cluster ? 'slurm' : 'pbs' }()
queue = { new_cluster ? 'long' : { task.time <= 48.h ? 'shortq' : 'longq' } }()
executor = 'slurm'
queue = 'long'
}

0 comments on commit 97d4afc

Please sign in to comment.