Skip to content

refactor MPI constant binding with a generic API - #3052

Merged
mofeing merged 5 commits into
mainfrom
ss/refactor-constant-binding
Sep 2, 2026
Merged

mofeing merged 5 commits into
mainfrom
ss/refactor-constant-binding

Conversation

@mofeing

@mofeing mofeing commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

just like in #3051, this pr refactors the way we set the MPI constants to be less cumbersome. it basically adds a enzymexla_set_mpi_constant function that adds a mapping between the MPI constant name and the value.

an alternative would be to reuse the JIT registry of symbols just like LowerEnzymeXLAMPI pass does, but i find this better because it makes explicit the fact that we are directly storing integer values as pointers.

note that when/if we require the MPI 5 ABI (but it's not yet widespread), this wouldn't be a problem and we could remove this API.

@mofeing
mofeing requested review from romanlee and wsmoses September 1, 2026 14:41
@mofeing
mofeing merged commit 0dfd10e into main Sep 2, 2026
27 of 32 checks passed
@mofeing
mofeing deleted the ss/refactor-constant-binding branch September 2, 2026 12:19
mofeing added a commit that referenced this pull request Sep 2, 2026
)

* Revert "refactor MPI constant binding with a generic API (#3052)"

This reverts commit 0dfd10e.

* replace verbose constant binding mechanism with JIT registry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants