-
Notifications
You must be signed in to change notification settings - Fork 204
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
Remove the friend declaration with an attribute #1669
Remove the friend declaration with an attribute #1669
Conversation
/ok to test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix and for noticing that we no longer need this friend declaration!
Just wondering about the cmake test GPU configuration changes.
/ok to test |
I don't think adding a single signed commit is enough. There have to be zero unsigned commits in the history of the PR. |
/merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking merge while we discuss the GPUS 1 PERCENT 100
further.
787edd2
to
df198e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reverting the CMake changes for now — we can explore improving the tests in a follow-up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Description
The
logging_resource_adaptor
has a friend declaration (which is not a definition) preceded by an attribute, whereas C++ standard requires that such declaration must be a definition. gcc 11.4.0 used in the dev container does not correctly identify this, but gcc 12.1 and newer are able to, and will report a compile error (converted from a warning) when building RMM:This simple PR removes the friend declaration from the
logging_resource_adaptor
class. This is valid since in recent releases of RMM the friended function no longer accesses any private (or protected) data or methods oflogging_resource_adaptor
.closes #1668
Checklist