What should you do?
You create an OpenMP application by using Microsoft Visual C++. You are debugging your application. The OpenMP parallel region contains a breakpoint. When the breakpoint is reached, the Threads window displays multiple threads that are running. You need to identify the point of execution of all threads in the OpenMP parallel region. What should you do?
What should you do?
You administer a Windows HPC Server 2008 cluster for the Engineering department of your company. The Engineering users are members of the EngineeringUsers group. The EngineeringUsers group has permission to use all existing templates. The Finance department wants to find out whether Windows HPC Server 2008 can meet their requirements. You create a user group named FinanceUsers and add all the Finance users to the group. You need to ensure that the following requirements are met: Jobs submitted by the Engineering users must have a higher priority than other jobs.The number of nodes available to the Engineering users must not be reduced. What should you do?
What should you do?
You create an OpenMP application by using Microsoft Visual C++. You are debugging the application. You set a breakpoint to the first line of code inside an OpenMP parallel region.
The first thread execution inside the OpenMP parallel region must be debugged. You need to ensure that you debug the first thread in isolation when you step through the code.
What should you do?
What should you do?
You administer a Windows HPC Server 2008 cluster for your company. The cluster contains 64 nodes. You create two node groups named BigMem and HaveGPU and assign 32 nodes to each node group. An urgent update has been released for the nodes in the HaveGPU node group. All nodes currently process jobs. The queue has 100 additional long-running jobs waiting for the availability of compute resources. You need to prepare all the nodes in the HaveGPU node group to apply the urgent update without terminating the running jobs or accepting new jobs. What should you do?
Which line of code should you insert at line 06?
You create an OpenMP application by using Microsoft Visual C++. The application includes an OpenMP parallel region. The region contains the following code segment.
(Line numbers are included for reference only.)
01 int global=0;
03 void PerformComputation(int value)
04 {
05 //…
07 global+=value;
08 }
10 int _tmain(int argc, _TCHAR* argv[])
11 {
12 #pragma omp parallel for
13 for(int count=0;count<100;count++)
14 {
15 //…
16 PerformComputation(count);
17 //…
18 }
19 }
For each iteration that updates the global variable, the for loop must call the PerformComputation method.
You need to ensure that shared memory access to the global variable is protected.
Which line of code should you insert at line 06?
Which command should you run on the head node?
You administer a Windows HPC Server 2008 cluster that has four compute nodes. Each compute node has two single-core processors. You have a Microsoft Message Passing Interface (MPI) executable file named myapp.exe. You have the following requirements: The MPI compute job must use all processes across all compute nodes. When the MPI compute job runs, no other job must process. You need to submit the myapp.exe file to the cluster by using the job command. Which command should you run on the head node?
Which two actions should you perform?
You develop an application that reads data from a file, performs calculations on the data, and writes the result to another file. The read and write operations are atomic and are not parallelized.You divide the calculation tasks across a set of threads by using the following do construct. (Line numbers are included for reference only.)
01 #pragma omp parallel shared(in, out, len)
02 {
03 read_array(in, len);
05 #pragma omp for private(j)
06 for(j=1; j<len; j++)
07 compute_result(out(j),in,len);
08 write_array(out, len);
09 }
You need to ensure that the read and write tasks are performed by a single thread. Which two actions should you perform? (Each correct answer presents part of the solution.
Choose two.)
Which option correctly defines the result of the script?
You administer a Windows HPC Server 2008 cluster that has three nodes named node1, node2, and node3. You have the following script: Job Submit /ID:28job add 28 /requirednodes:node1,node2 /name:Task1 task1.exejob add 28 /requirednodes:node1,node2 /name:Task2 /depend:Task1 task2.exejob add 28 /requirednodes:node1,node2 /name:Task3 /depend:Task2 task3.exejob submit 28 You need to find out the result of the script. Which option correctly defines the result of the script?
Which line of code should you use to replace the code at line 04?
You are an application developer for your company. Users report that the performance of an application installed on your company s net wor k i s sl ow You use a profiler to identify the problem. You discover that in a parallel loop, one type of task takes only a few seconds to complete, whereas another type of task takes a few minutes to complete. You also discover that the tasks do not modify input data. The parallel loop is shown in the following code segment. (Line numbers are included for reference only.)
01 #pragma omp parallel shared(x) private(i, res)
03 {
04 #pragma omp for
05 for (i=0; i < N; i++)
06 {
07 res = f(i);
08 if (res < 7)
09 smallwork(x[i]);
10 else
11 bigwork(x[i]);
12 }
13 }
You need to ensure that the workload is balanced among the processors that run the application, regardless of the OpenMP API default settings. Which line of code should you use to replace the code at line 04?
Which command should you run on the head node?
You administer a Windows HPC Server 2008 cluster that has four compute nodes isolated on private and application networks. Each compute node has two single-core processors. The CCP_MPI_NETMASK environment variable is set to the application network with a value of 157.59.0.0/255.255.255.0. The private network is set to 10.0.0.0/255.255.255.0. You have a Microsoft Message Passing Interface (MPI) executable file named myapp.exe. The MPI job must use the private network instead of the default application network. You need to submit myapp.exe to the cluster by using the job command. Which command should you run on the head node?