完善PGO机制

This commit is contained in:
2026-02-25 17:22:56 +08:00
parent 9e6b25163a
commit a5c713a7e0
3 changed files with 2 additions and 2 deletions

View File

@@ -9,9 +9,9 @@ PROFDATA = /home/$(shell whoami)/AMSS-NCKU/pgo_profile/default.profdata
ifeq ($(PGO_MODE),instrument)
## Phase 1: instrumentation — omit -ipo/-fp-model fast=2 for faster build and numerical stability
CXXAPPFLAGS = -O2 -xHost -fma -fprofile-instr-generate \
CXXAPPFLAGS = -O3 -xHost -fma -fprofile-instr-generate -ipo \
-Dfortran3 -Dnewc -I${MKLROOT}/include
f90appflags = -O2 -xHost -fma -fprofile-instr-generate \
f90appflags = -O3 -xHost -fma -fprofile-instr-generate -ipo \
-align array64byte -fpp -I${MKLROOT}/include
else
## opt (default): maximum performance with PGO profile data