when I run my program on two nodes, and set the number of threads larger than 1 (i.e., 2-16 threads), I've encountered the segmentation error:
forrtl: severe (174): SIGSEGV, segmentation fault occurred
if the openMP directives are commented (still using MPI) the error is gone.
any comment/advice is appreciated!!
You could probably refer this article to address the issue. https://software.intel.com/en-us/articles/determining-root-cause-of-sigsegv-or-sigbus-errors
If the issue still exists, could you please add –g and –traceback compiler options and rerun. It can help to identify the point of the failure and calling sequence in reaching that point.