Quiz Questions Parallel Programming MPI ITCS 45145 Parallel

  • Slides: 8
Download presentation
Quiz Questions Parallel Programming MPI ITCS 4/5145 Parallel Programming, UNC-Charlotte, B. Wilkinson, 2013, Quiz.

Quiz Questions Parallel Programming MPI ITCS 4/5145 Parallel Programming, UNC-Charlotte, B. Wilkinson, 2013, Quiz. Questions 2 a. ppt Sept 19, 2013

What is the name of the default MPI communicator? a) b) c) d) e)

What is the name of the default MPI communicator? a) b) c) d) e) DEF_MPI_COMM_WORLD It has no name. DEFAULT_COMMUNICATOR COMM_WORLD MPI_COMM_WORLD

What does the MPI routine MPI_Comm_rank() do? a) It compares the supplied process ID

What does the MPI routine MPI_Comm_rank() do? a) It compares the supplied process ID with that of the process and returns TRUE or FALSE. b) It returns an integer that is number of processes in the specifed communicator. The number is returned as an agument. c) It converts the Linux process ID to a unique integer from zero onwards. d) It returns an integer that is the rank of the process in the specifed communicator. The integer is returned as an agument. e) It returns the priority number of the process from highest (0) downwards.

What is the purpose of a message tag in MPI? a) To provide a

What is the purpose of a message tag in MPI? a) To provide a mechanism to differentiate between message -passing routines written by different programmers b) To count the number of characters in a message c) To indicate the type of message d) To provide a matching mechanism differentiating between message sent from one process to another process

When does the MPI routine MPI_Recv() return? a) After the arrival of the message

When does the MPI routine MPI_Recv() return? a) After the arrival of the message the routine is waiting for but before the data has been collected. b) Never c) Immediately d) After a time specified in the routine. e) After the arrival of message the routine is waiting for and the data collected.

What is meant by a blocking message passing routine in MPI? a) The routine

What is meant by a blocking message passing routine in MPI? a) The routine returns when all the local actions are complete but the message transfer may not have completed. b) The routine returns immediately but the message transfer may not have completed. c) The routine returns when the message transfer has completed. d) The routine blocks all actions on other processes until it has completed its actions. e) None of the other answers.

In the routine: MPI_Send(message, 13, MPICHAR, x, 10, MPI_COMM_WORLD); when can x be altered

In the routine: MPI_Send(message, 13, MPICHAR, x, 10, MPI_COMM_WORLD); when can x be altered without affecting the message being transferred? a) Never. b) After the routine returns, i. e. in subsequent statements c) Anytime d) When the message has been received e) None of the other answers

What does the routine MPI_Wtime() do? a) Waits a specific time before returning as

What does the routine MPI_Wtime() do? a) Waits a specific time before returning as given by an argument. b) Returns the elapsed time from some point in the past, in seconds. c) Returns the elapsed time from the beginning of the program execution, in seconds. d) Returns the time of the process execution. e) Returned the actual time of day f) None of the other answers.