is_gpu_pointer.hpp File Reference
#include <cuda.h>
#include <cuda_runtime.h>
#include <memory>
#include <opm/simulators/linalg/gpuistl/detail/gpu_safe_call.hpp>
Include dependency graph for is_gpu_pointer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Opm
 
namespace  Opm::gpuistl
 
namespace  Opm::gpuistl::detail
 

Functions

template<class T >
bool Opm::gpuistl::detail::isGPUPointer (const T *ptr)
 Checks whether the given pointer is associated with GPU device memory. More...
 
template<class T , class D >
bool Opm::gpuistl::detail::isGPUPointer (const std::unique_ptr< T, D > &ptr)
 Checks if the given std::unique_ptr with custom deleter refers to GPU memory. More...
 
template<class T >
bool Opm::gpuistl::detail::isGPUPointer (const std::shared_ptr< T > &ptr)
 Checks if the given std::shared_ptr refers to GPU memory. More...