Re: [slurm-users] How to get the CPU usage of history jobs at each compute node?

2019-02-18 Thread Wang, Liaoyuan
Dear Merlin, Thank you for your comments. Following your suggestion, I set memory for each CPU. Actually, it does not work. JobIDJobName PartitionAccount AllocCPUS State ExitCode -- -- -- -- -- 1463 96

Re: [slurm-users] How to request ONLY one CPU instead of one socket or one node?

2019-02-18 Thread Wang, Liaoyuan
Dear David, Thank you for your reply. I did it. It did request one CPU. I added your command into my job file #!/bin/sh #SBATCH --partition=defq #SBATCH --ntasks-per-node=2 #SBATCH -n 1 #SBATCH --mem-per-cpu=5gb #SBATCH --ntasks=1 #SBATCH --cpus-per-task=1 #SBATCH -t 45-00:00:00 #SBATCH -J 9673%j

Re: [slurm-users] pam_slurm_adopt with pbis-open pam modules

2019-02-18 Thread Chris Samuel
On Monday, 18 February 2019 6:04:26 AM PST נדב טולדו wrote: > I am trying to give users ssh access via pam_slurm_adopt. > I've installed the module and it worked correctly on testing environment > But when i add pbis-open modules (which auth users against active > directory), users are able to ssh

Re: [slurm-users] allocate last MPI-rank to an exclusive node?

2019-02-18 Thread Chris Samuel
On Monday, 18 February 2019 2:15:35 PM PST Jing Gong wrote: > I am just wondering if there are any srun flags to > allocate the last MPI-rank to an exclusive node Have a look at Slurm's heterogenous job support. There are restrictions around the MPI 's that support it though, I think you might

[slurm-users] allocate last MPI-rank to an exclusive node?

2019-02-18 Thread Jing Gong
Hi, I am just wondering if there are any srun flags to allocate the last MPI-rank to an exclusive node, for example, #SBATCH -N 3 # 3 nodes #SBATCH --tasks-per-node=10 #SBATCH --cpu-per-task=1 # 10 MPI-rank per node srun -n 21 ... ./application# MPI-rank 0-9 on node 0; MPI-rank

[slurm-users] Only one socket for SLURM

2019-02-18 Thread Gestió Servidors
Hi, One node of my cluster has 2 CPU sockets (with 2 32-cores CPUs). Now, I would like to configure my SLURM to share only CPUs of first socket. I have configured slurm.conf in this way: NodeName=mynode CPUs=32 SocketsPerBoard=1 CoresPerSocket=16 ThreadsPerCore=2 RealMemory=515703 TmpDisk=27000

Re: [slurm-users] Define variables within slurm script

2019-02-18 Thread Castellana Michele
It works, thank you. Best, M > On Feb 18, 2019, at 3:03 PM, Renfro, Michael wrote: > > If you’re literally putting spaces around the ‘=‘ character, I don’t think > that’s valid shell syntax, and should throw errors into your slurm-JOBID.out > file when you try it. > > See if it works with A=

Re: [slurm-users] Define variables within slurm script

2019-02-18 Thread Benson Muite
May be some aspects outside of slurms control that are tied to the machine you are using which require a specific way of handling environment variables. You might try the following: #!/bin/bash #SBATCH --job-name=my_job #SBATCH —time=01:00:00 for A in 1 2 do time ./my_code.o -a ${A} done On

Re: [slurm-users] Define variables within slurm script

2019-02-18 Thread Loris Bennett
Dear Michele, Castellana Michele writes: > Dear all, > I would like to use a variable within a slurm script as shown in the > following minimal working example. I want to define a variable A, > assign a value to it, and run multiple times a code where I use A in a > command-line flag: > > #!/b

[slurm-users] pam_slurm_adopt with pbis-open pam modules

2019-02-18 Thread נדב טולדו
Hello everyone, I am trying to give users ssh access via pam_slurm_adopt. I've installed the module and it worked correctly on testing environment But when i add pbis-open modules (which auth users against active directory), users are able to s

Re: [slurm-users] Define variables within slurm script

2019-02-18 Thread Renfro, Michael
If you’re literally putting spaces around the ‘=‘ character, I don’t think that’s valid shell syntax, and should throw errors into your slurm-JOBID.out file when you try it. See if it works with A=1.0 instead of A = 1.0 > On Feb 18, 2019, at 7:55 AM, Castellana Michele > wrote: > > External

[slurm-users] Define variables within slurm script

2019-02-18 Thread Castellana Michele
Dear all, I would like to use a variable within a slurm script as shown in the following minimal working example. I want to define a variable A, assign a value to it, and run multiple times a code where I use A in a command-line flag: #!/bin/sh #SBATCH --job-name=my_job #SBATCH —time=01:00:00 A

Re: [slurm-users] Priority access for a group of users

2019-02-18 Thread Henkel
Hi Marcus, sure, using Prioritytier is fine. And my point wasn't so much about preepmtion but exactely about to use just one partition and no preemption instead of two partitions, which is what David was asking for, isn't? But actuallym, I forgot that you can do it in one partition too by using pr

Re: [slurm-users] Priority access for a group of users

2019-02-18 Thread Marcus Wagner
Hi Andreas, doesn't it suffice to use priority tier partitions? You don't need to use preemption at all, do you? Best Marcus On 2/18/19 8:27 AM, Henkel, Andreas wrote: Hi David, I think there is another option if you don’t want to use preemption. If the max runlimit is small (several hou