PanagiotisPapageorgiou / Parallel-Systems-MPI-OpenMP-project

Simple project that aims to optimise the execution of code that calculates heat transfer in an area. The optimisations were performed using MPI and OpenMP libraries as part of the Parallel Systems Course (2014-2015)
0 stars 0 forks source link

omp.c #1

Open ghost opened 7 years ago

ghost commented 7 years ago

Thanks for sharing your work with us, having a look at omp.c file, you have mixed MPI with OpenMP, what would you suggest if I'd like to test the performance solely based on OpenMP ?

PanagiotisPapageorgiou commented 7 years ago

Hello and thank you for your time in advance! Sorry for the lack of documentation and the late response but I didn't have any time to update and I will do so soon. The omp file was created indeed as a mix between MPI and OpenMP mechanisms with OpenMP being used in the update function since that's what I was tasked to do in the assignment.

If you would like to test solely on OpenMP peformance I would suggest you take a look at the linear.c and the old Mpi files. In the old Mpi code each computer node would perform some calculations and then send its results to a master node. You could try to simulate these mechanisms with OpenMP threads where each thread sends its results to a master thread. This is the basic idea and it can be surely improved I believe.

Thank you for your time