()
| 89 | |
| 90 | |
| 91 | def 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 | |
| 99 | def make_random_buffer(size, target='host'): |
nothing calls this directly
no outgoing calls
no test coverage detected