Skip to content

Mention reproduciblity  #8

@joebonrichie

Description

@joebonrichie

Distributions often won't PGO their packages as it can hurt reproducibility, this is mainly due the compiler potentially producing different run to run profiling results for the given workload affecting the optimized build. This is less of an issue with FDO as the profile provided is static.

For distributions like Arch Linux this is especially problematic as the binary packages are currently compiled the maintainer's personal machines then uploaded to the repository server AFAIU. Therefore the reproducibility requirements are high.

GCC has a flag to mitigate this https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html#index-fprofile-reproducible. E.g. the GCC auto PGO build will enable fprofile-reproducible=parallel-runs by default.

I currently don't know if clang provides any flags that affect profile reproducibility

Any toolchain resources compiled here mentioning reproducible profiles would be handy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions