ATLAS Offline Software
Loading...
Searching...
No Matches
AthDevice/AthDeviceComps/src/HostMemoryResourceTool.cxx
Go to the documentation of this file.
1//
2// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3//
4
5// Local include(s).
7
8// System include(s).
9#include <cassert>
10#include <memory_resource>
11
12namespace AthDevice {
13
14std::pmr::memory_resource& HostMemoryResourceTool::mr() const {
15
16 return *(std::pmr::new_delete_resource());
17}
18
19std::string_view HostMemoryResourceTool::deviceName() const {
20
21 return "(Unpinned) Host";
22}
23
24} // namespace AthDevice
virtual std::string_view deviceName() const override
The name of the device for which the memory resource is provided.
virtual std::pmr::memory_resource & mr() const override
Get the provided std::pmr::memory_resource object.