Skip to content

Naming conflict for shmem_put/get in shmem-compat.h #4307

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

Closed
BryantLam opened this issue Oct 5, 2017 · 2 comments
Closed

Naming conflict for shmem_put/get in shmem-compat.h #4307

BryantLam opened this issue Oct 5, 2017 · 2 comments
Assignees

Comments

@BryantLam
Copy link

shmem-compat.h is included after a compiler check for C11 support. OpenSHMEM 1.3 added type-generic shmem_put and shmem_get that are defined as macros later in shmem.h.in and subsequently conflict with the function declarations in shmem-compat.h.

One solution is to add a check in shmem-compat.h that checks for OSHMEM_HAVE_C11 to prefer the C11 generics, but this provides an invisible breaking change to existing codes that erroneously depend on shmem-compat.h's shmem_put. It would be better to get rid of the function declarations in shmem-compat.h now that it sufficiently conflicts with the OpenSHMEM specification.

@artpol84
Copy link
Contributor

artpol84 commented Oct 7, 2017

@karasevb please address

@artpol84
Copy link
Contributor

artpol84 commented Feb 5, 2018

Fixed by #4638

@artpol84 artpol84 closed this as completed Feb 5, 2018
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

No branches or pull requests

3 participants