(*args, **kwargs)
| 459 | dbuf = dest_ctx.new_buffer(size) |
| 460 | |
| 461 | def put(*args, **kwargs): |
| 462 | dbuf.copy_from_device(buf, *args, **kwargs) |
| 463 | rbuf = dbuf.copy_to_host() |
| 464 | return np.frombuffer(rbuf, dtype=np.uint8).tolist() |
| 465 | assert put() == lst |
| 466 | if size > 4: |
| 467 | assert put(position=size//4) == lst[:size//4]+lst[:-size//4] |
no outgoing calls
no test coverage detected