include required(classpath("application")) # Backend for SLURM executions backend { default = "Slurm" providers { # Slurm configuration Slurm { actor-factory = "cromwell.backend.impl.sfs.config.ConfigBackendLifecycleActorFactory" config { runtime-attributes = """ String queue = "long" Int nodes = 1 Int tasks_per_node = 16 String runtime_minutes = "3-00:00:00" Int mem = 60000 """ submit = """ sbatch \ -J ${job_name} \ -D ${cwd} \ -o ${out} \ -e ${err} \ -p ${queue} \ -N ${nodes} \ --tasks-per-node ${tasks_per_node} \ -t ${runtime_minutes} \ --mem ${mem} \ --wrap "/bin/bash ${script}" """ # Int cpus = 8 # Int requested_memory_mb_per_core = 1000 # Other options #${"-n " + cpus} \ #--mem-per-cpu=${requested_memory_mb_per_core} \ kill = "scancel ${job_id}" check-alive = "squeue -j ${job_id}" job-id-regex = "Submitted batch job (\\d+).*" filesystems { local { localization: [ "soft-link", "copy", "hard-link" ] } } } } } }