Re: [slurm-users] #SBATCH options as Bash script parameters

2018-03-18 Thread Loris Bennett
Hi Jessie, Jessie Poquérusse writes: > Hello, > > In trying to modularize and genericize my Bash scripts as much as > possible, I was wondering if there was a way to turn #SBATCH options > (mainly walltime, mem, and output and error file directories) into > externally defined script parameters

Re: [slurm-users] #SBATCH options as Bash script parameters

2018-03-18 Thread Bill Barth
I don’t think you can turn them into command-line arguments to your script since Bash treats the #SBATCH lines as comments and can’t see “into” them, but you can, as I’m sure you know, override any #SBATCH options by putting them on the sbatch command-line before specifying the command to run. I

[slurm-users] #SBATCH options as Bash script parameters

2018-03-18 Thread Jessie Poquérusse
Hello, In trying to modularize and genericize my Bash scripts as much as possible, I was wondering if there was a way to turn #SBATCH options (mainly walltime, mem, and output and error file directories) into externally defined script parameters (e.g. in the same command line as during sbatch job

Re: [slurm-users] Available gpus ?

2018-03-18 Thread Nadav Toledo
Hey all, We used to numbers from the following commands: sinfo -o %G(as suggested above) - gives total gpu in cluster squeue -o %b   - gives amount of gpu in use for each running job sum all the numbers under %b gives you gpu in use in cluster pestat was sug

Re: [slurm-users] User limits

2018-03-18 Thread Chris Samuel
On Friday, 16 March 2018 2:44:09 AM AEDT Mahmood Naderan wrote: > That is not what I want. I want a total upper limit for time usage of > a user. I'm not sure Slurm can do that for you by setting limits on a user I'm afraid! You can set GrpWall on an association or QoS but that will govern the m

Re: [slurm-users] Job runtime

2018-03-18 Thread Chris Samuel
On Sunday, 18 March 2018 4:30:34 PM AEDT Mahmood Naderan wrote: > Thanks for the exaplnation Chris. I will read cgroup. My pleasure! The Slurm docs on it are here: https://slurm.schedmd.com/cgroups.html I've been using cgroups for all three abilities (process tracking, task management and ac