gpu_smart_pointer.hpp
Go to the documentation of this file.
132 OPM_ERROR_IF(!Opm::gpuistl::detail::isGPUPointer(value), "The pointer is not associated with GPU memory.");
185 OPM_ERROR_IF(!Opm::gpuistl::detail::isGPUPointer(ptr), "The pointer is not associated with GPU memory.");
A view towards a smart pointer to GPU-allocated memory. Definition: gpu_smart_pointer.hpp:230 OPM_HOST_DEVICE T * operator->() const Definition: gpu_smart_pointer.hpp:260 PointerView(const std::unique_ptr< T, Deleter > &ptr) Definition: gpu_smart_pointer.hpp:240 PointerView(const std::shared_ptr< T > &ptr) Definition: gpu_smart_pointer.hpp:234 PointerView(const PointerView &other)=default OPM_HOST_DEVICE T & operator*() const Definition: gpu_smart_pointer.hpp:255 #define OPM_GPU_SAFE_CALL(expression) OPM_GPU_SAFE_CALL checks the return type of the GPU expression (function call) and throws an exceptio... Definition: gpu_safe_call.hpp:150 #define OPM_GPU_WARN_IF_ERROR(expression) OPM_GPU_WARN_IF_ERROR checks the return type of the GPU expression (function call) and issues a warni... Definition: gpu_safe_call.hpp:171 bool isGPUPointer(const T *ptr) Checks whether the given pointer is associated with GPU device memory. Definition: is_gpu_pointer.hpp:40 Definition: autotuner.hpp:30 void copyToGPU(const T &value, T *ptr) Copies a value from the host to GPU-allocated memory. Definition: gpu_smart_pointer.hpp:182 std::shared_ptr< T > make_gpu_shared_ptr() Creates a shared pointer managing GPU-allocated memory of the specified element type. Definition: gpu_smart_pointer.hpp:48 PointerView< T > make_view(const std::shared_ptr< T > &ptr) Definition: gpu_smart_pointer.hpp:271 T copyFromGPU(const T *value) Copies a value from GPU-allocated memory to the host. Definition: gpu_smart_pointer.hpp:129 auto make_gpu_unique_ptr() Creates a unique pointer managing GPU-allocated memory of the specified element type. Definition: gpu_smart_pointer.hpp:89 |