public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Compiler option for SSE4
@ 2010-03-24  6:09 Rayne
  2010-03-24 13:10 ` Tim Prince
  0 siblings, 1 reply; 2+ messages in thread
From: Rayne @ 2010-03-24  6:09 UTC (permalink / raw)
  To: gcc

Hi all,

I'm using GCC 4.1.2 20070626 on a server with Intel Xeon X5570.

How do I turn on the compiler option for SSE4? I've tried -msse4, -msse4.1 and -msse4.2, but they all returned the error message cc1: error: unrecognized command line option "-msse4.1" (for whichever option I tried).

Thank you.

Regards,
Weidong


      

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Compiler option for SSE4
  2010-03-24  6:09 Compiler option for SSE4 Rayne
@ 2010-03-24 13:10 ` Tim Prince
  0 siblings, 0 replies; 2+ messages in thread
From: Tim Prince @ 2010-03-24 13:10 UTC (permalink / raw)
  To: gcc, gcc-help

On 3/23/2010 11:02 PM, Rayne wrote:
> I'm using GCC 4.1.2 20070626 on a server with Intel Xeon X5570.
>
> How do I turn on the compiler option for SSE4? I've tried -msse4, -msse4.1 and -msse4.2, but they all returned the error message cc1: error: unrecognized command line option "-msse4.1" (for whichever option I tried).
>    
You would need a gcc version which supports sse4.  As you said yourself, 
your version is approaching 3 years old.  Actually, the more important 
option for Xeon 55xx, if you are vectorizing, is the -mtune=barcelona, 
which has been supported for about 2 years.  Whether vectorizing or not, 
on an 8 core CPU, the OpenMP introduced in gcc 4.2 would be useful.
This looks like a gcc-help mail list question, which is where you should 
submit any follow-up.

-- 
Tim Prince

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-24  6:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-24  6:09 Compiler option for SSE4 Rayne
2010-03-24 13:10 ` Tim Prince

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).