Semi <[email protected]> writes:

> Please let me know if I understand you right.

I think so, but this message has funny formatting.

> 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

If you're using open-mpi, you shouldn't (need to) do that.  Make sure
you have it built with SGE support and it will default to the right host
list and number of slots.

> ------------------------------------------------------------------------
> *conf -sc* | grep "h_vmem"
> ---------------------------------------------------------------------------consumable--------
> h_vmem              h_vmem       MEMORY <=    YES *YES*        0        0
> ------------------------------------------------------------------------

You might want a default value there.  I have 2000M as the smallest
nodes have 2G/core.

> *qconf --me* sge116
> hostname              sge116
> complex_values *h_vmem=12G*

_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to