Skip to content

Instantly share code, notes, and snippets.

@buchanae
Created May 23, 2018 22:50
Show Gist options
  • Save buchanae/c476220d14d8a116b71ad0db309f7dc9 to your computer and use it in GitHub Desktop.
Save buchanae/c476220d14d8a116b71ad0db309f7dc9 to your computer and use it in GitHub Desktop.
Compute: gridengine
GridEngine:
Template: |
#!/bin/bash
#$ -N {{.TaskId}}
#$ -o {{.WorkDir}}/funnel-stdout
#$ -e {{.WorkDir}}/funnel-stderr
{{if ne .Cpus 0 -}}
{{printf "#$ -pe mpi %d" .Cpus}}
{{- end}}
{{if ne .RamGb 0.0 -}}
{{printf "#$ -l h_vmem=%.0fG" .RamGb}}
{{- end}}
{{if ne .DiskGb 0.0 -}}
{{printf "#$ -l h_fsize=%.0fG" .DiskGb}}
{{- end}}
{{.Executable}} worker run --config {{.Config}} --task-id {{.TaskId}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment