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

Function test_context_allocate_del

python/pyarrow/tests/test_cuda.py:91–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89
90
91def test_context_allocate_del():
92 bytes_allocated = global_context.bytes_allocated
93 cudabuf = global_context.new_buffer(128)
94 assert global_context.bytes_allocated == bytes_allocated + 128
95 del cudabuf
96 assert global_context.bytes_allocated == bytes_allocated
97
98
99def make_random_buffer(size, target='host'):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected