ATLAS Offline Software
Loading...
Searching...
No Matches
AthCUDA/AthCUDAServices/src/HostMemoryResourceTool.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 ATHCUDASERVICES_HOSTMEMORYRESOURCETOOL_H
5#define ATHCUDASERVICES_HOSTMEMORYRESOURCETOOL_H
6
7// Framework include(s).
9
10// AthDevice include(s).
12
13namespace AthCUDA {
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
37 virtual std::pmr::memory_resource& mr() const override;
38
40
41 private:
43 std::unique_ptr<std::pmr::memory_resource> m_mr;
44
45}; // class HostMemoryResourceTool
46
47} // namespace AthCUDA
48
49#endif // ATHCUDASERVICES_HOSTMEMORYRESOURCETOOL_H
Tool providing memory resource for pinned host memory.
std::unique_ptr< std::pmr::memory_resource > m_mr
The memory resource that this tool uses.
virtual std::pmr::memory_resource & mr() const override
virtual StatusCode initialize() override
Initialize the tool.
Definition Info.h:14