Multiple choices (Only one answer is correct in each question) [2 pts each] 1) W
ID: 3559515 • Letter: M
Question
Multiple choices (Only one answer is correct in each question) [2 pts each]
1) What functions have to be included in any MPI program?
A. MPI_Init and MPI_Abort
B. MPI_Init and MPI_Finalize
C. MPI_Send and MPI_Recv
D. MPI_Comm_size and MPI_Comm_rank
2) To run an MPI program on a linear array of 4 nodes, what allocation of processes (viz., the list of the ranks of the processes allocated on each node of the linear array) is possible?
A. 0 1 2 3
B. 3 2 1 0
C. 1 2 3 4
D. A and B
3) Suppose that node A is sending an n-packet message to node B in a distributed-memory system with a static network. Also suppose that the message must be forwarded through k intermediate nodes. The startup time is s and the time for transmitting one packet to a nearby node is c. What is the most proper formula for calculating the time for the above communication?
A. s + k
Explanation / Answer
Answer question 1.) The functions to be included in MPI program:b. MPI_INIT and MPI_FINALIZE.
4.) NOT a collective communication function isa. MPI_SEND.
5. Reason why we use parallel computing is (d.) bcoz we divide a work or problem is devided and thus makes a work fast.
6.) According to Flynn
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.