Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Allocating some amount of memory for a process
From: Brock Palen (brockp_at_[hidden])
Date: 2008-04-17 08:12:35

OpenMPI does not do this. MPI codes are regular C and Fortran
programs, so if they ALLOCATE or malloc() memory, and linux/mac can
give it it will.

I think what you need is a batch system (Torque Plug goes here). We
use a batch system that will then place processes on nodes based on
memory and cpu availability.
In torque I do this with:

#PBS -l nodes=2:ppn=2,pmem=1gb

Thats 4 cpus across 2 nodes (ppn=processors per node) with 1gb of
memory per processor. PBS will not start my job until it can find 2
nodes with 2 cpus, where each cpu has 1 gb of memory free.

Brock Palen
Center for Advanced Computing

On Apr 17, 2008, at 6:49 AM, Cally K wrote:

> Hi everyone
> Hi, am a beginner in openmpi, does openmpi provide a function for
> allocating memory to a process. For example, I have a rendering
> process from paraview named pvserver and I would like to allocate a
> certain amount of memory for that process across a few nodes
> specified in the hostfile..Any idea...
> _______________________________________________
> users mailing list
> users_at_[hidden]