-
Notifications
You must be signed in to change notification settings - Fork 111
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
adding rust ADBench version #1797
Closed
Closed
Changes from 1 commit
Commits
Show all changes
90 commits
Select commit
Hold shift + click to select a range
9770ceb
adding gmm
ZuseZ4 9f05ff8
working C too
ZuseZ4 4da9910
Delete enzyme/benchmarks/ReverseMode/gmmrs/src/main.rs2
ZuseZ4 0f68ce8
rust setup
wsmoses 7995eb3
add files
wsmoses 069e3cb
improve makefile and fix c ffi
ZuseZ4 be54358
maybe needed? pthread for cmake
ZuseZ4 4423222
bench gmm: use path relative to Makefile
jedbrown 7b5a24c
Fix byref issue for rust abi
wsmoses ea03750
Add primal bench/test
wsmoses 77a130f
fix math
ZuseZ4 4abf2bf
write into return var
ZuseZ4 5cde3d7
Cleanup gmm config
wsmoses af6583d
bench gmm: make cmath::lgamma with libm as an optional feature
jedbrown 48c2e1f
oxidize - more noalias
ZuseZ4 ba75484
reduce caching
ZuseZ4 9394028
bench gmm: makefile dep on Cargo.toml, split targets
jedbrown 814eb62
revert cmake pthread since only needed for Rust
ZuseZ4 41157fa
bench gmm: fix primal (sqnorm length matters)
jedbrown 114f236
bench gmm: quash rust warnings
jedbrown 012cf4c
adding ba benchmark
ZuseZ4 0430e44
Benchmark ba
wsmoses 4b0062b
fix ba primal
ZuseZ4 1f27479
adding unsafe gmm version
ZuseZ4 af3e078
Add FFT and LSTM benchmark for Rust Enzyme
bytesnake c8bcfe9
adding unsafe Rust fft version (how to run?)
ZuseZ4 cad4221
imprv safe rus tto work like c++
ZuseZ4 f0bf16b
unsafe version not crashing
ZuseZ4 12e9a4a
fix lstm makefile
ZuseZ4 688721d
adding unsafe rust lstm version
ZuseZ4 7ca8092
run full fft tests
ZuseZ4 73f8075
Delete enzyme/benchmarks/ReverseMode/lstm/src/main.rs
ZuseZ4 ba3aa5d
cleanup and correctness
ZuseZ4 2737734
initial (compiling) rust ode version
ZuseZ4 1ffbaaa
cleanups
ZuseZ4 8bd316a
fix ba bench
ZuseZ4 c769dac
bench gmm: move allocation of scratch space outside AD'd function
jedbrown c5e1f19
bench gmm: switch scratch from Const to Duplicated
jedbrown 947852c
bench gmm: match C++ performance by asserting sizes of work slices
jedbrown cb9d403
bench gmm: shed unused import (warning)
jedbrown dbffef6
bench lstm: optimize using length assertions
jedbrown 0174227
adding unsafe ba version
ZuseZ4 629f87c
smaller perf improvements
ZuseZ4 c6f44b3
small improvment
ZuseZ4 fb6df5b
clean up ode-real example (not building)
ZuseZ4 a6d4a7c
add ba.cpp version without restrict
ZuseZ4 d08142b
add gmm version without restrict
ZuseZ4 d6b35b3
add lstm version without restrict
ZuseZ4 55a76b9
Revert "smaller perf improvements"
ZuseZ4 de87081
adding lstm primal cxx overhead benchmark
ZuseZ4 5d9b026
Merge branch 'main' into rust-bench
ZuseZ4 7d70dc5
fix ode-real example, correct results, faster than c++, without dupno…
ZuseZ4 fdb0d09
remove boost leftovers
ZuseZ4 747e4f9
fix makefiles to use new rustflags
ZuseZ4 05d3e87
add tanh support for llvm19+
ZuseZ4 1fe64c0
fix safe fft performance
ZuseZ4 7f26f43
fix (mostly) safe lstm perf
ZuseZ4 7ecd27b
make lstm benchmark fair by running c++ with O3
ZuseZ4 aaef8b3
make ba bench fair by running c++ with O3
ZuseZ4 51ef17a
make ode-real/bruss fair by adjusting both
ZuseZ4 9c9f276
equalize benchmark configs and move over to new use std::autodiff::au…
ZuseZ4 5ebcd1e
move Rust to DuplicatedOnly
ZuseZ4 aeed32d
cleanup makefiles
ZuseZ4 1542a38
update fft-tapenade to be correct but segfault
ZuseZ4 047f121
add mayalias/unsafe ode-real/BRUSS benchmark versions
ZuseZ4 3d25858
fix safe fft performance
ZuseZ4 2d04892
cleanup fft
ZuseZ4 a273bdf
bench fft: more idiomatic safe Rust
jedbrown 65e1eaf
bench fft: use size_t in C++ for parity with Rust usize
jedbrown 609bf4d
bench fft: move from i+=2 to ii++ in loop increments
jedbrown b722c87
move rust fft to use i32 for isign
ZuseZ4 a7943f0
safe rust fft without bounds checking
ZuseZ4 59f866b
Add -fno-math-errno to each makefile for fairness
ZuseZ4 119c2ac
Merge branch 'main' into rust-bench
jedbrown 6460848
bench fft: __builtin_sin not necessary with -fno-math-errno
jedbrown 3b174ea
move c++ lstm to also use size_t, since Rust uses usize
ZuseZ4 8945897
adjust gmm, but breaks tapenade
ZuseZ4 a73a1ad
Revert "move c++ lstm to also use size_t, since Rust uses usize"
ZuseZ4 dca82bb
fix single gmm size for benchmarking
ZuseZ4 f7c75a2
safe lstm without alias info
ZuseZ4 06b135f
use new flag to keep const ptr/ref while still not emitting noalias
ZuseZ4 74a3784
make safe fft safe again
ZuseZ4 ba7cf82
bench fft: cleaner to use step_by(2)
jedbrown d5bd596
bench gmm: fix Tapenade
jedbrown 4d78820
bench gmm: fix C++ primal (negative size_t)
jedbrown 13ef016
bench fft: avoid bounds checks in safe Rust
jedbrown 9f67bd1
update fft to make benchmarking more reliable, make safe rust version…
ZuseZ4 88feab6
improve lstm output, makefiles
ZuseZ4 31fd712
bench fft: closer C++ code to Rust and use -fno-plt
jedbrown abf2a26
more numactl
ZuseZ4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ZuseZ4 Let me know if you don't like this and I'll remove it. (Other changes in this commit are just rustfmt/whitespace.)