Question: Must be in C Language, High Perfomance Computing MPI (4) Compile your program, using the following command: Find the Parallel Sum Using Divide and Conquer
Must be in C Language, High Perfomance Computing MPI
(4) Compile your program, using the following command: Find the Parallel Sum Using Divide and Conquer Using C Language (5) create a job script named iob and use 8 nodes to run your program. You can copy the job script file given in labl below, and then modify it accordingly 1. Assume there are 8 processing nodes and there are 256 numbers (1,2256) to be added. The original list is initialized at processor 0, and then is divided into two halves to broadcast lel by level until the leaves are reached as shown below (each processor will have 256 8-32 numbers). #lbin/bash #PBS-N job3 #PBS-q production #PBS-I select-&mcpns-1 #PBS-l place-free #PBS-V Original list cd SPBS O WORKDIR mpiru.np 8achinefile SPBS NODEFILEhello P2 P6 (6) Then run command ifnecessary (T) Then run command (8) Run the following command to check the status of your program: After each processor receives its final sublist (32 numbers), it calculates its partial sum. The partial sums will be reduced level by level as shown below. The final sum will be obtained and printed out on processor 0 (9) When your program is finished, list your filesin the curent directory to check whether you have file narned like uuakewo anddanom, Then open the file vigbgeor and check the content. You should have the following content Processor 0 sends sublist to processor 4 at level 1 Processor 0 sends sublist to processor 2 at level 2 Processor 0 sends sublist to processor 1 at level 3sni The partial sum on processor 0 is 528 Processor 1 receives gublist from processor 0 at level 3 The partial sum on processor 1 is 1552 Processor 1 sends sublist to processor 0 at level 0 Processor 2 receives gublist from processor 0 at level 2 Processor 2 sends sublist to processor 3 at level 3 The partial sum on processor 2 is 2576 Processor 4 receives sublist from processor 0 at level 1 Processor 4 sends sublist to processor 6 at level2 Processor 4 sends sublist to processor 5 at level 3 The partial sum on processor 4 is 4624 Processor receives ghist from processor 4 at level 2 Processor 6 sends sublist to processor7 at level 3 PS Po Final sum l(2) Create a new directory lab4 and enter the new directory (3) Write a program named DCParalleSum.c
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
