PYNQ
PYNQ copied to clipboard
Release the zocl call by calling `device.close()`
- Release the zocl call by calling
device.close() - keep
pl_serveralive - grab XRT handle in
_xrt_downloadif the handle is empty
With these changes after a Overlay.free() the instance of zocl is released, and by not stopping the pl_server we can download another overlay from the same notebook.
Codecov Report
Merging #1338 (d67700d) into image_v2.8 (b85f453) will decrease coverage by
0.02%. The diff coverage is14.28%.
@@ Coverage Diff @@
## image_v2.8 #1338 +/- ##
==============================================
- Coverage 46.47% 46.45% -0.03%
==============================================
Files 28 28
Lines 4953 4958 +5
Branches 971 972 +1
==============================================
+ Hits 2302 2303 +1
- Misses 2594 2598 +4
Partials 57 57
| Impacted Files | Coverage Δ | |
|---|---|---|
| pynq/overlay.py | 33.55% <0.00%> (-0.08%) |
:arrow_down: |
| pynq/pl_server/xrt_device.py | 29.13% <16.66%> (-0.05%) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update b85f453...d67700d. Read the comment docs.
Converting to draft to do more checking after this https://github.com/Xilinx/Kria-PYNQ/commit/92da27656d00c2b8843986f30590c4c832b80411