Skip to content

Fix/avoid intrinsics collisions #10872

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

Merged
merged 2 commits into from
Sep 30, 2022

Conversation

bosilca
Copy link
Member

@bosilca bosilca commented Sep 29, 2022

memcpy and memove (among others intrinsics) cannot be used a members of structs.

Signed-off-by: George Bosilca <bosilca@icl.utk.edu>
Many compilers (tested with gcc and clang) use the memcpy and memmove
keywords as intrinsics functions. They also lack a proper syntactic
matching, and this prevents the use of any intrincs names as members
of structures. Use a different name for the 2 members of the accelerator
framework that handles memory copies and moves.

Fixes open-mpi#10869.

Signed-off-by: George Bosilca <bosilca@icl.utk.edu>
@rhc54
Copy link
Contributor

rhc54 commented Sep 29, 2022

Thanks @bosilca - that is the exact problem I encountered in #10869 and this should indeed fix it.

@jsquyres
Copy link
Member

bot:aws:retest

@awlauria awlauria merged commit d0c8ca9 into open-mpi:main Sep 30, 2022
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.

5 participants