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

Function test_device_memory_manager

python/pyarrow/tests/test_device.py:23–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def test_device_memory_manager():
24 mm = pa.default_cpu_memory_manager()
25 assert mm.is_cpu
26 device = mm.device
27 assert device.is_cpu
28 assert device.device_id == -1
29 assert device.device_type == pa.DeviceAllocationType.CPU
30 assert device.type_name == "arrow::CPUDevice"
31 assert device == device
32 assert repr(device) == "<pyarrow.Device: CPUDevice()>"
33 assert repr(mm) == "<pyarrow.MemoryManager device: CPUDevice()>"
34
35
36def test_buffer_device():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected