ATLAS Offline Software
Loading...
Searching...
No Matches
AthHIP/AthHIPComps/src/ManagedMemoryResourceTool.h
Go to the documentation of this file.
1//
2// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3//
4#ifndef ATHHIPCOMPS_MANAGEDMEMORYRESOURCETOOL_H
5#define ATHHIPCOMPS_MANAGEDMEMORYRESOURCETOOL_H
6
7// Framework include(s).
9
10// AthDevice include(s).
12
13namespace AthHIP {
14
20 : public extends<AthAlgTool, AthDevice::IMemoryResourceTool> {
21
22 public:
23 // Inherit the base class's constructor(s).
24 using extends::extends;
25
28
30 virtual StatusCode initialize() override;
31
33
36
38 virtual std::pmr::memory_resource& mr() const override;
39
41
42 private:
44 std::unique_ptr<std::pmr::memory_resource> m_mr;
45
46}; // class ManagedMemoryResourceTool
47
48} // namespace AthHIP
49
50#endif // ATHHIPCOMPS_MANAGEDMEMORYRESOURCETOOL_H
Tool providing memory resource for managed host/device memory.
virtual StatusCode initialize() override
Initialize the tool.
virtual std::pmr::memory_resource & mr() const override
Get the provided std::pmr::memory_resource object.
std::unique_ptr< std::pmr::memory_resource > m_mr
The memory resource that this tool uses.