-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Failed to export to C code. Any method to export sparse data structure to C? #2355
Comments
Thanks! Supporting |
@k-ye Thanks for your reply! Directly using LLVM's compiled result is more reasonable than use C as a intermediate representation . Do you have any roadmap on this? |
Hey @xuhao1 ! Basically, you can dump the Inside the taichi/taichi/runtime/llvm/runtime.cpp Lines 1278 to 1287 in a07b5a5
Sorry I know this is not a great answer and lacks lots of details. But if you start playing around with a simple taichi kernel, it might become intuitive to figure out what's going on... We are trying to implement something that can dump your taichi kernels into a file and load it separately, please stay tuned! :-) |
@k-ye Well I am taking a look of this method and trying to understand the LLVM layer of taichi. Also hoping we can see your new easy-to-use dumping tool soon~ |
Describe the bug
I am trying to export the taichi kernels to C code because my own taichi project TaichiSLAM requires massive real-time IO.
I followed the instructions and tried to record my kernel, it raise
Sparse data structure is improtant to my SLAM project (that's why I trying to write them in Taichi), and the IO speed of python too slow for a real-world aerial robot.
Does Taichi has the plan to support SNodeType=pointer on C backend or I have another way to call Taichi kernels in C/C++?
To Reproduce
Log/Screenshots
The text was updated successfully, but these errors were encountered: