|
template<typename TElem , typename TIdx , typename TExtent , typename TQueue > |
ALPAKA_FN_HOST auto | alpaka::allocAsyncBuf (TQueue queue, TExtent const &extent=TExtent()) |
| Allocates stream-ordered memory on the given device. More...
|
|
template<typename TElem , typename TIdx , typename TExtent , typename TQueue > |
ALPAKA_FN_HOST auto | alpaka::allocAsyncBufIfSupported (TQueue queue, TExtent const &extent=TExtent()) |
| If supported, allocates stream-ordered memory on the given queue and the associated device. Otherwise, allocates regular memory on the device associated to the queue. Please note that stream-ordered and regular memory have different semantics: this function is provided for convenience in the cases where the difference is not relevant, and the stream-ordered memory is only used as a performance optimisation. More...
|
|
template<typename TElem , typename TIdx , typename TExtent , typename TDev > |
ALPAKA_FN_HOST auto | alpaka::allocBuf (TDev const &dev, TExtent const &extent=TExtent()) |
| Allocates memory on the given device. More...
|
|
template<typename TElem , typename TIdx , typename TExtent , typename TPlatform > |
ALPAKA_FN_HOST auto | alpaka::allocMappedBuf (DevCpu const &host, TPlatform const &platform, TExtent const &extent=TExtent()) |
| Allocates pinned/mapped host memory, accessible by all devices in the given platform. More...
|
|
template<typename TElem , typename TIdx , typename TExtent , typename TPlatform > |
ALPAKA_FN_HOST auto | alpaka::allocMappedBufIfSupported (DevCpu const &host, TPlatform const &platform, TExtent const &extent=TExtent()) |
| If supported, allocates pinned/mapped host memory, accessible by all devices in the given platform. Otherwise, allocates regular host memory. Please note that pinned/mapped and regular memory may have different semantics: this function is provided for convenience in the cases where the difference is not relevant, and the pinned/mapped memory is only used as a performance optimisation. More...
|
|