-
Notifications
You must be signed in to change notification settings - Fork 370
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
Allow setting MPI port names of MPI recording and stimulation backends from device labels #2585
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking about this again, I have to admit that I rather dislike the way this feature is implemented by hijacking the device label, which was originally meant to provide a descriptive device identifier for the user.
I think the right way of adding this would be a new device-specific backend property (e.g. mpi_address
). See this code in the ASCII recording backend for what I mean. The semantics would be that the address from this new property would used, or read from file if the property is empty.
Co-authored-by: Jochen Martin Eppler <[email protected]>
The same changes would have to be applied also to |
I agree; this would be especially annoying in cases where multiple recording backends are present that, in the worst case, share a mpi address, and they wouldn't be descriptively distinguishable via the property meant for it. The only question for me is whether it should still be falling back to silently accepting a file for the address or handling it always via the device_data. I.e., providing the address via I like it more when things are written verbosely than relying on documentation to understand behavior. Thus, I would argue for explicitly providing the address always via a device data field. This would also allow free users from having to be careful with the node_id to provide an address and also allow them to reuse the same file in cases where the address is the same. |
I think it is probably good enough to have an empty If you're willing to go the full length with checks for mutual exclusivity of multiple properties and such, I am also not against it, it just seems to be more work and I'm not sure the small user community of this backend justifies that. |
Pull request automatically marked stale! |
@marcelkrueger: what is the status of this? Thanks! |
@marcelkrueger: a gentle ping! |
I'm sorry for not getting back to you sooner. Unfortunately, I do not have the capacity right now to implement this properly. I might be able to pick it up at a later stage. |
Pull request automatically marked stale! |
I am closing this in favour of the restructured approach in #2858. |
This is PR adds the ability to set the port name for the MPI connection additionally via the device label.
Falls back to normal file based address providing if label is not set.
Originally created for the cosim framework by @mfahdaz