[Openmp-dev] LIT failure: clang/test/Driver/openmp-offload-gpu.c
Joachim Protze via Openmp-dev
openmp-dev at lists.llvm.org
Thu Mar 18 14:14:19 PDT 2021
The REQUIRES lines at the top of the file specify, that all targets need
to be available so that the test is supported.
To fulfill the dependency with the bitcode library, this should be added
as another REQUIREment of the test.
I assume that phabricator and your local test builds include building
the OpenMP runtime/project?
- Joachim
Am 18.03.21 um 21:38 schrieb Shilei Tian via Openmp-dev:
> 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
>
>
>
> _______________________________________________
> Openmp-dev mailing list
> Openmp-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev
>
More information about the Openmp-dev
mailing list