-1

I have been asked to write two MPI programs in c: one that computes statically and one that computes dynamically.

The objective is to find the integral of an equation (let's say f(x) = x for simplicity) over a given interval using the box method. The problem is simple enough, I just have no clue what my professor means by static computation and dynamic computation.

I should probably add that it has been requested that I use the Master-Worker (otherwise known as Master/Slave) model.

user3495690
  • 576
  • 3
  • 15

1 Answers1

1

I'm not 100% sure of what this "static" versus "dynamic" computation means in the context of MPI. But since it has been asked to use some master/slave approach, I guess that the "static" version might be business as usual, while the "dynamic" one might imply the use of MPI_Comm_spawn() as described in the dynamic process model chapter of the MPI standard.

That said, I find appalling that Master/Slave approaches, which are quite a niche for actual effective MPI parallelisations, are put forward so strongly in many MPI learning curricula. Indeed, I refer you to my thoughts about that which I wrote a while ago after having answered to too many Master/Slave oriented SO questions.

Community
  • 1
  • 1
Gilles
  • 9,269
  • 4
  • 34
  • 53
  • This may not be *precisely* the right answer, but it is about as close as you could get with the amount of info I offered (I wasn't very familiar with MPI at the time I posted the question). Thanks for your help! – user3495690 Nov 05 '15 at 14:16