[slurm-dev] Preemtion and signals, v2

2017-10-11 Thread tegner
New thread since I have narrowed down the problem. Consider the script: ** #!/bin/bash #SBATCH -p cheap #SBATCH -n 32 #SBATCH -t 12:00:00 sig_term() { echo "function sig_term called. Exiting" echo 'sig_term' > slask_term echo $(date) >> slask_term } # associate the

[slurm-dev] Re: Preemtion and signals

2017-10-10 Thread tegner
Thanks! I'm probably missing something basic, but I don't see any difference by applying the changes you suggest - the signals does still not seem to be effectuated until after the grace time is over. Could it be something wrong with how my partitions are defined? PartitionName=cheap

[slurm-dev] Preemtion and signals

2017-10-09 Thread tegner
Have been trying to get preemtion to work for some time now. Goal is to have a specific partition for "cheap" jobs. It is allowed to use this freely, but as soon as a higher priority job enters the queue, these "cheap" jobs should be canceled. However, we would like to use the gracetime to kill

[slurm-dev] Re: srun vs mpirun

2017-10-07 Thread Jon Tegner
, Jon Tegner wrote: Thanks! Indeed seems to work when I used "--with_pmi" when building openmpi, and added the flag --mpi=pmi2 to the srun command. Much appreciated! /jon On 10/06/2017 09:18 PM, r...@open-mpi.org wrote: Not stupid at all. I suspect the problem is

[slurm-dev] Re: srun vs mpirun

2017-10-07 Thread Jon Tegner
Thanks! Indeed seems to work when I used "--with_pmi" when building openmpi, and added the flag --mpi=pmi2 to the srun command. Much appreciated! /jon On 10/06/2017 09:18 PM, r...@open-mpi.org wrote: Not stupid at all. I suspect the problem is that OMPI was not configured --with-pmi=. As