kdlucas / byte-unixbench

Automatically exported from code.google.com/p/byte-unixbench
GNU General Public License v2.0
1.27k stars 323 forks source link

Add change gcc options via Enviroment arguments. #54

Closed t2-kob closed 6 years ago

t2-kob commented 6 years ago

I deleted Branch by mistake, so I will make a pull request again. Sorry!


When acquiring benchmarks in multiple environments with different CPU architectures, The optimal gcc options differ from one environment to another.

For example, not all CPU architectures support "-march" or "-march=native".

These options are...

Therefore, by using the environment variable "UB_GCC_OPTIONS", gcc option can be externally changed.


usage:

export UB_GCC_OPTIONS="-O3 -ffast-math -mcpu=power7"
./Run -i 1 -c 1 int