Back
Close

Have fun with MPI in C

spagnuolocarmine
125.8K views

Introduction Questions

?What is Symmetric multiprocessing? -[x] involves a multiprocessor computer hardware and software architecture where two or more identical processors are connected to a single, shared main memory. -[x] involves a multiprocessor computer hardware and software architecture where two or more identical processors are connected to a multiple, shared main memory.

Provide the C code using OpenMPI that write on the STDOUT the number of the processors involved in the computation.
Provide the C code using OpenMPI that write on the STDOUT the rank of the process. Consider that the execution on the mpi process use the flag -np=1. The output of your program must be in the form: Hello world from processor 4ec330b6dbf8, rank 0 out of 1 processors.
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io