Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] multithreaded jobs
From: Ralph Castain (rhc_at_[hidden])
Date: 2013-04-25 15:09:56

Depends on what NSLOTS is and what your program's "-t" option does :-)

Assuming your "-t" tells your program the number of threads to start, then the command you show will execute NSLOTS number of processes, each of which will spin off the number of indicated threads.

On Apr 25, 2013, at 11:39 AM, Vladimir Yamshchikov <yaximik_at_[hidden]> wrote:

> Hi all,
> The FAQ has excellent entries on how to schedule on a SGE cluster non-MPI jobs, yet only simple jobs are exemplified. But wnat about jobs that can be run in multithreaded mode, say specifying option -t number_of_threads? In other words, consider a command an esample qsub script:
> ..........
> #$ -pe openmpi 16
> ..........
> mpirun -np $NSLOTS my_program -t 16 > out_file
> Will that launch a program to run in 16 threads (as desired) or will this launch 16 instances of a program wiith each instance trying to run in 16 threads (certainly not desired)?
> _______________________________________________
> users mailing list
> users_at_[hidden]