|
gpu_smart_pointer.hpp
Go to the documentation of this file.
PointerView(const std::unique_ptr< void, Deleter > &ptr) Definition: gpu_smart_pointer.hpp:377 PointerView(const std::shared_ptr< void > &ptr) Definition: gpu_smart_pointer.hpp:371 PointerView(void *ptr) Definition: gpu_smart_pointer.hpp:382 OPM_HOST_DEVICE void * operator->() const Definition: gpu_smart_pointer.hpp:392 PointerView(const PointerView &other)=default OPM_HOST_DEVICE void * get() const Definition: gpu_smart_pointer.hpp:387 A view towards a smart pointer to GPU-allocated memory. Definition: gpu_smart_pointer.hpp:316 OPM_HOST_DEVICE const T & operator*() const Definition: gpu_smart_pointer.hpp:341 OPM_HOST_DEVICE T & operator*() Definition: gpu_smart_pointer.hpp:346 OPM_HOST_DEVICE T * operator->() const Definition: gpu_smart_pointer.hpp:351 PointerView(const std::unique_ptr< T, Deleter > &ptr) Definition: gpu_smart_pointer.hpp:326 PointerView(const std::shared_ptr< T > &ptr) Definition: gpu_smart_pointer.hpp:320 PointerView(const PointerView &other)=default A value stored with a pointer interface. Can be used to wrap objects in GPU kernels that were otherwi... Definition: gpu_smart_pointer.hpp:420 OPM_HOST_DEVICE T * operator->() Definition: gpu_smart_pointer.hpp:428 OPM_HOST_DEVICE T & operator*() Definition: gpu_smart_pointer.hpp:444 OPM_HOST_DEVICE ValueAsPointer(const T &t) Definition: gpu_smart_pointer.hpp:426 OPM_HOST_DEVICE ValueAsPointer()=default OPM_HOST_DEVICE const T & operator*() const Definition: gpu_smart_pointer.hpp:448 OPM_HOST_DEVICE const T * operator->() const Definition: gpu_smart_pointer.hpp:436 OPM_HOST_DEVICE const T * get() const Definition: gpu_smart_pointer.hpp:440 #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:164 #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:185 void gpuMemcpyHostToDevice(T *dstDevice, const T *srcHost, std::size_t count) gpuMemcpyHostToDevice copies count elements of type T from host to device. Definition: gpu_memcpy.hpp:46 void gpuMemcpyDeviceToHost(T *dstHost, const T *srcDevice, std::size_t count) gpuMemcpyDeviceToHost copies count elements of type T from device to host. Definition: gpu_memcpy.hpp:69 A small, fixed‑dimension MiniVector class backed by std::array that can be used in both host and CUDA... Definition: GpuFlowProblem.hpp:48 inline ::Opm::NoThermalLawManager make_view(::Opm::NoThermalLawManager &) make_view overload for the no-op thermal manager. Definition: GpuFlowProblem.hpp:101 void copyToGPU(const T &value, T *ptr) Copies a value from the host to GPU-allocated memory. Definition: gpu_smart_pointer.hpp:270 std::unique_ptr< T, GpuManagedDeleter< T > > make_gpu_managed_unique_ptr(Args &&... args) Creates a unique pointer managing GPU unified (managed) memory for a single object. Definition: gpu_smart_pointer.hpp:195 std::unique_ptr< T[], GpuArrayDeleter< T > > make_gpu_unique_ptr_array(std::size_t numElements) Creates a unique pointer managing a GPU-allocated array of numElements elements. Definition: gpu_smart_pointer.hpp:168 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:49 T copyFromGPU(const T *value) Copies a value from GPU-allocated memory to the host. Definition: gpu_smart_pointer.hpp:220 auto make_gpu_unique_ptr() Creates a unique pointer managing GPU-allocated memory of the specified element type. Definition: gpu_smart_pointer.hpp:90 Deleter that releases a GPU array allocation made with cudaMalloc. Definition: gpu_smart_pointer.hpp:127 void operator()(T *ptr) const noexcept Definition: gpu_smart_pointer.hpp:128 Deleter for objects living in unified (managed) GPU memory. Definition: gpu_smart_pointer.hpp:141 void operator()(T *ptr) const noexcept Definition: gpu_smart_pointer.hpp:142 |