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

added gradient verification #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jhueckelheim
Copy link

Added a checksum for the Enzyme gradients of LULESH.jl, and another checksum that is computed using finite differences.
The FD checksum is computed if the option --verification is given, the AD checksum is computed if both options --verification --enzyme are given.

For example:

./mpiexecjl --project -np 1  julia --project examples/benchmark.jl -s 4  --mpi --enzyme --verification

will print gradient checksum: 0.833891, whereas

./mpiexecjl --project -np 1  julia --project examples/benchmark.jl -s 4  --mpi --verification

will print FD checksum: 0.833892 on my machine (small differences are expected due to truncation and roundoff errors).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant