The suggestion is to parallelize the loop that calls subroutine2. Most important program fundamentally merely makes the call to subroutine1 and merely its arguments are confirmed. I utilize two substitutes. On the one hand, I write OpenMP clauses approximately the loop. On the other hand, I add an IF provisional branch approximately the call and I utilize MPI to share the results. In the OpenMP case, I add CALL KMP_SET_STACKSIZE(402653184) at the beginning of the most important program and I be able to run it by means of 8 threads on an 8 core apparatus. When I run it (on the similar 8 core apparatus) by means of MPI (moreover using 8 or 1 processors) it crashes immediately when makes the call to subroutine3 by means of a segmentation fault error.
Bookmarks