A
A
alexander sm1ly2016-03-01 11:22:27
linux
alexander sm1ly, 2016-03-01 11:22:27

How to add --param "l2-cache-size=8192" to the gcc build for the target host?

Good day.
I have a certain host, we will call it builder. I am collecting gcc on it for a specific host, we will call it target.
Target Keys:
"-march=haswell" -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno -fma4 -mno-xop -mbmi -mbmi2 -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb -mno-pcommit -mno-mwaitx --param "l1-cache-size=32" --param "l1-cache-line-size=64" --param "l2-cache-size=20480" "-mtune=haswell"
I collect the gcs like this:
../gcc_5_2_0_release/configure --prefix=/opt/gcc52_haswell --enable-languages=c,c++ --disable-multilib --with-cpu-64=haswell --with-arch-64=haswell --with- tune-64=haswell
After that, this gcc outputs the following keys:
"-march=haswell" -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno -fma4 -mno-xop -mbmi -mbmi2 -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb -mno-pcommit -mno-mwaitx --param "l1-cache-size=32" --param "l1-cache-line-size=64" --param "l2-cache-size=8192" "-mtune=haswell"
If you compare all the parameters, it will be clear that the difference is only in --param "l2-cache-size=8192" and --param "l2-cache-size=20480". And this turned out to be a real dilemma.
The test benchmark shows a drawdown due to such a build (it turns out that it is not native).
Task to build gcc ../gcc_5_2_0_release/configure --prefix=/opt/gcc52_haswell --enable-languages=c,c++ --disable-multilib --with-cpu-64=haswell --with-arch-64=haswell --with-tune-64=haswell add --param "l2-cache-size=20480" switch. Those. I mean that when gcc52_hasvel is loaded, it is already there by default
. Google does not help.
Maybe someone knows how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex F, 2016-03-10
@delvin-fil

What distribution and kernel?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question