Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Safe flags ryzen 5000
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
nikolis
Apprentice
Apprentice


Joined: 21 Aug 2003
Posts: 200
Location: Athens

PostPosted: Sat Apr 03, 2021 9:44 am    Post subject: Safe flags ryzen 5000 Reply with quote

Is it ok march native, gcc 10.2 with 5950x ?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31259
Location: here

PostPosted: Sat Apr 03, 2021 9:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6145
Location: Dallas area

PostPosted: Sat Apr 03, 2021 10:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Satori80a
n00b
n00b


Joined: 06 Jun 2017
Posts: 51

PostPosted: Sat Apr 03, 2021 10:48 am    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31259
Location: here

PostPosted: Sat Apr 03, 2021 11:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6145
Location: Dallas area

PostPosted: Sat Apr 03, 2021 11:33 am    Post subject: Reply with quote

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
View user's profile Send private message
nikolis
Apprentice
Apprentice


Joined: 21 Aug 2003
Posts: 200
Location: Athens

PostPosted: Sat Apr 03, 2021 2:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31259
Location: here

PostPosted: Sat Apr 03, 2021 2:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
nikolis
Apprentice
Apprentice


Joined: 21 Aug 2003
Posts: 200
Location: Athens

PostPosted: Sat Apr 03, 2021 4:11 pm    Post subject: Reply with quote

I agree with both of your suggestions, i do not use unstable branching especially gcc.
Back to top
View user's profile Send private message
Satori80a
n00b
n00b


Joined: 06 Jun 2017
Posts: 51

PostPosted: Sun Apr 04, 2021 5:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum