mpirun without options runs a program on one process only

Enrico

Here I read

If no value is provided for the number of copies to execute (i.e., neither the "-np" nor its synonyms are provided on the command line), Open MPI will automatically execute a copy of the program on each process slot (see below for description of a "process slot")

So I would expect

mpirun program

to run eight copies of the program (actually a simple hello world), since I have an Intel® Core™ i7-2630QM CPU @ 2.00GHz × 8, but it doesn't: it simply runs a single process.

Alexander Vogt

If you do not specify the number of processes to be used, mpirun tries to obtain them from the (specified or) default host file. From the corresponding section of the man page you linked:

If the hostfile does not provide slots information, a default of 1 is assumed.

Since you did not modify this file (I assume), mpirun will use one slot only.


On my machine, the default host file is located in

/etc/openmpi-x86_64/openmpi-default-hostfile

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Mocha runs only one test

分類Dev

Find out what program runs in the java.exe process

分類Dev

Only one process prints in unix, multiprocessing python

分類Dev

Is single threaded process contains only one thread?

分類Dev

Celery - Only one instance per task/process?

分類Dev

Passing options to a program: what's the convention for one dash vs two?

分類Dev

Telegram only runs with sudo

分類Dev

my program reduces music speed by 50% but only in one channel

分類Dev

for loop runs only once (python)

分類Dev

Logic going awry in a program that runs hangman (Java)

分類Dev

Why this C++ program complies and runs in CodeBlocks

分類Dev

Create different runs of a program and use its output

分類Dev

I'd like to create a program that returns basic AzureAD information without tying it to one tenant

分類Dev

Script works fine without function. Turning it into one makes the program fail

分類Dev

Why does CILK_NWORKERS affect program with only one cilk_spawn?

分類Dev

Is there a way to process only one input event after a key is pressed using GLFW?

分類Dev

TweenJs - rotate rectangle on click runs only once

分類Dev

Insert to sqlite only runs the last statement

分類Dev

Android app runs only on emulator but not on device

分類Dev

How to disable a div after only one click in javascript without disabling click event on elements within it?

分類Dev

Why is the `cron.hourly` line in `/etc/crontab` the only one without `test -x /usr/sbin/anacron`?

分類Dev

For a small dictionary list program runs, but for a large list it gives an error

分類Dev

How to schedule an Oozie workflow that runs a Java program on a HDInsight cluster

分類Dev

Linux - Isolate process without containers

分類Dev

timeout without killing process in bash

分類Dev

Create persistent process without inittab

分類Dev

Two cronjobs not working (one to start a process, one to stop a process)

分類Dev

Process ID changes when program is visible or minimized

分類Dev

How to process an array one by one in javascript?

Related 関連記事

  1. 1

    Mocha runs only one test

  2. 2

    Find out what program runs in the java.exe process

  3. 3

    Only one process prints in unix, multiprocessing python

  4. 4

    Is single threaded process contains only one thread?

  5. 5

    Celery - Only one instance per task/process?

  6. 6

    Passing options to a program: what's the convention for one dash vs two?

  7. 7

    Telegram only runs with sudo

  8. 8

    my program reduces music speed by 50% but only in one channel

  9. 9

    for loop runs only once (python)

  10. 10

    Logic going awry in a program that runs hangman (Java)

  11. 11

    Why this C++ program complies and runs in CodeBlocks

  12. 12

    Create different runs of a program and use its output

  13. 13

    I'd like to create a program that returns basic AzureAD information without tying it to one tenant

  14. 14

    Script works fine without function. Turning it into one makes the program fail

  15. 15

    Why does CILK_NWORKERS affect program with only one cilk_spawn?

  16. 16

    Is there a way to process only one input event after a key is pressed using GLFW?

  17. 17

    TweenJs - rotate rectangle on click runs only once

  18. 18

    Insert to sqlite only runs the last statement

  19. 19

    Android app runs only on emulator but not on device

  20. 20

    How to disable a div after only one click in javascript without disabling click event on elements within it?

  21. 21

    Why is the `cron.hourly` line in `/etc/crontab` the only one without `test -x /usr/sbin/anacron`?

  22. 22

    For a small dictionary list program runs, but for a large list it gives an error

  23. 23

    How to schedule an Oozie workflow that runs a Java program on a HDInsight cluster

  24. 24

    Linux - Isolate process without containers

  25. 25

    timeout without killing process in bash

  26. 26

    Create persistent process without inittab

  27. 27

    Two cronjobs not working (one to start a process, one to stop a process)

  28. 28

    Process ID changes when program is visible or minimized

  29. 29

    How to process an array one by one in javascript?

ホットタグ

アーカイブ