<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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:-webkit-standard;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
/* 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:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.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="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi Doru and all,<o:p></o:p></p>
<p class="MsoNormal">I now have an install of clang + OpenMP target-offload using the old toolchain.<o:p></o:p></p>
<p class="MsoNormal">The benchmarks build, but when trying to run I get the following error:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">pfe25.gjost 89> more  sp.A.out.txt<o:p></o:p></p>
<p class="MsoNormal">libomptarget fatal error 1: failure of target construct while offloading is mand<o:p></o:p></p>
<p class="MsoNormal">atory<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am using a Skylake node with 4 V100 GPUs, using only one of the GPUs. Would you have suggestions on how I can narrow down this issue? Should I rebuild libomp in debug mode?<o:p></o:p></p>
<p class="MsoNormal">Thanks in advance and best regards,<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black">Gabriele Jost<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">************************************************************************<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">Gabriele Jost       NASA Ames Research Center<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">Email: Gabriele.Jost@nasa.gov      Mail Stop 258-6<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">Work Phone: (650) 604-0468         Bldg. 258, Rm. 232-4<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">Scientific & HPC Application           P.O. Box 1<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">Development/Optimization            Moffett Field, CA 94035-0001<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">************************************************************************</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">"Jost, Gabriele (ARC-TNC)[Supersmith]" <gabriele.jost@nasa.gov><br>
<b>Date: </b>Wednesday, November 27, 2019 at 1:08 PM<br>
<b>To: </b>Gheorghe-Teod Bercea <Gheorghe-Teod.Bercea@ibm.com><br>
<b>Cc: </b>"openmp-dev@lists.llvm.org" <openmp-dev@lists.llvm.org><br>
<b>Subject: </b>Re: [EXTERNAL] Re: [Openmp-dev] clang 9.0.0 + libstdc++ problem<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">Thanks, Doru.<o:p></o:p></p>
<p class="MsoNormal">I have for now installed as below. I will try what you suggested next week!<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black">Gabriele Jost</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">************************************************************************</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">Gabriele Jost       NASA Ames Research Center</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">Email: Gabriele.Jost@nasa.gov    Mail Stop 258-6</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">Work Phone: (650) 604-0468     Bldg. 258, Rm. 232-4</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">Scientific & HPC Application        P.O. Box 1</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">Development/Optimization         Moffett Field, CA 94035-0001</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">************************************************************************</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Gheorghe-Teod Bercea <Gheorghe-Teod.Bercea@ibm.com><br>
<b>Date: </b>Wednesday, November 27, 2019 at 12:59 PM<br>
<b>To: </b>"Jost, Gabriele (ARC-TNC)[Supersmith]" <gabriele.jost@nasa.gov><br>
<b>Cc: </b>"openmp-dev@lists.llvm.org" <openmp-dev@lists.llvm.org><br>
<b>Subject: </b>[EXTERNAL] Re: [Openmp-dev] clang 9.0.0 + libstdc++ problem</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Hi Gabriele,</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">You can set the -DGCC_INSTALL_PREFIX to point to the folder with the desired version of GCC.</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">The GCC folder you want to point to is the one containing the lib and include folders. I use GCC 6.4.</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">Thanks a lot,</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">--Doru</span><br>
<br>
<br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
</span><br>
<br>
<br>
<br>
<span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#5F5F5F">From:        </span><span style="font-size:9.0pt;font-family:"Arial",sans-serif">"Jost, Gabriele \(ARC-TNC\)\[Supersmith\] via Openmp-dev" <openmp-dev@lists.llvm.org></span><br>
<span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#5F5F5F">To:        </span><span style="font-size:9.0pt;font-family:"Arial",sans-serif">"openmp-dev@lists.llvm.org" <openmp-dev@lists.llvm.org></span><br>
<span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#5F5F5F">Date:        </span><span style="font-size:9.0pt;font-family:"Arial",sans-serif">11/27/2019 03:17 PM</span><br>
<span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#5F5F5F">Subject:        </span><span style="font-size:9.0pt;font-family:"Arial",sans-serif">[EXTERNAL] [Openmp-dev] clang 9.0.0 + libstdc++ problem</span><br>
<span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#5F5F5F">Sent by:        </span><span style="font-size:9.0pt;font-family:"Arial",sans-serif">"Openmp-dev" <openmp-dev-bounces@lists.llvm.org></span><o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="1" width="100%" noshade="" style="color:#A0A0A0" align="center">
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> <o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">Hello llvm developers!<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">I am trying to build the OpenMP runtime with clang 9.0.0. The clang compiler fails to find the libstdc++ library.<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">I specified the pathname, but it does not help.<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">I had to resort to configuring like this:<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">cmake -DCMAKE_BUILD_TYPE=Release \<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">-DCMAKE_INSTALL_PREFIX="/nobackupnfs2/clang-install"\<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">-DCMAKE_C_COMPILER=/nobackupnfs2/clang-install/bin/clang\<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">-DCMAKE_CXX_COMPILER=/nobackupnfs2/clang-install/bin/clang++\<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">-DLIBOMPTARGET_DEP_LIBELF_LIBRARIES:FILEPATH=/usr/lib64/libelf.so.1 \<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">-DLLVM_LIBSTDCXX:FILEPATH=/usr/lib64/libstdc++.so.6\<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON\<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">-DCLANG_OPENMP_NVPTX_DEFAULT_ARCH=sm_60 \<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">-DLIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES=35,60,70 ../llvm-9.0.0.src<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">Is there a way to tell clang to use the correct library? It complains that the library is too old, but I think it is because it does not find the right one.<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">Gabriele Jost<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">************************************************************************<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">Gabriele Jost       NASA Ames Research Center<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">Email: Gabriele.Jost@nasa.gov    Mail Stop 258-6<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">Work Phone: (650) 604-0468     Bldg. 258, Rm. 232-4<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">Scientific & HPC Application        P.O. Box 1<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">Development/Optimization         Moffett Field, CA 94035-0001<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">************************************************************************<tt><span style="font-size:10.0pt">_______________________________________________</span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br>
<tt>Openmp-dev mailing list</tt><br>
<tt>Openmp-dev@lists.llvm.org</tt><br>
</span><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_openmp-2Ddev&d=DwMFAg&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=euu8Z6XUYOp8h66U0FQKX3JoJm4XFuAjPWZSf6h9W5g&m=P58EO5EQEe4K25HLYoqW7X65Oid2lHPCNwWj1DV23Vc&s=efp9gM3QTZk1AM1icCbQqPoNSoelhbfMumvfOqx3ia8&e="><tt><span style="font-size:10.0pt">https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</span></tt></a><o:p></o:p></p>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
</div>
</body>
</html>