G++ optimization beyond -O3/-Ofast

前端 未结 8 2026
攒了一身酷
攒了一身酷 2021-01-29 17:15

The Problem

We have a mid-sized program for a simulation task, that we need to optimize. We have already done our best optimizing the source to the limi

相关标签:
8条回答
  • 2021-01-29 18:15

    huh, then final thing you may try: ACOVEA project: Analysis of Compiler Optimizations via an Evolutionary Algorithm -- as obvious from the description, it tries a genetic algorithm to pick the best compiler options for your project (doing compilation maaany times and check for timing, giving a feedback to the algorithm :) -- but results could be impressive! :)

    0 讨论(0)
  • 2021-01-29 18:16

    with gcc intel turn of / implement -fno-gcse (works well on gfortran) and -fno-guess-branch-prbability (default in gfortran)

    0 讨论(0)
提交回复
热议问题