-
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
AOT recording produces an empty file. #5639
Comments
Hi aespielberg, |
In addition, we also have a more up-to-date AOT interface which is well maintained:
Was wondering if there's any specific reason that you're using |
I tried stop_recording which did not help; I will try the new interface soon and I will post the output of stop_recording. |
Okay, adding
If I change the code instead to:
Then, I get three metatdata files and a .ll file. I haven't tried to compile them yet to see if they work correctly - is there documentation on how to use these and this new interface? I am sorry; I am having trouble finding it. |
Hi aespielberg, In simple words:
|
Thank you, I understand the basic idea now, this is helpful. I guess, overall, I am also wondering if the possible is currently possible in taichi (even if not documented yet):
I know it's not officially released yet, but if there is any example code anywhere of just using the output files of simple functions, that would be super helpful. |
Hi aespilber,
|
Hi @aespielberg , Taichi supports computing gradients of kernels using reverse mode (forward mode will be supported in v1.1 release). The computed gradients are stored in the |
Hi @erizmr sorry, maybe there was a misunderstanding - I know how to use backward computation, I was simply wondering if there was an example on using it with AOT. (Very excited about forward mode btw.) @jim19930609 Thank you for the cache info and comet example, those are very useful, and this looks like very cool functionality. If I may ask a few follow-up questions:
By the way, I know the conversation has diverged and this ticket was closed, but was the original issue resolved (and how)? |
Hi @aespielberg,
The file obtained locally: record.zip Let me re-open this issue until it's verified to work. |
As for the other 2 issues:
|
As for autodiff, I haven't tried any AOT demo with autodiff for now, and I feel like this is another feature request for AOT. Was wondering if we have any thoughts or future plans regarding autodiff-AOT? @ailzhang @erizmr |
I get an empty record.yml and the following output:
|
Interesting, I was using a Linux machine with nightly Taichi wheel locally. may I know what OS and Taichi version you are using, so as to reproduce? |
This is taichi 1.04; Ubuntu 20.04.3 LTS; running in Anaconda Python 3.9.7. |
Verified that Or to make your life easy, I'm also able to send you a working python wheel through email (Too large to fit github's file size limit). If you'd prefer a pre-built wheel, please let me know the python version you are using. |
Working on Ubuntu 20.04, CUDA 11.7, taichi 1.04.
When running the example descirbed here, the record.yml file is empty.
Full code:
Here is the output:
And the yml file is empty. There is a comment about arch.cc not being supported for some reason?
The text was updated successfully, but these errors were encountered: