Closed shanedsnyder closed 3 years ago
In GitLab by @mdorier on Jun 13, 2017, 09:20
Note: I realize that there is already an ssg-config.h, but it's not installed along nor included by ssg.h.
In GitLab by @mdorier on Jun 13, 2017, 09:48
I have submitted a merge request to fix this issue.
In GitLab by @shanedsnyder on Jun 14, 2017, 08:43
This is fixed in commit 0c3e972a.
Now there is a separate header for MPI related stuff that has to be additionally included by SSG users who want the MPI bootstrapping routine.
In GitLab by @shanedsnyder on Jun 14, 2017, 08:43
closed
In GitLab by @mdorier on Jun 13, 2017, 09:10
In a code using SSG (branch ssg-interface-rewrite), one has to #define HAVE_MPI before calling #include to enable MPI, but that does not guaranty that SSG was actually compiled with MPI.
Solution: there should be an ssg-config.h generated from a ssg-config.h.in and installed along ssg.h. This file would #define SSG_HAVE_MPI (or not) depending on how SSG was configure. ssg.h should then #include and use #ifdef SSG_HAVE_MPI instead of HAVE_MPI.