Version 0.6.9 Beta 1: Memory handling streamlined with unique_span rather unique_ptr #608
eyalroz
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Changes since v0.6.8:
Memory allocation & copying-related changes
Unique spans (
unique_span_t
)unique_region_t
class or some equivalent mechanism #291 Added aunique_span_t<T>
template class, combining the functionality ofcuda::unique_ptr
andcuda::span
(and being somewhat similar tostd::dynarray
which almost made it into C++14). Many CUDA programs want to represent both the ownership of allocated memory, and the range of that memory for actual use, in the same variable - without the on-the-fly reallocation behavior ofstd::vector
. This is now possible. Also implemented an untyped version of this, namedunique_region
.empty()
method tocuda::span
(to match that ofstd::span
- as it is no sometimes used)unique_span_t
instead of ourcuda::dynarray
(which had been anstd::vector
under the hood), in various places in the API, especially RTCMemory regions (
memory::region_t
)memory::region_t
for mapped memory rather than a different, mapped-memory specific region classcuda::memory::region_t
more constexpr-friendly #602 Makememory::region_t
more constexpr-friendlymemory::region_t
's are now CUDA-independent, i.e. do not utilize any CUDA-specific definitionsconst_region_t
's from rvalue references to regionsDocumentation & comments
supports_memory_pools
#595 Correct the documentation forsupports_memory_pools
Launch configuration & launch config builder changes
CUDA libraries and in-library, non-associated kernel support
get_attribute()
andset_attribute()
for library kernelsRefactoring
detail/type_traits.hpp
fromtypes.hpp
Other changes
name_caching_program.hpp
, has snuck into our code #599 An invalid file,name_caching_program.hpp
, had snuck into our code - removed itThis discussion was created from the release Version 0.6.9 Beta 1: Memory handling streamlined with unique_span rather unique_ptr.
Beta Was this translation helpful? Give feedback.
All reactions