From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10586 invoked by alias); 14 Oct 2014 10:23:14 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 10575 invoked by uid 89); 14 Oct 2014 10:23:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 14 Oct 2014 10:23:10 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9EAN7o4013407 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 14 Oct 2014 06:23:08 -0400 Received: from zebedee.pink (ovpn-113-89.phx2.redhat.com [10.3.113.89]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s9EAN6Qb021384; Tue, 14 Oct 2014 06:23:07 -0400 Message-ID: <543CF98A.7070909@redhat.com> Date: Tue, 14 Oct 2014 10:23:00 -0000 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.0 MIME-Version: 1.0 To: Jakub Jelinek CC: pinskia@gmail.com, "libffi-discuss@sourceware.org" Subject: Re: Xeon Phi References: <543CE95A.9080409@redhat.com> <6442AADB-652F-443C-8875-258C0C1634D2@gmail.com> <543CEA22.9020302@redhat.com> <20141014100808.GY10376@tucnak.redhat.com> In-Reply-To: <20141014100808.GY10376@tucnak.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014/txt/msg00121.txt.bz2 On 10/14/2014 11:08 AM, Jakub Jelinek wrote: > On Tue, Oct 14, 2014 at 10:17:22AM +0100, Andrew Haley wrote: >> On 14/10/14 10:16, pinskia@gmail.com wrote: >> >>> >>>> On Oct 14, 2014, at 2:14 AM, Andrew Haley wrote: >>>> >>>> What's the status of Xeon Phi support? There seem to be some packages on the >>>> Interweb, but I don't see anything in libffi git. >>> >>> Xeon phi is just x86_64 linux. >> >> No it's not. There is a completely different FPU and a different ABI. > > I guess it really depends on which Xeon Phi you are talking about. Right now, the one which exists. :-) > There is Knights Ferry, which has been a prototype only, then > Knights Corner, which is the one currently shipping, which AFAIK is > a stripped down i586-ish (but 64-bit) ISA (so, no MMX/SSE and later, > no CMOV and various other post-i586 ISA additions) with i387 FPU and > a 512-bit vector unit. This isn't really supported by vanilla GCC, > patches exist AFAIK for the non-vector unit part, but the vector > unit isn't really supported in GCC. Not sure what exact ABI is this > one using, supposedly some x86-64-ish ABI, just with what is passed > normally in SSE/SSE2 registers is passed in the zmm? registers of > the vector unit? Yes. k1om-psabi-1.0.pdf at https://software.intel.com/en-us/forums/topic/278102 > Then there is going to be Knights Landing, see > http://en.wikipedia.org/wiki/Xeon_Phi which is likely going to be > pretty standard x86-64-ish ABI and ISA (contemporary Airmont), with > AVX512F etc. extensions, fully supported by GCC. So, for the last > one, I don't think any extra support is really needed (unless libffi > has supports for AVX/AVX2 vectors already, then AVX512 support would > be needed too). Mmm, so I guess we need a proper name for it. The ABI seems to be called "K1OM Architecture". Andrew.