<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Gisha;
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Gisha","sans-serif";
        color:#4D7479;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Gisha","sans-serif";color:#4D7479">The lrb2mic_make_build.patch is definitely good to go.  We’ve been testing it for a couple months now in our nightly builds with no problems.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Gisha","sans-serif";color:#4D7479"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> openmp-dev-bounces@cs.uiuc.edu [mailto:openmp-dev-bounces@cs.uiuc.edu]
<b>On Behalf Of </b>Peyton, Jonathan L<br>
<b>Sent:</b> Wednesday, January 14, 2015 5:59 PM<br>
<b>To:</b> openmp-dev@dcs-maillist2.engr.illinois.edu<br>
<b>Subject:</b> [Openmp-dev] Three more patches<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have three more patches here and there descriptions below.  Lrb2mic_cmake_build.patch depends on lrb2mic_make_build.patch so it must go after. But the ittnotify_fixes.patch is independent of the rest.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Lrb2mic_make_build.patch – This patch (and the similarly named lrb2mic_cmake_build.patch) gets rid of all the references to lrb when building for Intel® Many Integrated Core Architecture.  I know most people aren’t compiling for this architecture
 and this patch is somewhat invasive, but it does not affect the Intel® 64 or IA-32 builds, nor any other architecture’s build.  Here are the main features this patch fixes:
<o:p></o:p></p>
<p class="MsoNormal">1) exports directory renamed to lin_knc, depending on which MIC flavor you are compiling for,
<o:p></o:p></p>
<p class="MsoNormal">2) The internal perl scripts and library modules now have a variable $target_mic_arch which holds the value of “knc”, “knf”, (“knl” in the future) for Knights Corner, Knights Ferry, and Knights Landing.<o:p></o:p></p>
<p class="MsoNormal">3) tools used for checks are properly named to use MIC specific tools (e.g., instead of objcopy use x86_64-k1om-linux-objcopy)<o:p></o:p></p>
<p class="MsoNormal">4) build.pl doesn’t take os=lrb, but instead takes arch=mic & mic_arch=knc.  This is done under the hood of the top level Makefile.  You still build using the top level Makefile by typing $ make compiler=icc arch=mic<o:p></o:p></p>
<p class="MsoNormal">5) During this change, I got rid of some extraneous build.pl options (e.g., tcheck, target-compiler, etc.) which aren’t used anymore.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Lrb2mic_cmake_build.patch – This patch is the CMake changes that correspond to the above patch.  This patch is built off the last one and is only the CMake files that are affected.  This patch also does a few other things:<o:p></o:p></p>
<p class="MsoNormal">1) I changed some compiler flag settings for icc only that were wrong for MIC builds.<o:p></o:p></p>
<p class="MsoNormal">2) Instead of explicit linking to –ldl , I changed cmake to use CMAKE_DL_LIBS which links the –ldl library if it exists on platform you are compiling for.<o:p></o:p></p>
<p class="MsoNormal">3) Now to compile for MIC you specify –Dos=lin –Darch=mic instead of –Dos=mic ; it is an architecture after all that runs Linux as the os.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Ittnotify_fixes.patch – This patch fixes a few things concerning the ittnotify interface.<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none">1) Metadata for single construct used to be reported from all threads.  This was fixed to be reported only by the master.<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none">2) Region-begin was mistakenly saved for any active level but had to be saved only for the first level.<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none">3) Added code to report location for #omp single metadata.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">To apply patches:<o:p></o:p></p>
<p class="MsoNormal">$ patch –p0 < lrb2mic_make_build.patch<o:p></o:p></p>
<p class="MsoNormal">$ patch –p0 < lrb2mic_cmake_build.patch<o:p></o:p></p>
<p class="MsoNormal">$ patch –p0 < ittnotify_fixes.patch<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Comments or Questions?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-- Johnny<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>