From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3708 invoked by alias); 24 Mar 2010 06:09:38 -0000 Received: (qmail 3692 invoked by uid 22791); 24 Mar 2010 06:09:37 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from imr-mb01.mx.aol.com (HELO imr-mb01.mx.aol.com) (64.12.207.164) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Mar 2010 06:09:33 +0000 Received: from mtaout-mb03.r1000.mx.aol.com (mtaout-mb03.r1000.mx.aol.com [172.29.41.67]) by imr-mb01.mx.aol.com (8.14.1/8.14.1) with ESMTP id o2O69NU3000916; Wed, 24 Mar 2010 02:09:23 -0400 Received: from [192.168.1.65] (99-13-231-72.lightspeed.snjsca.sbcglobal.net [99.13.231.72]) by mtaout-mb03.r1000.mx.aol.com (WebSuites/MUA Thirdparty client Interface) with ESMTPA id 0AF99E000099; Wed, 24 Mar 2010 02:09:22 -0400 (EDT) Message-ID: <4BA9AC91.9040803@aol.com> Date: Wed, 24 Mar 2010 13:10:00 -0000 From: Tim Prince Reply-To: tprince@computer.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: gcc@gcc.gnu.org, gcc-help@gcc.gnu.org Subject: Re: Compiler option for SSE4 References: <417877.93242.qm@web65302.mail.ac2.yahoo.com> In-Reply-To: <417877.93242.qm@web65302.mail.ac2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit x-aol-global-disposition: G X-AOL-SCOLL-SCORE: 0:2:432741632:93952408 X-AOL-SCOLL-URL_COUNT: 0 x-aol-sid: 3039ac1d29434ba9ac925f0f X-AOL-IP: 99.13.231.72 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2010-03/txt/msg00370.txt.bz2 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