12#include "vecmem/memory/memory_resource.hpp"
13#include "vecmem/vecmem_cuda_export.hpp"
56 void*
do_allocate(std::size_t, std::size_t)
override;
An allocator class that wraps a memory resource.
Definition allocator.hpp:37
Memory resource that wraps direct allocations on a CUDA device.
Definition device_memory_resource.hpp:25
VECMEM_CUDA_EXPORT void * do_allocate(std::size_t, std::size_t) override
Allocate memory on the selected device.
Definition device_memory_resource.cpp:36
VECMEM_CUDA_EXPORT bool do_is_equal(const memory_resource &other) const noexcept override
Compares *this for equality with other.
Definition device_memory_resource.cpp:69
VECMEM_CUDA_EXPORT ~device_memory_resource() override
Destructor.
static constexpr int INVALID_DEVICE
Invalid/default device identifier.
Definition device_memory_resource.hpp:29
VECMEM_CUDA_EXPORT void do_deallocate(void *p, std::size_t, std::size_t) override
De-allocate a previously allocated memory block on the selected device.
Definition device_memory_resource.cpp:53
Namespace holding types that work on/with CUDA.
Definition cuda_device_atomic_ref.hpp:19