Skip to content

make instance name dynamic array#13735

Open
Dupratj wants to merge 1 commit intoopen-mpi:mainfrom
Dupratj:dynamic_i_name
Open

make instance name dynamic array#13735
Dupratj wants to merge 1 commit intoopen-mpi:mainfrom
Dupratj:dynamic_i_name

Conversation

@Dupratj
Copy link
Copy Markdown

@Dupratj Dupratj commented Feb 18, 2026

make the i_name element of the instance structure a dynamic
element. This change was suggested by hppritcha here
This allows us to keep the size of PREDEFINED_INSTANCE_PAD to 512 despite adding to the instance structure. Keeping it to 512 make it so we don't introduce breaking change.

@github-actions
Copy link
Copy Markdown

Hello! The Git Commit Checker CI bot found a few problems with this PR:

ed287bf: Dynamic instance name

  • check_signed_off: does not contain a valid Signed-off-by line

Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks!

Copy link
Copy Markdown
Member

@bosilca bosilca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you mentioning PREDEFINED_COMMUNICATOR_PAD while talking about an instance ?

@Dupratj
Copy link
Copy Markdown
Author

Dupratj commented Feb 18, 2026

Why are you mentioning PREDEFINED_COMMUNICATOR_PAD while talking about an instance ?

My bad wrong variable, I meant PREDEFINED_INSTANCE_PAD but switched it up

Signed-off-by: DUPRAT, JULIEN <[email protected]>
@bosilca
Copy link
Copy Markdown
Member

bosilca commented Feb 18, 2026

Digging a little further into this, I wonder if it is really necessary for the instance. The padding is necessary for every other case because we do have valid predefined MPI objects of that type that can be used. But for the
MPI instances, the only predefined MPI object is ompi_mpi_instance_null and this object is special and cannot be used as a valid MPI object.

@Dupratj
Copy link
Copy Markdown
Author

Dupratj commented Feb 19, 2026

I've dug into it a bit more and it seems you're right about it not being a problem during runtime.
The problem identified in the other pull request was for backward compatibility. Every program compiled on a version previous to the 13667 PR would need to recompiled on a version posterior to the 13667 PR.
This PR would allow the fix to be in 5.x, we have a similar fix working for the 4.x.

If we really think this is unnecessary I can push this PR only in 5.x and increase the PREDEFINED_INSTANCE_PAD in the PR 13667 when targeting the 6.x only. Such change would be less of a problem if we jump to another major version.

@Dupratj Dupratj marked this pull request as ready for review February 25, 2026 09:56
@Dupratj
Copy link
Copy Markdown
Author

Dupratj commented Mar 2, 2026

@bosilca what do you think ?

@Dupratj Dupratj requested a review from bosilca March 20, 2026 08:33
@Dupratj
Copy link
Copy Markdown
Author

Dupratj commented Apr 8, 2026

I've dug into it a bit more and it seems you're right about it not being a problem during runtime. The problem identified in the other pull request was for backward compatibility. Every program compiled on a version previous to the 13667 PR would need to recompiled on a version posterior to the 13667 PR. This PR would allow the fix to be in 5.x, we have a similar fix working for the 4.x.

If we really think this is unnecessary I can push this PR only in 5.x and increase the PREDEFINED_INSTANCE_PAD in the PR 13667 when targeting the 6.x only. Such change would be less of a problem if we jump to another major version.

What do you think @bosilca ? Maybe @hppritcha can also weigh in as he suggested the change in this PR.
I cannot advance this further for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants