cuda::experimental::stf::reclaim_memory
Defined in include/cuda/experimental/__stf/internal/logical_data.cuh
-
inline void cuda::experimental::stf::reclaim_memory(backend_ctx_untyped &ctx, const data_place &place, size_t requested_s, size_t &reclaimed_s, event_list &prereqs)
Reclaims memory from allocated data instances.
Reclaims memory for requested size. It considers different passes depending on the specified criteria. Memory is reclaimed from data instances that are not currently in use and meet the pass criteria.
- Parameters
ctx – [in] Pointer to the backend context state.
place – [in] Data place from where the memory should be reclaimed.
requested_s – [in] The size of memory to be reclaimed.
reclaimed_s – [out] The size of memory that was successfully reclaimed.
prereqs – [inout] A unique pointer to a list of events that need to be completed before memory can be reclaimed.