<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10pt" ><div dir="ltr" >One more data point. I repeated the builds on the x86 platform. With LLVM_TARGETS_TO_BUILD="X86", the test is "UNSUPPORTED" (as expected). With LLVM_TARGETS_TO_BUILD="ALL", the test actually ran and passed.</div>
<div class="mail-signature-container" dir="ltr" > </div>
<div class="mail-signature-container" dir="ltr" >Thanks,<br>Kelvin</div>
<div dir="ltr" > </div>
<div dir="ltr" > </div>
<blockquote data-history-content-modified="1" data-history-expanded="1" dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" >----- Original message -----<br>From: Shilei Tian <tianshilei1992@gmail.com><br>To: Joachim Protze <protze.joachim@gmail.com><br>Cc: Kelvin Li <kli@ca.ibm.com>, openmp-dev@lists.llvm.org<br>Subject: [EXTERNAL] Re: [Openmp-dev] LIT failure: clang/test/Driver/openmp-offload-gpu.c<br>Date: Thu, Mar 18, 2021 17:24<br> <br> <!--Notes ACF
<meta http-equiv="Content-Type" content="text/html; charset=utf8" >--> There is dummy file in <font face="Courier New" >clang/test/Driver/Inputs/libomptarget</font>. It also has multiple dummy CUDAs. For this specific case, it should not raise the error because passing -S should only contain preprocess and compilation.
<div><div><div>
<div><div dir="auto" ><div>Regards,<br>Shilei</div></div></div>
<div>
<blockquote type="cite" ><div>On Mar 18, 2021, at 5:19 PM, Joachim Protze <<a href="mailto:protze.joachim@gmail.com" target="_blank" >protze.joachim@gmail.com</a>> wrote:</div>
<div><div>The test complains, that libomptarget-nvptx-sm_60.bc cannot be found.<br>How should it be found, if libomptarget is not built?<br><br>- Joachim<br><br>Am 18.03.21 um 22:16 schrieb Shilei Tian:
<blockquote type="cite" >It’s clang driver test, so it doesn’t need to have OpenMP enabled. On Phab, IIRC, by default it’s ALL. I did remember I updated the patch because of the driver case, and later it all passed.<br><br>Regards,<br>Shilei<br>
<blockquote type="cite" >On Mar 18, 2021, at 5:14 PM, Joachim Protze <<a href="mailto:protze.joachim@gmail.com" target="_blank" >protze.joachim@gmail.com</a>> wrote:<br><br>The REQUIRES lines at the top of the file specify, that all targets need<br>to be available so that the test is supported.<br><br>To fulfill the dependency with the bitcode library, this should be added<br>as another REQUIREment of the test.<br><br>I assume that phabricator and your local test builds include building<br>the OpenMP runtime/project?<br><br>- Joachim<br><br><br>Am 18.03.21 um 21:38 schrieb Shilei Tian via Openmp-dev:
<blockquote type="cite" >Hi Kelvin,<br><br>If only building with target PPC, this case will not be run because clang cannot process CUDA code.<br>I think it’s related to our recent change that the bitcode library is required when building OpenMP program so I updated the driver. However it passed the test before (locally and on Phab). I’ll try to reproduce and fix it accordingly.<br><br>Regards,<br>Shilei<br>
<blockquote type="cite" >On Mar 18, 2021, at 3:14 PM, Kelvin Li via Openmp-dev <<a href="mailto:openmp-dev@lists.llvm.org" target="_blank" >openmp-dev@lists.llvm.org</a>> wrote:<br><br>Hi,<br><br>I don't know the LIT test infrastructure well enough. Recently, openmp-offload-gpu.c started to fail in our downstream test. I find that if I build with LLVM_TARGETS_TO_BUILD="PowerPC", the test is "UNSUPPORTED". If I build with LLVM_TARGETS_TO_BUILD="ALL", the test fails. In both cases, NO -DLLVM_ENABLE_RUNTIMES="openmp" is specified in the cmake command<br><br>Any clues of the reason?<br><br>The error message:<br><br>Exit Code: 1<br>Command Output (stderr):<br>--<br>llvm-project/clang/test/Driver/openmp-offload-gpu.c:150:25: error: CHK-NOLIBDEVICE-NOT: excluded string found in input<br>// CHK-NOLIBDEVICE-NOT: error:{{.*}}sm_60<br> ^<br><stdin>:6:8: note: found here<br>clang: error: No library 'libomptarget-nvptx-sm_60.bc' found in the default clang lib directory or in LIBRARY_PATH. Please use --libomptarget-nvptx-bc-path to specify nvptx bitcode library.<br> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><br>Kelvin<br><br>_______________________________________________<br>Openmp-dev mailing list<br><a href="mailto:Openmp-dev@lists.llvm.org" target="_blank" >Openmp-dev@lists.llvm.org</a><br><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_openmp-2Ddev&d=DwQFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=yebGUrvFJWJ7GtM9woczVA&m=yn9zy059XfSjYVLwKsM9SSxIsdiVF5fbAHwujOzxde0&s=j6cqZBFu5n5meaovjrIcLKjJb7D_kT0JhAVJCz3EQNM&e=" target="_blank" >https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a></blockquote><br><br><br>_______________________________________________<br>Openmp-dev mailing list<br><a href="mailto:Openmp-dev@lists.llvm.org" target="_blank" >Openmp-dev@lists.llvm.org</a><br><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_openmp-2Ddev&d=DwQFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=yebGUrvFJWJ7GtM9woczVA&m=yn9zy059XfSjYVLwKsM9SSxIsdiVF5fbAHwujOzxde0&s=j6cqZBFu5n5meaovjrIcLKjJb7D_kT0JhAVJCz3EQNM&e=" target="_blank" >https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a><br> </blockquote></blockquote><br> </blockquote></div></div></blockquote></div></div></div></div></blockquote>
<div dir="ltr" > </div></div><BR>