vecmem 1.18.0
Loading...
Searching...
No Matches
host_memory_resource.hpp
1/*
2 * VecMem project, part of the ACTS project (R&D line)
3 *
4 * (c) 2021-2025 CERN for the benefit of the ACTS project
5 *
6 * Mozilla Public License Version 2.0
7 */
8
9#pragma once
10
11// Local include(s).
12#include "vecmem/memory/sycl/details/memory_resource_base.hpp"
13#include "vecmem/vecmem_sycl_export.hpp"
14
15namespace vecmem::sycl {
16
19
20public:
22 using details::memory_resource_base::memory_resource_base;
23
24private:
27
30 void* do_allocate(std::size_t nbytes, std::size_t alignment) override;
31
33
34}; // class host_memory_resource
35
36} // namespace vecmem::sycl
An allocator class that wraps a memory resource.
Definition allocator.hpp:37
SYCL memory resource base class.
Definition memory_resource_base.hpp:22
Host memory resource, connected to a specific SYCL device.
Definition host_memory_resource.hpp:18
VECMEM_SYCL_EXPORT void * do_allocate(std::size_t nbytes, std::size_t alignment) override
Function performing the memory allocation.
Namespace holding types that work on/with oneAPI/SYCL.
Definition sycl_builtin_device_atomic_ref.hpp:17