MCPcopy Create free account
hub / github.com/apache/arrow / DefaultDeviceMemoryMapper

Function DefaultDeviceMemoryMapper

cpp/src/arrow/c/bridge.cc:1997–2002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1995}
1996
1997Result<std::shared_ptr<MemoryManager>> DefaultDeviceMemoryMapper(
1998 ArrowDeviceType device_type, int64_t device_id) {
1999 ARROW_ASSIGN_OR_RAISE(auto mapper,
2000 GetDeviceMapper(static_cast<DeviceAllocationType>(device_type)));
2001 return mapper(device_id);
2002}
2003
2004Result<std::shared_ptr<Array>> ImportDeviceArray(struct ArrowDeviceArray* array,
2005 std::shared_ptr<DataType> type,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected