G++ optimization beyond -O3/-Ofast

前端 未结 8 2043
攒了一身酷
攒了一身酷 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:05

    It is difficult to answer without further detail:

    • what type of number crunching?
    • what libraries are you using?
    • what degree of paralelization?

    Can you write down the part of your code which takes the longest? (Typically a tight loop)

    If you are CPU bound the answer will be different than if you are IO bound.

    Again, please provide further detail.

提交回复
热议问题