[Openmp-dev] Getting Architecture Patch

Carlo Bertolli cbertol at us.ibm.com
Fri Jan 16 16:33:13 PST 2015

Hi Jonathan

Thanks for the changes (not sure why they did not show up in the conflict
list after git merge).
This works for me on both ppc64 and ppc64le.

I noticed some minor changes to be done for ppc64le when using make:

1. CACHE_LINE changes during compilation, from 128 (correct) to 64

2. The target directory is ppc64 instead of ppc64le.

For now I can live with both, if this is fine by you. I will submit a patch
for this later.

Thanks again

-- Carlo

From:	"Peyton, Jonathan L" <jonathan.l.peyton at intel.com>
To:	Carlo Bertolli/Watson/IBM at IBMUS, C Bergström
            <cbergstrom at pathscale.com>
Cc:	"Cownie, James H" <james.h.cownie at intel.com>,
            "openmp-dev at dcs-maillist2.engr.illinois.edu"
            <openmp-dev at dcs-maillist2.engr.illinois.edu>
Date:	01/16/2015 07:01 PM
Subject:	RE: Getting Architecture Patch


I have applied your patch on top of the most recent changes (Intel® MIC
changes), and also added a few changes:

diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt
Got rid of this deletion of AARCH64

diff --git a/runtime/src/kmp_os.h b/runtime/src/kmp_os.h
Got rid of this deletion of AARCH64
-#define KMP_ARCH_PPC64      0
-#define KMP_ARCH_AARCH64    0
+#define KMP_ARCH_X86_64     0

In makefile.mk, I added a few places where I feel it should be checking for
both ppc64 and ppc64le, you can see this in the attached patch file.

Check this out and see if it is correct.
To apply the patch on clean updated repository:
$ patch –p0 < ppc64le-support-v2.patch

-- Johnny

From: Carlo Bertolli [mailto:cbertol at us.ibm.com]
Sent: Thursday, January 15, 2015 11:00 PM
To: C Bergström
Cc: Cownie, James H; Peyton, Jonathan L;
openmp-dev at dcs-maillist2.engr.illinois.edu
Subject: Re: Getting Architecture Patch


Did now see that one - I removed it in the attached version. Let me know if
I broke something.

(See attached file: ppc64le-support.patch)


-- Carlo

Inactive hide details for C Bergström ---01/15/2015 11:53:47 PM---A
whitespace change snuck in at here (extra tab) +#define KMPC Bergström
---01/15/2015 11:53:47 PM---A whitespace change snuck in at here (extra
tab) +#define KMP_ARCH_X86_64     0

From: C Bergström <cbergstrom at pathscale.com>
To: Carlo Bertolli/Watson/IBM at IBMUS
Cc: "Peyton, Jonathan L" <jonathan.l.peyton at intel.com>, "Cownie, James H" <
james.h.cownie at intel.com>, "openmp-dev at dcs-maillist2.engr.illinois.edu" <
openmp-dev at dcs-maillist2.engr.illinois.edu>
Date: 01/15/2015 11:53 PM
Subject: Re: Getting Architecture Patch

A whitespace change snuck in at here (extra tab)

+#define KMP_ARCH_X86_64     0

Otherwise the patch is probably in align with the intention[attachment
"ppc64le-support-v2.patch" deleted by Carlo Bertolli/Watson/IBM]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20150116/32df5e7a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20150116/32df5e7a/attachment.gif>

More information about the Openmp-dev mailing list