Skip to content

Commit 44d430a

Browse files
add comment
1 parent 7aa0cba commit 44d430a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

python/pyarrow/tests/test_cuda.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,11 +553,14 @@ def test_buffer_device():
553553
assert buf.is_cpu
554554
assert buf.device.is_cpu
555555
assert buf.device == pa.default_cpu_memory_manager().device
556+
# it is not entirely clear if CudaHostBuffer should use the default CPU memory
557+
# manager (as it does now), see https://github.com/apache/arrow/pull/42221
556558
assert buf.memory_manager.is_cpu
557559

558560
_, buf = make_random_buffer(size=10, target='device')
559561
assert buf.device_type == pa.DeviceAllocationType.CUDA
560562
assert isinstance(buf.device, pa.Device)
563+
assert buf.device == global_context.memory_manager.device
561564
assert isinstance(buf.memory_manager, pa.MemoryManager)
562565
assert not buf.is_cpu
563566
assert not buf.device.is_cpu

0 commit comments

Comments
 (0)