|
opm-simulators
|
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 |
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.