We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7aa0cba commit 44d430aCopy full SHA for 44d430a
1 file changed
python/pyarrow/tests/test_cuda.py
@@ -553,11 +553,14 @@ def test_buffer_device():
553
assert buf.is_cpu
554
assert buf.device.is_cpu
555
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
558
assert buf.memory_manager.is_cpu
559
560
_, buf = make_random_buffer(size=10, target='device')
561
assert buf.device_type == pa.DeviceAllocationType.CUDA
562
assert isinstance(buf.device, pa.Device)
563
+ assert buf.device == global_context.memory_manager.device
564
assert isinstance(buf.memory_manager, pa.MemoryManager)
565
assert not buf.is_cpu
566
assert not buf.device.is_cpu
0 commit comments