cuda::experimental::stf::allocateManagedMemory

Defined in include/cuda/experimental/__stf/utility/memory.cuh

inline void *cuda::experimental::stf::allocateManagedMemory(size_t sz)

Allocates managed memory and returns a pointer to it.

Uses a pool of previous allocations.

Parameters

sz – Number of bytes to allocate

Returns

void* pointer to allocated data