Understanding Phoronix Test Suite Workflow, Compiler Detection, and Custom Compiler

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • lokesh27
    Junior Member
    • Dec 2024
    • 2

    Understanding Phoronix Test Suite Workflow, Compiler Detection, and Custom Compiler

    I’m currently exploring the Phoronix Test Suite (PTS) and trying to understand its internal workings in more detail, specifically regarding the workflow, pre-execution checks, and how it handles compilers during the benchmarking process. I have a few questions that I’d like clarification on, and I hope the community can help me out.
    Questions

    ​1. How does the Phoronix Test Suite actually work, step by step?

    2. How does PTS detect which compiler to use?

    3. What does the "compiler" output look like in the Phoronix Test Suite output? Is it simply detecting all compilers installed on the machine, or is it actually using those compilers to compile the binaries?

    4. How can I provide custom compiler-specific parameters in PTS? (For example - march=zenver5)

    5. What is the correct way to change the compiler used in a benchmark like STREAM?
    • I see that in STREAM’s install.sh, the script uses cc by default.
    • If I want to switch to AOCC or ICX, what would be the recommended approach? Should I override CC and CXX variables in the environment before running PTS?
    6. The deviation observed in the STREAM benchmark appears unusually high, around ~36%. Is this level of deviation expected, or could I be missing something?
    Screenshot 2024-12-17 172803.png


    ​I’m particularly interested in testing performance across different compilers (e.g., GCC, AOCC, ICX and LLVM) to evaluate the impact of compiler optimizations on specific workloads. Having a clearer understanding of how Phoronix Test Suite works under the hood would make this process much easier and reproducible.

    If anyone can provide insights or point me to relevant documentation, I would really appreciate it!

    Thanks in advance for your help!

    Lokesh
Working...
X