Skip to content

Commit 9c55562

Browse files
committed
Test BOLT integration
1 parent 7be7e87 commit 9c55562

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

utilities/build_julia.sh

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ if [[ ! -z "${USE_JULIA_PGO_LTO-}" ]]; then
5151

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

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

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

72+
echo "--- Copying original shared libraries"
73+
${MAKE} "${MFLAGS[@]}" copy_originals
74+
75+
echo "--- Instrumenting with BOLT"
76+
${MAKE} "${MFLAGS[@]}" bolt_instrument
77+
78+
echo "--- Finishing and Profiling Julia Stage 2"
79+
${MAKE} "${MFLAGS[@]}" finish_stage2
80+
81+
echo "--- Merging BOLT Profiles"
82+
${MAKE} "${MFLAGS[@]}" merge_data
83+
84+
echo "--- Optimize Julia Stage 2 with BOLT"
85+
${MAKE} "${MFLAGS[@]}" bolt
86+
7287
cd ../..
7388
else
7489
echo "--- Build Julia"

0 commit comments

Comments
 (0)