jdblischak / smk-simple-slurm

A simple Snakemake profile for Slurm without --cluster-config
Creative Commons Zero v1.0 Universal
131 stars 16 forks source link

specify time #15

Closed smilesun closed 1 year ago

smilesun commented 1 year ago

in sbatch, one could specify

#!/bin/bash
#SBATCH -p gpu_p
#SBATCH --qos=gpu
#SBATCH --gres=gpu:1
#SBATCH -c 1
#SBATCH --mem=32G
#SBATCH -t 48:00:00
#SBATCH --nice=10000 

where -t specify the time, is there an option to do that as well using yaml here with snakemake?

Since I constantly got out-of-memory error running my GPU job, i wonder if that is a time out error?

jdblischak commented 1 year ago

You can update this profile to pass any valid sbatch argument. The --time flag is explicitly used as a demonstration in the README:

https://github.com/jdblischak/smk-simple-slurm#a-variable-argument-to-sbatch-eg---time

jdblischak commented 1 year ago

Also note that you can define time as an integer or a string. There are existing examples for both strategies: time-integer and time-string