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

Allocator based on cudaMalloc. More...

#include <CudaAllocator.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::CudaDevAllocator< T >

Allocator based on cudaMalloc.

Definition at line 18 of file CudaAllocator.h.

Member Typedef Documentation

◆ value_type

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

Definition at line 21 of file CudaAllocator.h.

Member Function Documentation

◆ allocate()

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

Definition at line 23 of file CudaAllocator.h.

References checkCudaErrors().

◆ deallocate()

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

Definition at line 31 of file CudaAllocator.h.

References checkCudaErrors().


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