-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support PMPI interface #22
Conversation
I've tested this to compile Score-P and I currently get the following compilation error:
Score-P seems to explicitly want to know the MPI library, so I'm not sure what impact that might have (I faked it by telling it was Open MPI, that seemed to do the trick, the configure results look ok to me). |
ada9d4a
to
cb2a054
Compare
MPItrampoline is close to OpenMPI, so this could work. I found a bug in MPItrampoline ( |
cb2a054
to
4aa1fbe
Compare
This patch makes Score-P build with MPItrampoline. Score-P uses MPI constants as case expressions in C, which is not allowed by the MPI standard (e.g. MPI standard 3.1, section 2.5.4). It uses an MPI constant in another place to initialize a global variable in C. This currently works in C++, but not in C; I have added a work-around as well. |
@eschnett Yes, that's now building for me. I ran the jacobi tests for C/C++ and then seem to run without issue (also when using MPIwrapper to override the default MPI) |
@eschnett It looks like
|
e9abd3c
to
d104b79
Compare
I also needed to add several accidentally omitted MPI constants to MPItrampoline. |
|
28b05e3
to
fc9acdd
Compare
fc9acdd
to
82f125b
Compare
@ocaisa I'm trying to integrate the patch provided by @eschnett into Score-P. While the switch labels are straight forward, I don't see the |
@cfeld Thank you for looking into this. While I haven't tested the patch, it looks correct. (I notice that it also turns |
|
The new patch compiles successfully, I also did a quick runtime check (jacobi C++) and that also seems to work. |
@cfeld The problem is that MPItrampoline initializes the handles at link time (once it knows which MPI library to actually use), thus initialization needs to be delayed. Your choice seems optimal for this. |
OK, thanks for the explanation. We will patch Score-P accordingly. Fix will be available in Score-P 8.0. |
No description provided.