View previous topic :: View next topic |
Author |
Message |
nikolis Apprentice
Joined: 21 Aug 2003 Posts: 200 Location: Athens
|
Posted: Sat Apr 03, 2021 9:44 am Post subject: Safe flags ryzen 5000 |
|
|
Is it ok march native, gcc 10.2 with 5950x ? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31258 Location: here
|
Posted: Sat Apr 03, 2021 9:56 am Post subject: |
|
|
I think full support for znver3 is merged in gcc-11 only, you can see what -march=native enable with gcc -march=native -E -v - </dev/null 2>&1 | sed -n 's/.* -v - //p' command (probably -march=znver2). _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6145 Location: Dallas area
|
Posted: Sat Apr 03, 2021 10:25 am Post subject: |
|
|
gcc 10.3 should have zen stuff backported _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Satori80a n00b
Joined: 06 Jun 2017 Posts: 51
|
Posted: Sat Apr 03, 2021 10:48 am Post subject: |
|
|
Which leads me to wonder how to unmask gcc-11. I cant seem to manage it with 'echo "=sys-devel/gcc-11.0.1" >> package.unmask'. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31258 Location: here
|
Posted: Sat Apr 03, 2021 11:18 am Post subject: |
|
|
It is not a good idea to unmask it, package is not keyworded and so not tested. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6145 Location: Dallas area
|
Posted: Sat Apr 03, 2021 11:33 am Post subject: |
|
|
Satori80a wrote: | Which leads me to wonder how to unmask gcc-11. I cant seem to manage it with 'echo "=sys-devel/gcc-11.0.1" >> package.unmask'. |
You can't unmask that version ... because it doesn't exist.
try 11.0.1_pre9999 _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
nikolis Apprentice
Joined: 21 Aug 2003 Posts: 200 Location: Athens
|
Posted: Sat Apr 03, 2021 2:40 pm Post subject: |
|
|
Indeed,
Code: | gcc -march=native -E -v - </dev/null 2>&1 | sed -n 's/.* -v - //p'
-march=znver2 -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -msse4a -mcx16 -msahf -mmovbe -maes -msha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mno-sgx -mbmi2 -mno-pconfig -mwbnoinvd -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mclflushopt -mxsavec -mxsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-avx5124fmaps -mno-avx5124vnniw -mclwb -mmwaitx -mclzero -mpku -mrdpid -mno-gfni -mshstk -mno-avx512vbmi2 -mno-avx512vnni -mvaes -mvpclmulqdq -mno-avx512bitalg -mno-avx512vpopcntdq -mno-movdiri -mno-movdir64b -mno-waitpkg -mno-cldemote -mno-ptwrite -mno-avx512bf16 -mno-enqcmd -mno-avx512vp2intersect --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=znver2 |
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31258 Location: here
|
Posted: Sat Apr 03, 2021 2:44 pm Post subject: |
|
|
I'm not sure, but I think you can leave -march=native since zen3 supports zen2 architecture.
I don't recommend you to unmask gcc-11, you might have problems to compile some packages. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
nikolis Apprentice
Joined: 21 Aug 2003 Posts: 200 Location: Athens
|
Posted: Sat Apr 03, 2021 4:11 pm Post subject: |
|
|
I agree with both of your suggestions, i do not use unstable branching especially gcc. |
|
Back to top |
|
|
Satori80a n00b
Joined: 06 Jun 2017 Posts: 51
|
Posted: Sun Apr 04, 2021 5:24 pm Post subject: |
|
|
Yeah, after looking into it further, the performance difference between znver2 & znver3 is negligible anyway so it's not worth unmasking gcc-11. |
|
Back to top |
|
|
|