35class ARCANE_ACCELERATOR_CORE_EXPORT PointerAttribute
38 friend impl::IRunnerRuntime;
42 PointerAttribute() =
default;
46 bool isValid()
const {
return m_is_valid; }
48 const void* originalPointer()
const {
return m_pointer; }
49 const void* hostPointer()
const {
return m_host_pointer; }
50 const void* devicePointer()
const {
return m_device_pointer; }
51 int device()
const {
return m_device; }
52 friend std::ostream& operator<<(std::ostream& o,
const PointerAttribute& a);
57 PointerAttribute(
const void* pointer)
64 const void* device_pointer,
const void* host_pointer)
65 : m_memory_type(mem_type)
68 , m_device_pointer(device_pointer)
69 , m_host_pointer(host_pointer)
77 const void* m_pointer =
nullptr;
78 const void* m_device_pointer =
nullptr;
79 const void* m_host_pointer =
nullptr;
80 bool m_is_valid =
false;