PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which two lines of code should you remove?

You create an OpenMP application by using Microsoft Visual C++. You write the following lines of code. (Line numbers are included for reference only.)

01 omp_set_num_threads(10);
02 int dataA, dataB, dataC, dataD;
03 #pragma omp parallel private(dataC)
04 {
05 #pragma omp critical
06 dataC=dataA++;
07 #pragma omp atomic
08 dataC++;
09 #pragma omp master
10 {
11 #pragma omp critical
12 dataD++;
13 }
14 #pragma omp atomic
15 dataB++;
16 }

You need to remove unnecessary synchronization constructs. Which two lines of code should you remove? (Each correct answer presents part of the solution. Choose two.)

Which two communication semantics should you choose?

You are developing a parallel application that will be deployed to a Windows HPC Server 2008 cluster.You plan to use the Microsoft Message Passing Interface (MPI) library. You need to implement a new procedure for send and receive operations to allow overlapping of computation with communication routines. Which two communication semantics should you choose? (Each correct answer presents part of the solution. Choose two.)

What should you do?

You are creating an application that uses Microsoft Message Passing Interface (MPI). The library has the following communication primitives:
Blocking communication primitives like send and receive operations Non-blocking communication primitives like n_send and n_receive operations You write the following code segment for the processes named P0 and P1 in the application.
(Line numbers are included for reference only.)

01 P0:
02 for (i = 0; i < 1000; i++) {
03 produce_data(&data[i]);
04 send(&data[i], 1, P1);
05 }
06
07 P1:
08 for (i = 0; i < 1000; i++) {
09 receive(&a, 1, P0);
10 process_data(&a);
11 }

Users report that the application processes data slowly. You need to ensure that the application processes data quickly.
What should you do?

Which command should you run?

You administer a Windows HPC Server 2008 cluster in a domain named contoso1.com. The forest includes two domains named contoso1.com and contoso2.com. User accounts from both domains access the cluster by using the scheduler named headnode.contoso1.com. A user named allison@contoso2.com must manage jobs for all users. You need to grant the appropriate permissions to allison@contoso2.com. Which command should you run?

Which command should you run on the head node?

You administer a Windows HPC Server 2008 cluster that has four compute nodes. The HPC Pack Client Utilities are installed on each compute node. A user reports that during the last week, a compute node named node1 was unavailable intermittently. You need to view the node events and the time of each event that occurred during the last week for node1. Which command should you run on the head node?