Parallelize the program using MPI

tekijä SahibYar

Write a program search.c in which four processors search an array in parallel (each gets a fourth of the elements to search). All the processors are searching the integer array for the element whose value is 11. There is only one 11 in the entire array of 40,000 integers.\nUse as input file called data which contains the integer array (ASCII, one element per line). Before the searching begins have ONLY P0 read in the array elements from the data file and distribute one fourth to each of the other three processors and keep one fourth for its own search. \nWhen one processor has found the element 11, it should notify all the other processors using a non-blocking MPI command, then print the index that the 11 was found at and stop. On receiving the notification the other processors should print out the index they are at at that time and stop searching. Place the results in a file search.txt

image of username SahibYar Flag of Pakistan Lahore, Pakistan

Tietoa minusta

*** WE ARE EXPERT IN MOBILE APP DEVELOPMENT AND WEB DEVELOPMENT *** We are a startup of 10 people , Our goal is to fulfill the 110% expectations of our clients - the extra 10% is for problems our client may not have realized or for adding new ideas. We have worked on different contents 1. FullStack Web Development, 2. Android App Designing / development, 3. CRM, Payment Systems, Enterprise Systems 4. Data Science and Machine Learning, Services: We have expertise in C/C++, C#, Java, Python, PHP, React.js, Angular, Devops. Why work with us. 1. Daily or weekly updates during development 2. Deliver clean and robust code 3. Maintenance and any updates after development (if needed) 4. Available over 20 hours in a day for communication and to offer our services. 5. Free consultancy. We assure that you would be happy to choose us as our mission is to build the long-term relationship. We are just a click away to help you. Please feel free to contact us at any time.

dollaria50 dollaria / tunti

45 arvostelua