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

Deleter that releases a GPU array allocation made with cudaMalloc. More...

#include <gpu_smart_pointer.hpp>

Public Member Functions

void operator() (T *ptr) const noexcept
 

Detailed Description

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

Deleter that releases a GPU array allocation made with cudaMalloc.

Used by make_gpu_unique_ptr_array. Having a named deleter type (rather than a lambda) makes the resulting std::unique_ptr type stable across translation units, which is important when storing it as a class member.

Member Function Documentation

◆ operator()()

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

References OPM_GPU_WARN_IF_ERROR.


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