Than Ngo 13262e
Subject: atlas new archdef for ppc64le
Than Ngo 13262e
From: Michel Normand <normand@linux.vnet.ibm.com>
Than Ngo 13262e
Date: Sun, 13 Jun 2014 18:02:47 +0200
Than Ngo 13262e
Than Ngo 13262e
Need to define different archdef names
Than Ngo 13262e
for ppc64 (that is Big Endian) and ppc64le (that is Little Endian).
Than Ngo 13262e
This is already done upstream in atlas 3.11.30 with issue
Than Ngo 13262e
https://sourceforge.net/p/math-atlas/patches/66/
Than Ngo 13262e
Than Ngo 13262e
Required at least as long as I need the bypass of
Than Ngo 13262e
atlas.3.10.2-ppc64le_do_not_use_files_with_lvx.patch
Than Ngo 13262e
Than Ngo 13262e
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
Than Ngo 13262e
---
Than Ngo 13262e
 CONFIG/src/SpewMakeInc.c |    4 ++++
Than Ngo 13262e
 1 file changed, 4 insertions(+)
Than Ngo 13262e
Than Ngo 13262e
Index: ATLAS/CONFIG/src/SpewMakeInc.c
Than Ngo 13262e
===================================================================
Than Ngo 13262e
--- ATLAS.orig/CONFIG/src/SpewMakeInc.c
Than Ngo 13262e
+++ ATLAS/CONFIG/src/SpewMakeInc.c
Than Ngo 13262e
@@ -542,6 +542,10 @@ int main(int nargs, char **args)
Than Ngo 13262e
    fprintf(fpout, "#  -------------------------------------------------\n");
Than Ngo 13262e
    fprintf(fpout, "   ARCH = %s", machnam[mach]);
Than Ngo 13262e
    fprintf(fpout, "%d", ptrbits);
Than Ngo 13262e
+   /* for ppc64le archi add 'LE' characters */
Than Ngo 13262e
+   #if defined(__powerpc64__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
Than Ngo 13262e
+      fprintf(fpout, "%s", "LE");
Than Ngo 13262e
+   #endif
Than Ngo 13262e
    if (ISAX)
Than Ngo 13262e
       fprintf(fpout, "%s", ISAXNAM[ISAX]);
Than Ngo 13262e
    if (!USEIEEE)