[Openmp-dev] LIT failure: clang/test/Driver/openmp-offload-gpu.c

Shilei Tian via Openmp-dev openmp-dev at lists.llvm.org
Thu Mar 18 13:38:38 PDT 2021


Hi Kelvin,

If only building with target PPC, this case will not be run because clang cannot process CUDA code.
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.

Regards,
Shilei

> On Mar 18, 2021, at 3:14 PM, Kelvin Li via Openmp-dev <openmp-dev at lists.llvm.org> wrote:
> 
> Hi,
>  
> 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
>  
> Any clues of the reason?
>  
> The error message:
>  
> Exit Code: 1
> Command Output (stderr):
> --
> llvm-project/clang/test/Driver/openmp-offload-gpu.c:150:25: error: CHK-NOLIBDEVICE-NOT: excluded string found in input
> // CHK-NOLIBDEVICE-NOT: error:{{.*}}sm_60
>                         ^
> <stdin>:6:8: note: found here
> 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.
>        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> Kelvin
> 
> _______________________________________________
> Openmp-dev mailing list
> Openmp-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20210318/c96d4b12/attachment.html>


More information about the Openmp-dev mailing list