Template Function ripple::cpu::allocate_host_pinned¶
Defined in File memory.hpp
Function Documentation¶
-
template<typename
Ptr>
autoripple::cpu::allocate_host_pinned(Ptr **host_ptr, size_t bytes) -> void¶ Allocates the given number of bytes of page locked (pinned) memory at the location of the host pointer.
- Todo:
Add support for pinned allocation if no cuda.
- Parameters
host_ptr: The host pointer for the allocated memory.bytes: The number of bytes to allocate.
- Template Parameters
Ptr: The type of the pointer.