Questions tagged [pgo]

Profile Guided Optimization is a method of supplying the compiler with data about common flows which should be optimized.

47 questions
1
vote
0 answers

LLVM14: Profile Guided Optimization yields "Malformed Instrumentation Profile Data"

Windows 10, Ryzen 3700x, gcc 8.1.0 (Posix, SEH-enabled) I am building clang, llvm, and compiler-rt (the PGO tools) from source. I have downloaded the clang+llvm source for 14.0.0, and built it successfully with the following: cmake -G "MinGW…
1
vote
0 answers

Impossible constraint in ‘asm’ error with kernel FDO

I'm trying to compile the aarch64 kernel with FDO. The initial compilation process works fine, however the second phase of using the gcda files (-fprofile-use) runs into error. Any idea, what this would be happening and how to avoid that? kernel…
1
vote
0 answers

Check backup schedule in PGO

I'm using a PGO maintained, backup enabled Postgres cluster running on K8. The backups are supposed to be scheduled but I'm not sure where to check for the backup schedule configuration. I have tried several ways such as below commands as I found…
1
vote
0 answers

Are there ways to inspect PGO compiler optimizations?

We have been testing profile-guided builds for a database project and found that it was significantly improving the performance of particular parts of the systems (in our case, the aggregation). As we would like to remove the required overheads for…
Bouncner
  • 2,124
  • 1
  • 19
  • 19
1
vote
1 answer

How to use GCC PGO with source code in different folder?

I've compiled PGO-instrumented build from A/src and collected the profile. Now I want to apply this profile when building from B/src. Is this possible? GCC complains about the lack of profile since absolute paths are different, but otherwise the…
Dan M.
  • 3,818
  • 1
  • 23
  • 41
1
vote
1 answer

How do I start Dynamic PGO with Docker in NET6?

As some documents to enable PGO: export DOTNET_ReadyToRun=0 export DOTNET_TieredPGO=1 export DOTNET_TC_QuickJitForLoops=1 But I didn't find how to config in dockerfile, or where should I config in build or publish stage.
Fair
  • 431
  • 1
  • 5
  • 11
1
vote
0 answers

Build python3 PGO without using additional closed source or bloated ...stuff

Forgive me but i'm a little out of my element here. How can I build Python 3 without using closed source Nuget5 or the massive MSVS? Is there a way to compartmentalize bits and pieces of this and only grab what I absolutely need, preferably using…
1
vote
1 answer

G++/CMake Profile Guided Optimization cannot find generated .gcda files

I am compiling an application using CMake 3.16.3 and G++ 9.3 on Ubuntu 20.04. This is the current source directory: . (this is called MyApp) ├── src │   ├── /* source files */ │   └── CMakeLists.txt ├── tests │   ├── /* source files */ │   └──…
featherless biped
  • 163
  • 1
  • 5
  • 16
1
vote
0 answers

Is -fprofile-reorder-functions supported with Autofdo?

Autofdo allows gathering more accurate profile data than when using -fprofile-generate but it’s not used -fauto-profile unlike -fprofile-use. Does it means it only works with -fprofile-use?
user2284570
  • 2,891
  • 3
  • 26
  • 74
1
vote
0 answers

How to use the -pgo-instr-gen arguments with llvm opt

I want to test the PGO with llvm and I find most of the tutorial in the internet uses clang with argument -fprofile-instr-use to enable PGO instrumentation. However, what I have is an llvm bitcode file instead of the source code and I want to apply…
1
vote
1 answer

Profile Guided Optimization - __gcov

I am trying to run profile guided optimization on my code with -fprofile-generate flag. When I compile with it, I am getting the following error. obj\Debug\main.o||In function…
1
vote
0 answers

GPEncryptedDataList found where PGPPublicKeyRing expected

I am encrypting a text file with public key which i already have, I have a method which basically reads public key from the input stream, while creating an object at the following line i am getting exception public static PGPPublicKey…
1
vote
0 answers

Does Clang profile guided optimization work for android apps

Does Clang profile guided optimization work for Android apps having native libraries? I followed the steps given here, I was able to instrument the native libraries, but no .profraw files got generated when I ran my app. Link
1
vote
2 answers

Where should I store PGO database files?

I have been looking into using Profile Guided Optimisation in Visual C++ 2013. I'm happy with executing the training set using different scenarios as a manual step, but would like the final optimised build and link to work on our CI build…
1
vote
1 answer

Clang++ PGO: empty .profraw

I'm asking for help for a problem with Clang Profile Guided Optimization. I'm using clang++-3.7, but the problem is still present with clang++-3.6. If I try to do the PGO with a dummy code, everything's fine: I compile with…
Markigno
  • 71
  • 5