-
Notifications
You must be signed in to change notification settings - Fork 54
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
CPU execution #3
Comments
Does the merging of JuliaLang/julia#41936 make this any easier? |
Not really. But we do actually have CPU execution nowadays with what @vchuravy implemented, right? See Lines 284 to 332 in f1fd912
|
Yeah we do have that, but it is not really meant for users, more as the CI definition necessary for Enzyme.jl |
Oh interesting, thanks! I played around a bit with this trying to write the result of the codegen to a |
We have this now. |
It would be useful if we could execute code on the CPU, both for testing and to extend the usability of this package. Regular execution should be pretty easy:
Left to implement is the runtime, we could print by e.g. linking the C runtime and calling
printf
. However, it would be vastly more useful if we could actually reuse the full Julia runtime. This should be possible with the LLVM ORC JIT, which supports looking external functions and globals. https://www.doof.me.uk/2017/05/11/using-orc-with-llvms-c-api/The text was updated successfully, but these errors were encountered: