Computers and Technology

Write an mpi program named intro_mpi. c that performs the following tasks. assume that the mpi program is going to be run with 8 processes. have process 0 creates a 16-element array of integers named arrayzero and randomly initializes each element in this array. using mpi_send and mpi_recv, have process 0 sends the second element in this array to process 1. output the second element of arrayzero in process 0 and a variable contained the newly sent data in process 1 to verify the communication. using mpi_broadcast, broadcast the content of the variable of process 1 from task 1 to all other processes, to be saved in a new variable called fromone. output this variable from all eight processes to verify the communication. using mpi_reduce, calculate the sum of the fromone variables (task 2) of all the processes and store the final value in process 2. using mpi_scatter, scatter the 16-element array from process 0 into 2-element arrays named fromarray at all other processes. output the content of fromarray for each process for verification purposes. using mpi_gather, gather the fromarray arrays into a second array in process 0 named arrayone. for process 0 only, output arrayzero and arrayone for verification purposes

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 20:00, bowmanari2154
What is used to analyze and summarize your data without graphical support
Answers: 1
image
Computers and Technology, 23.06.2019 14:30, HarryPotter10
Open this link after reading about ana's situation. complete each sentence using the drop-downs. ana would need a minimum of ato work as a translator. according to job outlook information, the number of jobs for translators willin the future.
Answers: 3
image
Computers and Technology, 24.06.2019 04:30, littledudefromacross
Write and test a python program to find and print the largest number in a set of real (floating point) numbers. the program should first read a single positive integer number from the user, which will be how many numbers to read and search through. after reading in all of the numbers, the largest of the numbers input (not considering the count input) should be printed.
Answers: 1
image
Computers and Technology, 24.06.2019 10:20, Cobetate
Multiple choice project create a program with two multiple choice questions. 1. users have two attempts only, show attempt number each time. hint: while loop with break control. (20%) 2. only one correct answer for each question, use switch case for each question. (20%) 3. show total score after the two questions are answered. hint: . (20%) 4. user have options to answer the two questions again if first attempt score is not 100%. hint: if statment. (20%) 5. use string method .toupper() to allow users to enter with lowercase or uppercase letters. (20%) 1. where is the capital of the state of florida? a. orlando b. tallahassee c. miami d. tampa b 2. where is walt disney world park located in florida? a. orlando b. tallahassee c. miami d. tampa a
Answers: 1
Do you know the correct answer?
Write an mpi program named intro_mpi. c that performs the following tasks. assume that the mpi progr...

Questions in other subjects: