11#include "vecmem/utils/copy.hpp"
12#include "vecmem/utils/hip/stream_wrapper.hpp"
13#include "vecmem/vecmem_hip_export.hpp"
An allocator class that wraps a memory resource.
Definition allocator.hpp:37
Class implementing (synchronous) host <-> device memory copies.
Definition copy.hpp:42
std::unique_ptr< abstract_event > event_type
Event type used by the copy class.
Definition copy.hpp:70
data::vector_buffer< std::remove_cv_t< TYPE > > to(const data::vector_view< TYPE > &data, memory_resource &resource, type::copy_type cptype=type::unknown) const
Copy a 1-dimensional vector to the specified memory resource.
Definition copy.ipp:66
Specialisation of vecmem::copy for HIP.
Definition async_copy.hpp:27
VECMEM_HIP_EXPORT ~async_copy() noexcept
Destructor.
VECMEM_HIP_EXPORT event_type create_event() const final
Create an event for synchronization.
Definition async_copy.cpp:157
VECMEM_HIP_EXPORT void do_copy(std::size_t size, const void *from, void *to, type::copy_type cptype) const final
Perform an asynchronous memory copy using HIP.
Definition async_copy.cpp:109
VECMEM_HIP_EXPORT void do_memset(std::size_t size, void *ptr, int value) const final
Fill a memory area using HIP asynchronously.
Definition async_copy.cpp:136
Wrapper class for hipStream_t.
Definition stream_wrapper.hpp:23
Namespace holding types that work on/with ROCm/HIP.
Definition hip_device_atomic_ref.hpp:25
Wrapper struct around the copy_type enumeration.
Definition copy.hpp:51