Skip to content

ompi_info_t does not follow OMPI object semantics #10402

@devreal

Description

@devreal

According to the discussion on #10349, the ompi_info_t is a) an opal_object_t and can thus be allocated using OBJ_NEW, but b) must (in the general case) be allocated using ompi_info_allocate to make sure the ompi instance is properly retained and released. We cannot move the instance retain/release into the constructor because that would create a cyclic dependency on the release, causing the instance to never shut down. This dichotomy is somewhat annoying.

It is not clear why the info object must interact with the ompi instance in the first place. Some information would be appreciated to make a decision on how to move forward. We might want to merge #10349 to fix an obvious bug and then deliberate on whether to change the info semantics.

I marked this issue as a blocker because it's a bug in master and v5.0.x. A fix is at #10349.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions