Skip to content
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

Implement AD in interpreter #1556

Closed
athas opened this issue Dec 27, 2021 · 1 comment
Closed

Implement AD in interpreter #1556

athas opened this issue Dec 27, 2021 · 1 comment
Labels
AD Related to automatic differentiation student-viable Viable as a student project

Comments

@athas
Copy link
Member

athas commented Dec 27, 2021

The Futhark interpreter is an important development tool, but it does not currently support AD. Since our AD transformation is based on transforming the core language, it cannot be used in the interpreter, which works by design and intent on an un-molested source language representation. We could implement AD in the interpreter by simply constructing the Wengert lists in the naive and "obviously correct" manner. This would not be particularly efficient (in particularly in terms of space), but it could probably be done in a non-invasive manner, such that later changes to the interpreter don't all have to worry about how it fits with AD. It would also serve as a great tool for testing the correctness of the more optimised AD compiler transform.

@athas athas added AD Related to automatic differentiation student-viable Viable as a student project labels Dec 27, 2021
@athas
Copy link
Member Author

athas commented Oct 14, 2024

Implemented in #2186.

@athas athas closed this as completed Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AD Related to automatic differentiation student-viable Viable as a student project
Projects
None yet
Development

No branches or pull requests

1 participant