-
Notifications
You must be signed in to change notification settings - Fork 168
IRON host runtime abstraction #2737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 234 commits
Commits
Show all changes
251 commits
Select commit
Hold shift + click to select a range
d422622
update readme
hunhoffe 5256eda
remove references to old util folder
hunhoffe 2f86372
Small fixes with imports
hunhoffe ebdf631
Small changes
hunhoffe fc6a0c2
small fixes with group id for insts
hunhoffe 7ca3a42
fix typo in last commit
hunhoffe c7c31e8
first attempt at a runtime
hunhoffe 0dcf518
Start to stub out runtime class
hunhoffe 88ba934
add import
hunhoffe 5d93b72
more progress towards a runtime
hunhoffe c84fbfd
try to make the xrt hostruntime handle insts more appropriately
hunhoffe 7422259
handle insts a little better
hunhoffe acd6456
still not working, some small progress though
hunhoffe fdecb02
remove buggy test for now
hunhoffe b027436
manage the instructions cache within the host runtime class
hunhoffe cf137dd
move read insts and clean up cache
hunhoffe 0146dc9
fix bad import
hunhoffe 1d300fa
fix default kernel name
hunhoffe 8327d0e
remove unneeded todos
hunhoffe 494692c
fix bad function call
hunhoffe 02678df
debugging, small progress
hunhoffe 5153605
Small fix, still debugging
hunhoffe 68d8875
still debugging
hunhoffe 62d1175
revert some changes for easier debugging
hunhoffe 00c5461
simplify jit example device handling
hunhoffe 0339418
small fix
hunhoffe 990242e
remove unused files
hunhoffe 78e5bb9
Merge branch 'main' into iron_runtime
hunhoffe fc4eab7
some progress on trace support
hunhoffe 4a247f4
dedupe insts parsing
hunhoffe d7cd9c3
use insts in one more place
hunhoffe cee6ec3
fix type
hunhoffe 6cdfdbc
fix formatting
hunhoffe 128c6c0
small renaming
hunhoffe 4c4e651
Use iron runtime in npukernel
hunhoffe 492c3e6
remove variables which I believe are set but not used
hunhoffe 583d541
filter callables out of npukernel args
hunhoffe e74cc98
Fix circular import caused by removing the caching of instructions
hunhoffe 0397a30
add missing import
hunhoffe 693edd3
rename file
hunhoffe 9c0014f
update import path
hunhoffe fef96f9
Fix another bad import path
hunhoffe 07799da
I do not know how used, but adding back in
hunhoffe 91a6606
re-add env, try to streamline AIE_Application class
hunhoffe 02fd5c6
fix typo
hunhoffe 57d7cee
a bit more simplification and fix paths
hunhoffe 2653148
Fix subtle KernelHandle equality bug
hunhoffe f4f0cc9
Add xrt loaded kernels cache tests
hunhoffe 190ac94
cleanup cache a bit more carefully
hunhoffe 9968913
add atexit hook
hunhoffe 991d2ca
use file modification time for XRTKernelHandles
hunhoffe 9ca94c7
tell lit to ignore python pytest configuration files
hunhoffe 00b4b4c
Merge branch 'main' into iron_runtime
hunhoffe f205fd1
try to prevent/detect loading race condition
hunhoffe 2a7f3e0
be more careful about keeping track of both contexts and kernel keys.
hunhoffe da9014b
continue to cleanup the logic of xrthostruntime
hunhoffe 1f895db
small renaming
hunhoffe 357c710
remove unncessary change
hunhoffe 4be6418
check if this change is necessary
hunhoffe a54216b
add timing data
hunhoffe 0cd26ad
Fix a test bug, add more logging on xclbin context creation error
hunhoffe b86961c
Merge branch 'main' into iron_runtime
hunhoffe 0e7aab5
convert to path
hunhoffe 111e0ad
Update python/iron/compile/__init__.py
hunhoffe 7811925
reduce cache size to 6
hunhoffe 9cb519e
remove another utility
hunhoffe a831851
absolute paths, smaller cache for phoenix
hunhoffe bf44a9c
update test.py file for now
hunhoffe a5472a2
update trace test
hunhoffe 8eb831c
Update more test code
hunhoffe 9e8a20e
update section 3 code
hunhoffe 7171841
Merge branch 'main' into iron_runtime
hunhoffe 9d33531
remove unused import
hunhoffe e242024
fix up lit test output with updated helper functions
hunhoffe 4c8ff66
a bit more cleanup
hunhoffe 978e999
Introduced kernel return object
hunhoffe f94a9a3
A lot of untested changes
hunhoffe b9bbccd
fix import error and shadowing of "tensor" import from hostruntime
hunhoffe 1b5a6db
fix xrt host runtime pytests
hunhoffe 33530fe
another import fix
hunhoffe 145699c
Use file names to make it easier to run all pytests from test/python …
hunhoffe 2edf77e
more debugging
hunhoffe 491ad68
Handle insts elf mod better in xrt runtime
hunhoffe 2c8cc41
fix import typo
hunhoffe 4293f98
work to consolidate tracing support
hunhoffe 88f5b18
Unchecked updates to some programming examples to use the newer methods
hunhoffe a931498
small conversion to numpy for views
hunhoffe ef7b58b
add import
hunhoffe 35159dc
small fixes
hunhoffe 501817a
Merge branch 'main' into iron_runtime
hunhoffe df6a121
small fix to utility function, fix one test
hunhoffe 087e5cf
change how tensors initialized
hunhoffe a76aa52
small fixes
hunhoffe a05f1ec
truncate output
hunhoffe 63028f3
update some of the tests
hunhoffe d2a3cb1
fix bug in verification logic
hunhoffe 832b471
restrict test to npu1
hunhoffe 196a14c
fix tracing bug
hunhoffe 1ad4dfe
try different context management strategy
hunhoffe 92bd4d7
Merge branch 'main' into iron_runtime
hunhoffe fbce13d
Merge branch 'main' into iron_runtime
hunhoffe 337a4e3
Merge branch 'main' into iron_runtime
hunhoffe ede43d4
Merge branch 'main' into iron_runtime
hunhoffe 6690f84
Merge branch 'main' into iron_runtime
hunhoffe 96f12eb
Merge branch 'main' into iron_runtime
hunhoffe ca1f84d
Update example
hunhoffe bb03d67
Merge branch 'main' into iron_runtime
hunhoffe 21713f6
make sure buffers are initially synced to npu for tracing
hunhoffe 5ec167d
Update lit requires
hunhoffe 2972e2c
Remove unnecessary changes
hunhoffe 9bf66b4
truncate output and restore unneeded change
hunhoffe 0b3b8eb
restore more changes
hunhoffe 3b50a9a
Simplify runtime
hunhoffe 8239090
Cleanup bugs from previous simplification; passes test/python pytests…
hunhoffe 34e0fdd
fix elf bug I introduced
hunhoffe 402dc14
one more small fix
hunhoffe f266be1
truncate error output to avoid truncating overall ci logs
hunhoffe 171d82a
still getting segfaults but fix a few python errors
hunhoffe 85bdac4
fix formatting
hunhoffe ff7a58f
Not sure if control packets is really working, but it is closer
hunhoffe 87ef701
fix python formatting
hunhoffe eb510af
Fix conv2d example and bug in extract prefix
hunhoffe 2cfc466
update test.py
hunhoffe c1a5a6b
quick fixup for reference data
hunhoffe ad5645e
improve parsing of trace function
hunhoffe b34e82c
Merge branch 'main' into iron_runtime
hunhoffe 8d63854
Improve packet handling
hunhoffe 74d4918
fix api error
hunhoffe bf5e3da
fixup trace size
hunhoffe a3e5568
Try to clean up interface a little
hunhoffe 5deb002
Use original array
hunhoffe a815781
Merge branch 'main' into iron_runtime
hunhoffe 5826402
Try to cleanup trace config a bit more
hunhoffe 32c143c
start consolidating tracing utilities
hunhoffe b53bacf
integrate more of xrt.py into hostruntime
hunhoffe eb00b0a
finally remove xrt.py
hunhoffe 99c6d06
Simplify a little
hunhoffe f71d12f
a little more trace refactoring
hunhoffe 90d4259
integrate NPUKernel into runtime
hunhoffe b1d874c
try to simplify things a little
hunhoffe c8c64ef
most iron.hostruntime to utils
hunhoffe e07c29b
update docs
hunhoffe 94ee9f1
move compile args, start to remove references to iron in utils
hunhoffe 3507116
try to fix circular import
hunhoffe 40ddecb
fixup import
hunhoffe 284929d
now passing test/python pytests
hunhoffe c13cd68
tidy tracing code a little bit
hunhoffe c2ff4be
cleaning up old code and fixing imports
hunhoffe d557c86
move another tracing utility
hunhoffe 389582b
Try to deduplicate some
hunhoffe 23703ee
continue trace cleanup
hunhoffe 8912f1b
fixup imports some more
hunhoffe 4728739
fixup paths in programming examples
hunhoffe 3c5648b
fixup more paths
hunhoffe 2bb083e
fixup another path
hunhoffe 6d28aed
add JIT + trace test
hunhoffe 9e2a773
getting closer to jit trace
hunhoffe e99cc6a
jit trace working locally
hunhoffe c77b6e0
fixup import
hunhoffe 3826f08
update documentation
hunhoffe de948c8
fixup some more paths
hunhoffe 272fe08
fix another import
hunhoffe cd75071
create utils/hostruntime directory
hunhoffe a5702b5
fix another import
hunhoffe 0339dba
stronger trace check
hunhoffe ee5c96e
update cmake python/utils source files
hunhoffe 8c3bc5f
fix test imports
hunhoffe 5e936d6
Fixed path
hunhoffe 4568c43
update imports in a few more examples
hunhoffe 906ec54
try to deduplicate list of npu1 vs npu2 arches
hunhoffe be386bc
update scripts
hunhoffe 0a5cef8
Use opts kernel
hunhoffe 18b899f
fix another test
hunhoffe 1a25c96
Update python/utils/npu_models.json
hunhoffe 21515ba
fix import issue
hunhoffe 0920a9c
update build
hunhoffe 3e241ef
Merge branch 'main' into iron_runtime
hunhoffe 0097bae
fix default kernel name
hunhoffe a1bf2dc
Merge branch 'main' into iron_runtime
hunhoffe 50b9618
Fixed notebook example
hunhoffe eb63d9a
Merge branch 'main' into iron_runtime
hunhoffe 8e0b739
fix import
hunhoffe 3247306
first attempt at merging main
hunhoffe 8002871
pytests working ok
hunhoffe 72eec97
one fix, revert some changes
hunhoffe 584e641
some import fixes
hunhoffe b05e0eb
fix another import
hunhoffe 9cb52ae
choose enums by arch name
hunhoffe c486007
Fix typo
hunhoffe 55962bd
fix another check
hunhoffe 96e3031
fix another import error
hunhoffe 46075d2
Simplify changes a bit more
hunhoffe a64cc10
Merge branch 'main' into iron_runtime
hunhoffe 8010762
revert unnecessary change
hunhoffe ca283f5
use tensor whenever possible
hunhoffe a56e71a
try to create a cache xrt runtime again
hunhoffe 2f3f019
used CachedXRTRuntime by default
hunhoffe f161926
Cleanup cache when python process exits
hunhoffe 7719fb9
stricter eviction
hunhoffe 8813f50
fix switched if/else
hunhoffe 9a24d2a
add some tests
hunhoffe 05e1fcf
fill cache test is passing
hunhoffe 7fd1704
add cache tests
hunhoffe f3d3645
Merge branch 'main' into iron_runtime
hunhoffe 903c8b9
add base runtime unit test
hunhoffe 8f17791
fix some errors
hunhoffe b86e5d0
add a bit more compatibility with driver versions and make sure to cl…
hunhoffe c1502de
pytests working on phoenix
hunhoffe b064426
add comment
hunhoffe 6a529d5
remove outdated import
hunhoffe d6399bc
Set cache size based also on lit test concurrency
hunhoffe 2bea652
insts caching
hunhoffe 84e1092
retries for context, small bug in buffer obj cleanup, update tests
hunhoffe d7fc986
limit parallelism of lit tests that use xrt to run things on an npu
hunhoffe 78f9aef
fix trace bug
hunhoffe 85d85e4
try increasing cache size a little
hunhoffe b4074c5
Update python/helpers/util.py
hunhoffe b64d8dd
Update test/python/npu-xrt/test_jit_trace.py
hunhoffe b093163
Merge branch 'main' into iron_runtime
hunhoffe 0a206d1
Update python/utils/__init__.py
hunhoffe de0afd5
remove iron naming from utils for the most part
hunhoffe 2b57b31
fixup comment
hunhoffe c32d7e3
change ref to dictionary
hunhoffe c6d7872
change ref to dict in examples
hunhoffe 293035d
change ordering of run_test
hunhoffe a534bf0
remove unnecessary declaration
hunhoffe 3350e69
set env_cache_size more deterministically
hunhoffe e15a92d
fixup context key
hunhoffe 951cc4a
fix a few bugs
hunhoffe b3c31aa
rename
hunhoffe fa1283a
pytests pass
hunhoffe 1e7e875
added more interesting comment
hunhoffe 29b5e9b
fix another typo
hunhoffe be554cc
update comments
hunhoffe ba76518
be more careful with npu1/npu2 strings
hunhoffe 7a8769e
fixup year
hunhoffe 8214478
small fix
hunhoffe b194fbc
another fix
hunhoffe 367aa96
fix in test
hunhoffe ed78e0e
fixup documentation a bit
hunhoffe 2565f34
more docstrings
hunhoffe a6d5dce
include utils/hostruntime in the documentation webpage
hunhoffe dda8594
more updates to documentation
hunhoffe fb8f442
more small fixes
hunhoffe c11665c
Add another test
hunhoffe 24c6997
add another flag to better control the cached runtime behavior
hunhoffe 83b81c1
update copyright
hunhoffe 9908eb7
Merge branch 'main' into iron_runtime
hunhoffe 42315b6
override set device
hunhoffe f1ae207
Add some sanity checks
hunhoffe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.