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<[email protected]>  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>.
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to