(*args, **kwargs)
| 467 | dbuf = dest_ctx.new_buffer(size) |
| 468 | |
| 469 | def put(*args, **kwargs): |
| 470 | dbuf.copy_from_device(buf, *args, **kwargs) |
| 471 | rbuf = dbuf.copy_to_host() |
| 472 | return np.frombuffer(rbuf, dtype=np.uint8).tolist() |
| 473 | assert put() == lst |
| 474 | if size > 4: |
| 475 | assert put(position=size//4) == lst[:size//4]+lst[:-size//4] |
no outgoing calls
no test coverage detected