16#ifndef OPM_SIMULATORS_LINALG_GPUISTL_DETAIL_IS_GPU_POINTER_HPP
17#define OPM_SIMULATORS_LINALG_GPUISTL_DETAIL_IS_GPU_POINTER_HPP
20#include <cuda_runtime.h>
22#include <opm/simulators/linalg/gpuistl/detail/gpu_safe_call.hpp>
45 cudaPointerAttributes attributes;
46 OPM_GPU_SAFE_CALL(cudaPointerGetAttributes(&attributes, ptr));
47 return attributes.type == cudaMemoryTypeDevice;
59template <
class T,
class D>
Contains wrappers to make the CuBLAS library behave as a modern C++ library with function overlading.
Definition autotuner.hpp:30
bool isGPUPointer(const T *ptr)
Checks whether the given pointer is associated with GPU device memory.
Definition is_gpu_pointer.hpp:40