<div dir="ltr">Using a trunk Clang which was built with -DCMAKE_BUILD_TYPE=Release and omitting<div>this variable entirely; -DLIBOMPTARGET_ENABLE_DEBUG=True, a build of my app goes back to only taking a minute or two.</div><div><br></div><div>Experts, should I start a git bisect on the trunk tree of llvm-project during the holidays? </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 20, 2019 at 9:13 AM Itaru Kitayama <<a href="mailto:itaru.kitayama@gmail.com">itaru.kitayama@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>It isn't much exciting.</div>$ time clang++ -fuse-ld=gold -g -fopenmp -fopenmp-targets=nvptx64 test.cpp<br>^[[O^[[Iptxas /tmp/test-e95684.s, line 2715; warning : Instruction 'vote' without '.sync' is deprecated since PTX ISA version 6.0 and will be discontinued in a future PTX ISA version<br><br>real      0m19.138s<br>user 0m18.377s<br>sys  0m0.375s<br>[kitayama1@juron1-adm pcp0151]$ time clang++ -fuse-ld=ld -g -fopenmp -fopenmp-targets=nvptx64 test.cpp<br>^[[O^[[I^[[Optxas /tmp/test-498b51.s, line 2715; warning : Instruction 'vote' without '.sync' is deprecated since PTX ISA version 6.0 and will be discontinued in a future PTX ISA version<br><br>real    0m19.373s<br>user 0m18.677s<br>sys  0m0.477s<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 20, 2019 at 8:46 AM Alexey Bataev <<a href="mailto:a.bataev@hotmail.com" target="_blank">a.bataev@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div dir="auto">
Try to use gold linker instead of default ld.<br>
<br>
<div dir="ltr">Best regards,
<div>Alexey Bataev</div>
</div>
<div dir="ltr"><br>
<blockquote type="cite">19 дек. 2019 г., в 01:16, Itaru Kitayama via Openmp-dev <<a href="mailto:openmp-dev@lists.llvm.org" target="_blank">openmp-dev@lists.llvm.org</a>> написал(а):<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">On POWER8, my app builds 40 minutes with the Debug Clang (40 times increase of time, when
<div>it is built with Release Clang), but on an x86 host, it just takes about 10 minutes and it is bearable.</div>
<div><br>
</div>
<div>Could this be PowerPC specific, is it why most people aren't aware of the slowness?</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Dec 19, 2019 at 1:38 PM Itaru Kitayama <<a href="mailto:itaru.kitayama@gmail.com" target="_blank">itaru.kitayama@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>Trunk Clang built with setting both variables to -DCMAKE_BUILD_TYPE=Release -DLIBOMPTARGET_ENABLE_DEBUG=False </div>
<div>builds my application in a minute or so.</div>
<div><br>
</div>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Dec 19, 2019 at 8:18 AM Itaru Kitayama <<a href="mailto:itaru.kitayama@gmail.com" target="_blank">itaru.kitayama@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>The CMake was executed as below:</div>
<div><br>
</div>
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DLIBOMPTARGET_ENABLE_DEBUG=True -DCMAKE_INSTALL_PREFIX=$SCRATCH/pcp0151/opt/clang/${today} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DGCC_INSTALL_PREFIX=/gpfs/software/opt/gcc/7.2.0/ -DLLVM_ENABLE_PROJECTS="clang;openmp;libcxx;libcxxabi;lld"
 -DCLANG_OPENMP_NVPTX_DEFAULT_ARCH=sm_60 -DLIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES=60 -DLLVM_TARGETS_TO_BUILD="PowerPC;NVPTX" $SCRATCH/pcp0151/projects/llvm-project/llvm<br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Dec 19, 2019 at 7:57 AM Itaru Kitayama <<a href="mailto:itaru.kitayama@gmail.com" target="_blank">itaru.kitayama@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>The Clang at this commit:</div>
commit 1c49553c19a7044fbbf4528b732926f19f210e54<br>
Author: Bjorn Pettersson <<a href="mailto:bjorn.a.pettersson@ericsson.com" target="_blank">bjorn.a.pettersson@ericsson.com</a>><br>
<div>Date:   Thu Dec 12 20:51:13 2019 +0100</div>
<div>[kitayama1@juron1-adm pcp0151]$ time clang++ -g -fopenmp -fopenmp-targets=nvptx64 mini.cpp<br>
</div>
<br>
real 0m2.344s<br>
user 0m2.231s<br>
sys 0m0.049s
<div>Release Clang 9<br>
[[kitayama1@juron1-adm pcp0151]$ time clang++ -g -fopenmp -fopenmp-targets=nvptx64 mini.cpp<br>
<br>
real 0m0.693s<br>
user 0m0.533s<br>
sys 0m0.047s<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Dec 19, 2019 at 5:32 AM Jon Chesterfield <<a href="mailto:jonathanchesterfield@gmail.com" target="_blank">jonathanchesterfield@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Ah, OK. In that case I still suspect a regression in clang, as opposed to a change in the library. Does the compile time remain very slow if you roll deviceRTL back by a few days?</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Dec 18, 2019 at 8:30 PM Itaru Kitayama <<a href="mailto:itaru.kitayama@gmail.com" target="_blank">itaru.kitayama@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="auto">Sorry, of course it should include this #pragma</div>
</div>
<div dir="auto">omp target parallel for for(;;) {}. My local Debug Clang is updated daily, so the tool chain is pretty much up to date.</div>
<div><br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Dec 19, 2019 at 5:24 Jon Chesterfield <<a href="mailto:jonathanchesterfield@gmail.com" target="_blank">jonathanchesterfield@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div dir="ltr">On Wed, Dec 18, 2019 at 8:13 PM Itaru Kitayama <<a href="mailto:itaru.kitayama@gmail.com" target="_blank">itaru.kitayama@gmail.com</a>> wrote:<br>
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="auto">The app build time increases can be reproduced with a simple int main() {} code.</div>
</div>
</blockquote>
<div><br>
</div>
<div>I thought the problem was with the compile time of deviceRTL.</div>
<div><br>
</div>
<div>If you're compiling int main() {}, then there's no openmp involved, so that seems out of scope for this list. </div>
<div><br>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<span>_______________________________________________</span><br>
<span>Openmp-dev mailing list</span><br>
<span><a href="mailto:Openmp-dev@lists.llvm.org" target="_blank">Openmp-dev@lists.llvm.org</a></span><br>
<span><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a></span><br>
</div>
</blockquote>
</div>

</blockquote></div>
</blockquote></div>