-
Notifications
You must be signed in to change notification settings - Fork 901
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
Fix build failures with GCC 13 #16488
Conversation
class cuco_allocator | ||
: public rmm::mr::stream_allocator_adaptor<rmm::mr::polymorphic_allocator<char>> { | ||
/// Default stream-ordered allocator type | ||
using default_allocator = rmm::mr::polymorphic_allocator<char>; | ||
/// The base allocator adaptor type | ||
using base_type = rmm::mr::stream_allocator_adaptor<default_allocator>; | ||
|
||
public: | ||
/** | ||
* @brief Constructs the allocator adaptor with the given `stream` | ||
*/ | ||
cuco_allocator(rmm::cuda_stream_view stream) : base_type{default_allocator{}, stream} {} | ||
}; |
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.
The existing cuco_allocator
convenience wrapper cannot pass a build time check with GCC 13 where it requires rmm::mr::stream_allocator_adaptor<rmm::mr::polymorphic_allocator<char>>
and cuco_allocator
to be the same type.
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.
This looks great. Thanks for fixing this.
/merge |
Description
Closes #16395
This PR resolves two types of compilation errors, allowing for successful builds with GCC 13:
cuco_allocator
strong type with an alias to fix a new build time check with GCC 13std::move
when returning a temporaryChecklist