You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several examples in the EXAMPLE subdirectories use MPI constants such as MPI_THREAD_SINGLE in C case statements. This leads to compiler errors with certain MPI implementations.
I have written a forwarding MPI implementation MPItrampoline. In this implementation, MPI constants such as MPI_THREAD_SINGLE are regular integer constants and are not known at compile time. Consequently, they cannot be used in a C case statement. (The MPI standard 4.0 lists in section 2.5.4 which MPI constants can be used in case statements.)
Could you change you code to use if statements instead of a switch statement? I will open a pull request for this.
The text was updated successfully, but these errors were encountered:
Several examples in the
EXAMPLE
subdirectories use MPI constants such asMPI_THREAD_SINGLE
in Ccase
statements. This leads to compiler errors with certain MPI implementations.I have written a forwarding MPI implementation MPItrampoline. In this implementation, MPI constants such as
MPI_THREAD_SINGLE
are regular integer constants and are not known at compile time. Consequently, they cannot be used in a Ccase
statement. (The MPI standard 4.0 lists in section 2.5.4 which MPI constants can be used incase
statements.)Could you change you code to use
if
statements instead of aswitch
statement? I will open a pull request for this.The text was updated successfully, but these errors were encountered: