Advanced Multi-Physics (AMP)
On-Line Documentation
Public Types | Public Member Functions | List of all members
AMP::HipManagedAllocator< T > Class Template Reference

Allocator based on hipMallocManaged. More...

#include <HipAllocator.h>

Public Types

using value_type = T
 

Public Member Functions

T * allocate (size_t n)
 
void deallocate (T *p, size_t)
 

Detailed Description

template<typename T>
class AMP::HipManagedAllocator< T >

Allocator based on hipMallocManaged.

Definition at line 43 of file HipAllocator.h.

Member Typedef Documentation

◆ value_type

template<typename T >
using AMP::HipManagedAllocator< T >::value_type = T

Definition at line 46 of file HipAllocator.h.

Member Function Documentation

◆ allocate()

template<typename T >
T * AMP::HipManagedAllocator< T >::allocate ( size_t  n)
inline

Definition at line 48 of file HipAllocator.h.

References checkHipErrors().

◆ deallocate()

template<typename T >
void AMP::HipManagedAllocator< T >::deallocate ( T *  p,
size_t   
)
inline

Definition at line 56 of file HipAllocator.h.

References checkHipErrors().


The documentation for this class was generated from the following file:



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:42.
Comments on this page