1.
You submit a job to a Windows HPC Server 2008 cluster. The job is assigned a job ID of 35. You need to terminate the job if it runs for more than one hour. Which command should you use? Lead your way to certificates!
2.
You are an application developer. Your company uses a Windows HPC Server 2008 cluster. You create a job and assign a job ID of 201. You have not submitted the job for execution. The job includes two tasks named Task1 and Task2. You plan to add a new task named Task3 to the job. Task3 consists of an executable file named hostname.exe. You have the following requirements: Task1 and Task2 must start as soon as the cluster can schedule them on nodes. Task3 must not begin execution until Task2 has completed. You need to add Task3 to the job and submit the job so that the tasks are executed in the correct order. Which set of commands should you run?
3.
You are an application developer. You use a Windows HPC Server 2008 cluster. The queue on the cluster contains 10 jobs. The states of the jobs are either Queued or Running. You submit five new jobs that have job IDs of 201 through 205. The new jobs were assigned the project name AppDev. You need to change the project name for the new jobs from AppDev Lead your way to certificates! to Dev-100 without modifying other jobs. Which command should you run?
4.
You are an application developer. You use a Windows HPC Server 2008 cluster. The queue on the cluster contains 10 jobs. The states of the jobs are either Queued or Running. You submit five new jobs that have job IDs of 201 through 205 by using a project named AppDev. You discover that you have submitted the jobs by using the wrong job description file. You need to cancel the five new jobs. Which command should you run?
5.
You plan to run an application on a Windows HPC Server 2008 cluster. The application has multiple tasks that must be completed in a sequential order. The first task uses the task1.exe command and the second task uses the task2.exe command. You submit the job to the cluster. The job is assigned a job Id of 52. You need to configure the job appropriately so that task1 runs and completes before task2 starts. Which command should you use?
6.
Your company uses Windows HPC Server 2008. You create a new job and assign a job ID of 1356. You plan to add a new parametric sweep task to the job before you submit the job for execution. The task will run an application named paramapp.exe that takes a single command-line parameter. Parmapp.exe must execute 20 times. The command-line parameter must iterate from 1 to 20. You need to add a task to the job to execute paramapp.exe with the correct parameters. Which command should you run?
7.
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 } 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?
8.
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.)
9.
You create a parallel application by using Microsoft Visual C++. You write the following code segment. (Line numbers are included for reference only.) 01 MPI_Init(&argc, &argv); 02 int a[10], myrank; 03 MPI_Comm_rank(MPI_COMM_WORLD, &myrank); 04 if (myrank==0) 05 { 06 //Do some work 07 MPI_Send(&a, 10, MPI_INT, 1, 1, MPI_COMM_WORLD); 08 } 09 else if(myrank==1) 10 { 11 int b[10]; 12 MPI_Status status; 13 MPI_Request req; 15 } Data sent by rank 0 must be received by rank 1. You need to ensure that while rank 1 is waiting to receive data, the process continues to call an external method for additional tasks. Which code segment should you insert at line 14?
10.
You create an OpenMP application by using Microsoft Visual C++. You write the following code segment. (Line numbers are included for reference only.) 01 #pragma omp parallel for 02 for(int i=0;i<50000;i++) 03 { 04 doWorkA(i); 05 doWorkB(i); 06 } The doWorkA and doWorkB methods are independent method calls. You need to optimize performance while protecting the method calls against multiple thread access.Which code segment should you use to replace lines 04 and 05?