Opm::gpuistl::GpuManagedDeleter< T > Struct Template Reference

Deleter for objects living in unified (managed) GPU memory. More...

#include <gpu_smart_pointer.hpp>

Public Member Functions

void operator() (T *ptr) const noexcept
 

Detailed Description

template<class T>
struct Opm::gpuistl::GpuManagedDeleter< T >

Deleter for objects living in unified (managed) GPU memory.

Calls the destructor of the contained object before releasing the allocation with cudaFree. Used by make_gpu_managed_unique_ptr.

Member Function Documentation

◆ operator()()

template<class T >
void Opm::gpuistl::GpuManagedDeleter< T >::operator() ( T *  ptr) const
inlinenoexcept

References OPM_GPU_WARN_IF_ERROR.


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