70-691 Free Dumps Study Materials
Question 16: }
You need to ensure that the total number of numDarts is only available on the process that has a rank 0.
Which code segment should you insert at line 13?
A. MPI_Reduce(&numDarts, &total, 1, MPI_INT, MPI_SUM, 0, MPI_COMM_WORLD)
B. MPI_Allreduce(&total, &numDarts, 1, MPI_INT, MPI_SUM, MPI_COMM_WORLD)
C. MPI_Gather(&numDarts, 1, MPI_INT, &total, 1, MPI_INT, 0, MPI_COMM_WORLD)
D. MPI_Allgather(&numDarts, 1, MPI_INT, &total, 1, MPI_INT, MPI_COMM_WORLD)
Correct Answer: A
10. You plan to develop a Microsoft Message Passing Interface (MPI) application by using Microsoft
Visual Studio.
You have installed the Microsoft HPC Pack 2008 SDK at C:\Program Files\Microsoft HPC Pack 2008
SDK.
You create a new console application.
You need to ensure that the application compiles for a 64-bit architecture.
Which two tasks should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Set the Import Library property to msmpi.lib.
B. Set the Additional Dependencies property to msmpi.lib.
C. Set the Additional Library Directories property to C:\Program Files\Microsoft HPC Pack 2008
SDK\lib\amd64.
D. Set the Additional Manifest Dependencies property to C:\Program Files\Microsoft HPC Pack 2008
SDK\lib\amd64.
Correct Answer: BC
11. You develop a parallel application by using Microsoft Visual Studio 2008.
You have installed the Microsoft HPC Pack 2008 SDK at C:\Program Files\Microsoft HPC Pack 2008
SDK.
You create a new console application based on Microsoft Message Passing Interface (MPI). You set the
Debugger to Launch property to MPI Cluster Debugger.
You need to ensure that five processes are launched when the application is run in debug mode in Visual
Studio 2008.
Which two tasks should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Set the MPIRun Arguments property to -n 5.
B. Set the Application Arguments property to -n 5.
C. Set the MPIRun Working Directory property to C:\Program Files\Microsoft HPC Pack 2008 SDK\bin.
D. Set the MPIRun Command property to C:\Program Files\Microsoft HPC Pack 2008 SDK\bin\MPIExec.
E. Set the Application Command property to C:\Program Files\Microsoft HPC Pack 2008
SDK\bin\MPIExec.
Correct Answer: AD
12. You create a parallel application by using Microsoft Visual Studio 2008.
The application prints a message to the console of all Microsoft Message Passing Interface (MPI)
processes except for one. The application terminates and displays an error message.
You need to change the code in the application so that the application completes successfully.
Which set of tasks should you include in the application?
A. Include mpi.h
Link to msmpi.lib
Call MPI_Start
Call MPI_Comm_rank
Call MPI_Finalize
B. Include mpi.h
Link to msmpi.lib
Call MPI_Init
Call MPI_Comm_rank
Call MPI_Finalize
C. Include mpi.h
Link to ccpapi.tlb
Call MPI_Init
Call MPI_Comm_rank
D. Include mpi.h
Link to msmpi.lib
Call MPI_Init
Call MPI_Comm_size
Correct Answer: B
13. You plan to create a parallel application by using Microsoft Visual C++.
You want to use the Microsoft Message Passing Interface (MPI) library in the application.
You need to ensure that the application can be compiled for both 32-bit and 64-bit platforms. You also
need to ensure that targeting both platforms requires minimum maintenance.
What should you do?
A. Create a separate project for each platform.
B. Create separate solution files for each platform.
C. Create separate custom build rules for each platform.
D. Create a separate build configuration for each platform.
Correct Answer: D
14. You create a Microsoft Message Passing Interface (MPI) application by using Microsoft Visual Studio
2008.
The application process is named MPIApplication.exe. You plan to debug the application by using the MPI
Cluster Debugger in Visual Studio 2008.
You need to attach the debugger to the remote process on a compute node.
Which process should you attach to?
A. smpd.exe
B. mpiexec.exe
C. msvmon.exe
D. MPIApplication.exe
Correct Answer: C
15. You create a Microsoft Message Passing Interface (MPI) application by using Microsoft Visual Studio
2008.
You plan to debug the application by using Visual Studio 2008.
You need to configure the nodes that will be used for debugging.
What should you do?
A. Use the Cluster Debugger Configuration tool in Visual Studio.
B. Use the debugging pane in the Visual Studio project property pages.
C. Use the configuration pane in the Cluster Administration Console tool.
D. Use the node management pane in the Cluster Administration Console tool.
Correct Answer: A