sali
sali

Reputation: 219

why mpirun duplicates the program by default?

I am new to openMPI, I have problem understanding the concepts. (I found this pretty helpful)

1- Could anyone breifly explain why we use openMPI? To my understanding, OpenMPI is used to parallelize those sections of the code which can run in parallel.

2- why mpirun duplicates a single program? simply because my laptop is dual core?

3 - what changes in the code I need to apply to make it run correctly? I mean ONE program parallelized on two available cores? not 2 similar threads of the same program.

Upvotes: 0

Views: 281

Answers (1)

kec
kec

Reputation: 2149

MPI is primarily of benefit when used in a multiple machine environment, in which you must run multiple processes.

It requires heavy modification of the program.

Upvotes: 1

Related Questions