libcudacxx
libcudacxx copied to clipboard
Polymorphic Allocator Proposal
Design: #129
Depends on #105
Building of off cuda::memory_resource
to introduce cuda::polymorphic_allocator
-like types
I'd really rather not call it polymorphic
. It's a bad name, it's not important for the user to know that, and some classes of performance-sensitive users are allergic to polymorphism even if it's not relevant to performance (as is the case here).
I'd really rather not call it
polymorphic
. It's a bad name, it's not important for the user to know that, and some classes of performance-sensitive users are allergic to polymorphism even if it's not relevant to performance (as is the case here).
I have no qualms with axing the "polymorphic" part of the name. Would we just call it cuda::allocator
and it always works with a memory_resource*
?
I'm in favor of cuda::allocator
.
Superseded by https://github.com/NVIDIA/libcudacxx/pull/309