I am trying to parallelism a Fortran code using OpenMP which calculates a product of matrices of large dimensions: AxB = C. So I have a number of loops to initialize arrays and then to calculate the matrix product. After my main loops parallelized , I compared the execution time of my program and my sequential program parallelized using the time function of the shell. I get the non- parallelized program runs faster. The goal of parallelization is to reduce the computation time. The results I get are inconsistent. How to parallelize the following code by OpenMP?
Bookmarks