cuda::experimental::stf::deallocateManagedMemory#
Overloads#
deallocateManagedMemory(p, sz, loc=::cuda::std::source_location::current())#
- inline void cuda::experimental::stf::deallocateManagedMemory(
- void *p,
- size_t sz,
- const ::cuda::std::source_location loc = ::cuda::std::source_location::current()
Deallocates managed memory allocated with
allocateManagedMemoryimmediately.- Parameters:
p – pointer to memory chunk
sz – size in bytes
loc – location of the call, defaulted
deallocateManagedMemory(p, sz, stream)#
- inline void cuda::experimental::stf::deallocateManagedMemory(
- void *p,
- size_t sz,
- cudaStream_t stream
Deallocates managed memory allocated with
allocateManagedMemoryin a stream-ordered fashion.Will perform deallocation when all preceding operations on
streamhave completed.- Parameters:
p – pointer
sz – size in bytes
stream – the stream used for ordering