Page 1 of 1

Write a complete MPI program to find how many elements are greater than or equal to 50 in an integer array X[N]. Use MPI

Posted: Wed Apr 27, 2022 3:46 pm
by answerhappygod
Write a complete MPI program to find how many elements are greater than or equal to 50 in an integer array X[N]. Use MPI collective communication functions in the following way. Define N as a constant with a value 1000. Each process is sent one group of 100 numbers from the array. Process 0 should fill the array X with random numbers between 0 and 99. Process 0 should print the result. Run the program with 10 processes.