-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Issue 149164 fix #149373
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
base: main
Are you sure you want to change the base?
Issue 149164 fix #149373
Conversation
|
Some changes occurred in compiler/rustc_codegen_llvm/src/builder/autodiff.rs cc @ZuseZ4 |
|
r? @davidtwco rustbot has assigned @davidtwco. Use |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
If this code works, then you should also be able to remove some more code, as per:
I marked the locations as fixme in https://github.com/rust-lang/rust/pull/149033/files Also, did you verify that the test cases still pass with your changes? Here are the instructions to do so: r? me |
|
Sounds good, I will update the code and ensure it will pass the test cases. |
|
Hi there, I checked out this commit, which is the last commit before I made the commits in this PR. I tried to follow the build steps in this link you gave: https://rustc-dev-guide.rust-lang.org/autodiff/installation.html#build-instructions, but the build fails with errors due to being unable to compile core and rustc-demangle. Both errors are caused by "process didn't exit successfully" and have this at the end: exit code: 0xc0000005, STATUS_ACCESS_VIOLATION. Could you please help with this issue? |
|
That's unfortunately missing too much information to be able to help. Can you create a separate issue and fill out the form? E.g. OS, stacktrace, logs, etc. |
|
Hi there, I have created an issue here, could you take a look? If there is any other information you need, please let me know. Sorry for the inconvenience. |
|
I was able to sucessfully create the build using WSL. When I try to run the tests on this commit, the test case with the command The other 3 test cases has their tests either passed or ignored. In this commit (my most recent one) 9beb95d, it fails at the same tests and succeeds on everything else. How should I proceed? |
|
I need to look at what to do with the batching feature, since it's fragile. For the other two, it's likely just rustc improvements leading to better codegen and failing tests. As long as the majority passes you should be good to continue. So just try to remove the mentioned code and see if you can still get it to pass the same tests. |
|
I removed the code in the fixme's from the files in https://github.com/rust-lang/rust/pull/149033/files. However, I get these failures with this command and these failures with this command There seems to be another issue that causes these errors, but I am unsure where it comes from. |
This comment has been minimized.
This comment has been minimized.
9beb95d to
78bfe74
Compare
|
@wilbertbw sorry I had lost a bit track of this one. Did you figure out how to get the codegen tests to pass, with the suggested changes? Also (I guess you noticed), we improved how we distribute autodiff, so I hope main should now build on wsl without changes? |
…ion in /compiler/rustc_codegen_llvm/src/intrinsic.rs
78bfe74 to
41703e0
Compare
|
I just pulled for main and reran the tests on WSL. On the main branch, all of them except The same occurs with this commit (does not have the changes mentioned in the files) 41703e0. I am also unable to find a way to get the tests to pass with the suggested changes. The following are the failures, the only difference from before is the failure of
Sorry for the inconvenience. |
|
I also created a commit (da0ad99) for the suggested changes in https://github.com/rust-lang/rust/pull/149033/files |
|
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
|
In general, In general, does autodiff still work with all commits applied (especially the ones that delete the extra code)? |
Addressed Issue #149164: Simplify autodiff handling of dependencies (rlib)
Updated adjust_activity_to_abi to accept a function pointer type instead of Instance and use fn_abi_of_fn_ptr instead of fn_abi_of_instance.
Also updated the arguments passed into the adjust_activity_to_abi call in compiler/rustc_codegen_llvm/src/intrinsic.rs.