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
allocateManagedMemory
immediately.- 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
allocateManagedMemory
in a stream-ordered fashion.Will perform deallocation when all preceding operations on
stream
have completed.- Parameters:
p – pointer
sz – size in bytes
stream – the stream used for ordering