Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Safe CFLAGS - Xeon W-*
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 222

PostPosted: Mon Mar 05, 2018 4:20 pm    Post subject: Safe CFLAGS - Xeon W-* Reply with quote

I'm getting a brand new Lenovo Workstation (ThinkCentre p520) in about a week, it have a Intel Xeon W-2133 (Hexa core @ 3.6 GHz), and i am a bit curious about safe CFLAGS that i'm going to use, is it same as for Broadwell? I didn't see anything specific more then that.

Code:
/etc/portage/make.conf
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=broadwell -O2 -pipe"
CXXFLAGS="${CFLAGS}"
Back to top
View user's profile Send private message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 222

PostPosted: Wed Mar 07, 2018 4:24 pm    Post subject: Re: Safe CFLAGS - Xeon W-* Reply with quote

tuggbuss wrote:
I'm getting a brand new Lenovo Workstation (ThinkCentre p520) in about a week, it have a Intel Xeon W-2133 (Hexa core @ 3.6 GHz), and i am a bit curious about safe CFLAGS that i'm going to use, is it same as for Broadwell? I didn't see anything specific more then that.

Code:
/etc/portage/make.conf
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=broadwell -O2 -pipe"
CXXFLAGS="${CFLAGS}"


Will "broadwell" work? Does this apply to Intel Core i9 as well?
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 474
Location: San Diego, California USA

PostPosted: Wed Mar 07, 2018 9:27 pm    Post subject: Reply with quote

I just use "-march=native" and let the compiler figure it out.
Back to top
View user's profile Send private message
tuggbuss
Apprentice
Apprentice


Joined: 20 Mar 2017
Posts: 222

PostPosted: Thu Mar 08, 2018 6:10 am    Post subject: Reply with quote

gentoo_ram wrote:
I just use "-march=native" and let the compiler figure it out.


Yes, i can do that, i read somewhere that distcc could break with =native. Not that i intend to use distcc anyhow, so i'll go with the "native" option
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Thu Mar 08, 2018 6:27 am    Post subject: Reply with quote

You can poke around google a bit to see what -march=native will actually do with the cpu in question to make it distcc safe and still fully optimized.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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