[gridengine users] How to allocate memory per MPI thread via SGE?

Semi semi at bgu.ac.il
Tue Jan 3 14:58:43 UTC 2012


Please let me know if I understand you right. For example:
I need 2 Gb memory per MPI process and I want submit job to sge116 on pe 
ompi on 6 slots.

#! /bin/bash
#$ -pe ompi *6*
#$ *-l h_vmem=2G*

machinefile=$TMPDIR/nodes
awk '{ for (i=0;i<$2;++i) {print $1} }' $PE_HOSTFILE >> $machinefile
mpirun --hostfile $machinefile -np $NSLOTS a.out
------------------------------------------------------------------------
*conf -sc* | grep "h_vmem"
---------------------------------------------------------------------------consumable--------
h_vmem              h_vmem       MEMORY <=    YES *YES*        0        0
------------------------------------------------------------------------
*qconf --me* sge116
hostname              sge116
complex_values *h_vmem=12G*


On 1/2/2012 8:29 PM, Dave Love wrote:
> Semi<semi at bgu.ac.il>  writes:
>
>> How to allocate memory per MPI thread via SGE?
> What exactly does that mean?
>
> If the problem is to require a certain amount of memory per MPI process
> (with the PE set up for one slot/process), make h_vmem consumable with
> appropriate values on the hosts and submit jobs with
> -l h_vmem=<memory/process>.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gridengine.org/pipermail/users/attachments/20120103/5753e8c5/attachment.html>


More information about the users mailing list