Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@fzi-hielscher
Copy link
Contributor

@fzi-hielscher fzi-hielscher commented Dec 17, 2025

Topping off the stack of ArcRuntime PRs, this one:

  • Adds the InsertRuntime pass to the arcilator pipeline. It can be disabled with --no-runtime.
  • Provides the (hidden) symbols of the runtime library to the MLIR Execution Engine. While rarely desirable*, this too can be disabled with --no-jit-runtime.
  • Adapts the header generation python script to enable usage of the runtime library with ahead-of-time compiled models by setting ARC_USE_COMPILED_RUNTIME_LIB.

It is possible to pass an options string to the runtime library. For JIT runs, this is done via the --extra-runtime-args=... flag. For AOT runs, it can be passed to the constructor of the model class.
Currently, calls to the runtime library are only inserted when there is a SimInstantiateOp in the module. So, the "old" AOT flow should continue to work even without explicitly disabling the runtime.

*It allows using a custom runtime library implementation by providing it as a dynamic library to the runner. 🦀

@fzi-hielscher fzi-hielscher force-pushed the dev/fzi-hielscher/arcruntime-2 branch from 7a4a310 to 60c32de Compare December 17, 2025 21:40
@fzi-hielscher fzi-hielscher force-pushed the dev/fzi-hielscher/arcruntime-3 branch from c86b45d to 1199266 Compare December 17, 2025 22:12
@fzi-hielscher fzi-hielscher force-pushed the dev/fzi-hielscher/arcruntime-3 branch from 1199266 to 32b9dec Compare December 19, 2025 13:29
@fzi-hielscher fzi-hielscher force-pushed the dev/fzi-hielscher/arcruntime-2 branch 2 times, most recently from 2e3d432 to 953d06e Compare January 8, 2026 00:45
@fzi-hielscher fzi-hielscher force-pushed the dev/fzi-hielscher/arcruntime-3 branch from 32b9dec to 8843735 Compare January 8, 2026 00:50
@fzi-hielscher fzi-hielscher force-pushed the dev/fzi-hielscher/arcruntime-2 branch from f97923a to 911b743 Compare January 8, 2026 23:21
@fzi-hielscher fzi-hielscher force-pushed the dev/fzi-hielscher/arcruntime-3 branch from 8843735 to 25a98ad Compare January 8, 2026 23:21
@fzi-hielscher fzi-hielscher force-pushed the dev/fzi-hielscher/arcruntime-2 branch from 911b743 to 6f38daa Compare January 9, 2026 02:14
@fzi-hielscher fzi-hielscher force-pushed the dev/fzi-hielscher/arcruntime-3 branch from 25a98ad to 905fbf3 Compare January 9, 2026 02:14
@fzi-hielscher fzi-hielscher force-pushed the dev/fzi-hielscher/arcruntime-2 branch from 6f38daa to 0593810 Compare January 9, 2026 02:23
@fzi-hielscher fzi-hielscher force-pushed the dev/fzi-hielscher/arcruntime-3 branch from 905fbf3 to 7744ce5 Compare January 9, 2026 02:23
@fzi-hielscher fzi-hielscher force-pushed the dev/fzi-hielscher/arcruntime-2 branch 2 times, most recently from dffe5c7 to 1270655 Compare January 9, 2026 15:49
@fzi-hielscher fzi-hielscher force-pushed the dev/fzi-hielscher/arcruntime-3 branch from 7744ce5 to 094256a Compare January 9, 2026 15:57
Base automatically changed from dev/fzi-hielscher/arcruntime-2 to main January 9, 2026 21:48
@fzi-hielscher fzi-hielscher force-pushed the dev/fzi-hielscher/arcruntime-3 branch from 094256a to 507b35e Compare January 9, 2026 22:24
@fzi-hielscher fzi-hielscher marked this pull request as ready for review January 9, 2026 23:18
@fzi-hielscher
Copy link
Contributor Author

@fabianschuiki Last ping for this week, I promise. Unless it all breaks down in the CI. 😅 Yesterday's version passed the nightly integration tests, so I'm cautiously optimistic it won't.
https://github.com/llvm/circt/actions/runs/20836598870

Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks a lot for doing all this fantastic Arc Runtime work 🥳🥇. If you want to give this a spin, the benchmarking branch of the arc-tests repository has a setup to run a simulation of the Rocket and BOOM cores, and the Snitch core. Should be as easy as running for example make -C rocket run in that repository.

@fabianschuiki fabianschuiki added the Arc Involving the `arc` dialect label Jan 9, 2026
@fzi-hielscher fzi-hielscher merged commit 042fe81 into main Jan 10, 2026
7 checks passed
@fzi-hielscher fzi-hielscher deleted the dev/fzi-hielscher/arcruntime-3 branch January 10, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arc Involving the `arc` dialect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants