[llvm] [offload][lit] Add jit unittest (PR #212860)
Kewen Meng via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 30 11:52:23 PDT 2026
Kewen12 wrote:
> ```
> ******************** TEST 'Offload-Unit :: OffloadAPI/./program.unittests/1/13' FAILED ********************
> Script(shard):
> --
> GTEST_OUTPUT=json:/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/unittests/OffloadAPI/./program.unittests-Offload-Unit-3805029-1-13.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=13 GTEST_SHARD_INDEX=1 /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/unittests/OffloadAPI/./program.unittests
> --
> Script:
> --
> /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/unittests/OffloadAPI/./program.unittests --gtest_filter=olCreateProgramTest.JITSuccess/AMDGPU_AMD_Instinct_MI210_0
> --
> /home/botworker/bbot/amdgpu-clang-flang/llvm.src/offload/unittests/OffloadAPI/program/olCreateProgram.cpp:38: Failure
> Failed
> olCreateProgram(Device, DeviceBin->getBufferStart(), DeviceBin->getBufferSize(), &Program) returned 15: failure to jit IR image: failed to find `lld` on the PATH.
> /home/botworker/bbot/amdgpu-clang-flang/llvm.src/offload/unittests/OffloadAPI/program/olCreateProgram.cpp:38
> Failed
> olCreateProgram(Device, DeviceBin->getBufferStart(), DeviceBin->getBufferSize(), &Program) returned 15: failure to jit IR image: failed to find `lld` on the PATH.
> ```
>
> ```
> failure to jit IR image: failed to find `lld` on the PATH.
> ```
>
> Unclear if this is a real issue or just a result of the cmake flags on the buildbot.
I tested locally by reverting this PR. I saw the test failure gone.
https://github.com/llvm/llvm-project/pull/212860
More information about the llvm-commits
mailing list