-
Notifications
You must be signed in to change notification settings - Fork 268
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
feat: new Tracy Time preset and more efficient univariate extension #8789
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
753cf18
Start; still no luck on mainframe
codygunton db93e9b
Add local benchmarking script for convenience
codygunton 4602ba6
Update default preset
codygunton 2736c74
Base on clang16-dbg
codygunton 654f95c
Revert "Base on clang16-dbg"
codygunton 9bd40ce
Add deps
codygunton c0471d0
Add and rename scripts
codygunton 61299e9
mainframe-side changes for remote build local execution
codygunton 1393754
local-side changes for remote build local execution
codygunton 0c2b10f
CIVC bench with two folds
codygunton 08fc540
Prototype improvements to extend_to
codygunton a451f97
Implement and use self_extend_from
codygunton bf69253
revert change to extend_to
codygunton 096b49b
Does std::move help?
codygunton 12d6557
WIP using macros well
codygunton be4756f
delete two tracy benchmark scripts
lucasxia01 6e69ec8
test out TRACY_MEMORY variable to see if it works (it does)
lucasxia01 bd7324a
use TRACY_MEMORY flag so that zones don't affect other tracy builds
lucasxia01 21c7599
remove tracy-default preset
lucasxia01 2ed1fc5
Merge remote-tracking branch 'origin/master' into cg/civc-profile
lucasxia01 ad0326d
add ZoneScoped to BB_OP_COUNT_TIME
lucasxia01 5bf2a58
add #ifdef TRACY_MEMORY to everywhere
lucasxia01 b6d9531
Merge branch 'master' into cg/civc-profile
lucasxia01 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
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
49 changes: 49 additions & 0 deletions
49
barretenberg/cpp/scripts/benchmark_tracy_build_mainframe_run_local.sh
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
# NOTE: intended to be ran from one's external computer, connecting to Aztec mainframe | ||
# IF ON YOUR LOCAL COMPUTER USE NORMAL INTERACTIVE TRACY WORKFLOW | ||
# the benchmark runs with headless capture and then we copy the trace file and run tracy profiler | ||
# This is thus only really useful internally at Aztec, sorry external folks. It can be easily tweaked | ||
# however for any SSH setup, especially an ubuntu one. | ||
# on local machine run: | ||
# export USER=... | ||
# export PRESET=...tracy for memory or tracy-gates for circuit gates... | ||
# ssh $USER-box "cat ~/aztec-packages/barretenberg/cpp/scripts/benchmark_tracy.sh" | bash /dev/stdin $USER | ||
set -eux | ||
USER=${1:-$USER} | ||
BOX=$USER-box | ||
BENCHMARK=${2:-protogalaxy_bench} | ||
COMMAND=${3:-./bin/$BENCHMARK --benchmark_filter=fold_k/17} | ||
|
||
# Can also set PRESET=tracy-gates env variable | ||
PRESET=${PRESET:-tracy-time} | ||
|
||
wait # TODO(AD) hack - not sure why needed | ||
! [ -d ~/tracy ] && git clone https://github.com/wolfpld/tracy ~/tracy | ||
cd ~/tracy | ||
git checkout 075395620a504c0cdcaf9bab3d196db16a043de7 # release 0.11.0 | ||
cmake -B profiler/build -S profiler -DCMAKE_BUILD_TYPE=Release | ||
cmake --build profiler/build --parallel | ||
cd - | ||
|
||
ssh $BOX " | ||
set -eux ; | ||
cd ~/aztec-packages/barretenberg/cpp/ ; | ||
cmake --preset $PRESET && cmake --build --preset $PRESET --target $BENCHMARK ; | ||
" & | ||
wait | ||
if [ ! -d build-$PRESET/bin ]; then | ||
echo build-$PRESET/bin; | ||
mkdir -p build-$PRESET/bin; | ||
fi | ||
scp $BOX:/mnt/user-data/$USER/aztec-packages/barretenberg/cpp/build-$PRESET/bin/$BENCHMARK build-$PRESET/bin/. ; | ||
! [ -d ~/tracy ] && git clone https://github.com/wolfpld/tracy ~/tracy ; | ||
cd ~/tracy/capture ; | ||
git checkout 075395620a504c0cdcaf9bab3d196db16a043de7 ; | ||
mkdir -p build && cd build && cmake .. && make -j ; | ||
|
||
./tracy-capture -a 127.0.0.1 -f -o ../trace-$BENCHMARK & | ||
sleep 0.1 ; | ||
cd ~/aztec-packages/barretenberg/cpp/build-$PRESET/ | ||
$COMMAND ; | ||
|
||
~/tracy/profiler/build/tracy-profiler ~/tracy/capture/trace-$BENCHMARK |
File renamed without changes.
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
what's the point of this 2? doesn't seem to be used.