<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">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>