G++ optimization beyond -O3/-Ofast

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

    I would recommend taking a look at the type of operations that costitute the heavy lifting, and look for an optimized library. There are quite a lot of fast, assembly optimized, SIMD vectorized libraries out there for common problems (mostly math). Reinventing the wheel is often tempting, but it is usually not worth the effort if an existing soltuion can cover your needs.Since you have not stated what sort of simulation it is I can only provide some examples.

    http://www.yeppp.info/

    http://eigen.tuxfamily.org/index.php?title=Main_Page

    https://github.com/xianyi/OpenBLAS

提交回复
热议问题