Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RUN \
# Build
echo "Building simc executable" && \
clang++ -v && \
make -C /app/SimulationCraft/engine release CXX=clang++ -j ${THREADS} THIN_LTO=1 LLVM_PGO_GENERATE=1 OPTS+="-Os -mtune=generic" SC_DEFAULT_APIKEY=${APIKEY} && \
make -C /app/SimulationCraft/engine release CXX=clang++ -j ${THREADS} LTO_THIN=1 LLVM_PGO_GENERATE=1 OPTS+="-Os -mtune=generic" SC_DEFAULT_APIKEY=${APIKEY} && \
# Collect profile guided instrumentation data
echo "Collecting profile guided instrumentation data" && \
LLVM_PROFILE_FILE="code-%p.profraw" ./engine/simc ${PGO_PROFILE} single_actor_batch=1 iterations=100 && \
Expand All @@ -55,7 +55,7 @@ RUN \
# Clean & rebuild with collected profile guided data.
echo "Rebuilding simc executable with profile data for further optimization" && \
make -C /app/SimulationCraft/engine clean && \
make -C /app/SimulationCraft/engine release CXX=clang++ -j ${THREADS} THIN_LTO=1 LLVM_PGO_USE=./code.profdata OPTS+="-Os -mtune=generic" SC_DEFAULT_APIKEY=${APIKEY} && \
make -C /app/SimulationCraft/engine release CXX=clang++ -j ${THREADS} LTO_THIN=1 LLVM_PGO_USE=./code.profdata OPTS+="-Os -mtune=generic" SC_DEFAULT_APIKEY=${APIKEY} && \
# Cleanup dependencies
echo "Cleaning up" && \
apk del build_dependencies
Expand Down
Loading