-
Notifications
You must be signed in to change notification settings - Fork 865
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
Update hook component to use enum MCA parameter #8313
Conversation
This was a community request to tighten up the MCA parameter before v5. |
Here is the error message when you get the option wrong:
|
8ee5508
to
5df7f98
Compare
Another option is the flag enumerator. That would allow it to take comma-delimited values such as "init,finalize". |
@hjelmn That sounds interesting. I like that more than |
Yeah, I created it because of |
I just pushed a new commit to the branch that uses the enum flags instead of just an enum. I also took out the '1' and '2' options since they are not really useful for this option (there are more verbose options).
Something odd (not related to this PR) is that the |
I think you might want to remove the duplicate value. I.e., pick In this mode of MCA values, those become distinct / different values. |
I don't think I understand - they are aliases for each other
|
I see it now. There is a check in
Since I was using a debug build it didn't trip when I tested (and worked fine). I took out the duplicates leaving only |
9ffb024
to
bac67d7
Compare
I fixed the
|
Here is how the MCA parameters show up in ompi_info now:
|
* `--mca ompi_display_comm VALUE` where `VALUE` is one or more of: - `mpi_init` : Display during `MPI_Init` - `mpi_finalize` : Display during `MPI_Finalize` * hook/comm_method: Use enum flags to select protocols Signed-off-by: Joshua Hursey <[email protected]>
Per offline discussion removed the 'none' option since not specifying the parameter is really 'none' anyway.
|
--mca ompi_display_comm
mpi_init
: Display duringMPI_Init
mpi_finalize
: Display duringMPI_Finalize