Skip to content

Commit

Permalink
Test BOLT integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Zentrik authored Jul 26, 2024
1 parent 64500dc commit 2698cec
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions utilities/build_julia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if [[ ! -z "${USE_JULIA_PGO_LTO-}" ]]; then

echo "--- Build Julia Stage 1 - with instrumentation"

cd contrib/pgo-lto
cd contrib/pgo-lto-bolt
${MAKE} "${MFLAGS[@]}" stage1
# Building stage1 collects profiling data which we use instead of collecting our own
fi
Expand All @@ -61,9 +61,24 @@ for FLAG in "${MFLAGS[@]}"; do
done

if [[ ! -z "${USE_JULIA_PGO_LTO-}" ]]; then
echo "--- Build Julia Stage 2 - optimised"
echo "--- Build Julia Stage 2 - PGO + LTO optimised"
${MAKE} "${MFLAGS[@]}" stage2

echo "--- Copying original shared libraries"
${MAKE} "${MFLAGS[@]}" copy_originals

echo "--- Instrumenting with BOLT"
${MAKE} "${MFLAGS[@]}" bolt_instrument

echo "--- Finishing and Profiling Julia Stage 2"
${MAKE} "${MFLAGS[@]}" finish_stage2

echo "--- Merging BOLT Profiles"
${MAKE} "${MFLAGS[@]}" merge_data

echo "--- Optimize Julia Stage 2 with BOLT"
${MAKE} "${MFLAGS[@]}" bolt

cd ../..
else
echo "--- Build Julia"
Expand Down

0 comments on commit 2698cec

Please sign in to comment.