Skip to content
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

build: add [[maybe_unused]] on EXPORT macro #559

Closed
wants to merge 6 commits into from

Conversation

@@ -9,7 +9,11 @@
#define OFI_LIKELY(x) __builtin_expect((x), 1)
#define OFI_UNLIKELY(x) __builtin_expect((x), 0)

#ifdef __cplusplus
#define NCCL_OFI_EXPORT_SYMBOL __attribute__((visibility("default"))) [[maybe_unused]]
Copy link
Contributor

Choose a reason for hiding this comment

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

My comment from 19d4b38 remains; this shouldn't be necessary and I'd like to get to root cause before committing it.

@aws-nslick aws-nslick changed the base branch from aws-nslick/stack/5 to master September 4, 2024 19:07
@aws-nslick aws-nslick changed the base branch from master to aws-nslick/stack/5 September 4, 2024 19:07
the canonical token is __cplusplus not _cplusplus. When this is
incorrect, linkage fails as cxx will perform name mangling when
including these headers, resulting in a function with that mangle not
existing.

stack-info: PR: #554, branch: aws-nslick/stack/1
Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
c++ requires literals not sit directly next to other literals and must
be separated by at least one whitespace token.

stack-info: PR: #555, branch: aws-nslick/stack/2
Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
stack-info: PR: #556, branch: aws-nslick/stack/3
Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
When using designated initializer lists, under C++ only, a warning will
be emitted if the declaration order does not match the initialization
order if any fields are missing in the initializer list. Reorder these
structs to initialize all fields in their declaration order.

stack-info: PR: #557, branch: aws-nslick/stack/4
Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
void pointer arithmetic is illegal in c++; cast to uintptr, do the
offset, then cast to void* to pass to libfabric.

stack-info: PR: #558, branch: aws-nslick/stack/5
Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
stack-info: PR: #559, branch: aws-nslick/stack/6
Signed-off-by: Nicholas Sielicki <nslick@amazon.com>
@aws-nslick aws-nslick changed the base branch from aws-nslick/stack/5 to master September 4, 2024 19:16
@aws-nslick aws-nslick changed the base branch from master to aws-nslick/stack/5 September 4, 2024 19:17
@aws-nslick aws-nslick closed this Sep 5, 2024
@aws-nslick aws-nslick deleted the aws-nslick/stack/6 branch September 6, 2024 20:46
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