Template Function ripple::gpu::allocate_device¶
Defined in File memory.hpp
Function Documentation¶
-
template<typename
Ptr
>
autoripple::gpu
::
allocate_device
(Ptr **dev_ptr, size_t bytes) -> void¶ Allocates the given number of bytes of memory on the device at the location pointed to by the pointer.
- Parameters
dev_ptr
: The device pointer to allocate memory for.bytes
: The number of bytes to allocate.
- Template Parameters
Ptr
: The type of the pointer.