Quiz Questions ITCS 41455145 Parallel Programming MPI ITCS

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

Quiz Questions ITCS 4145/5145 Parallel Programming MPI ITCS 4/5145 Parallel Programming, UNC-Charlotte, B. Wilkinson, 2012, Quiz. Questions 2 a. ppt June 15, 2012

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.

Name one MPI routine that does not have a named communicator as a parameter

Name one MPI routine that does not have a named communicator as a parameter (argument). a) b) c) d) e) f) MPI_Send() MPI_Bcast() MPI_Init() MPI_Barrier() None - they all have a named communicator as a parameter. none of the other answers

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.

What is meant by a non-blocking (or asynchronous) message passing routine in MPI? a)

What is meant by a non-blocking (or asynchronous) 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.

Under what circumstance might an MPI_Send() operate as an MPI_Ssend()? a) b) c) d)

Under what circumstance might an MPI_Send() operate as an MPI_Ssend()? a) b) c) d) If the available message buffer space becomes exhausted. If you specify more than a thousand bytes in the message. If the tags do not match. When the "synch" parameter is set in the parameter list of MPI_Send() e) Never

What does the MPI routine MPI_Barrier() do? a) Waits for all messages to be

What does the MPI routine MPI_Barrier() do? a) Waits for all messages to be sent and received. b) Will cause processes to wait for all processes within the specific communicator to call the routine. Then all processes send a message to the master process and continue. c) Makes a process to execute slower to allow debugging d) Waits for a specified amount of time. e) Will cause processes after calling MPI_Barrier() to wait for all processes within the specific communicator to call the routine. Then all processes are released and are allowed to continue.