[offload] `libomptarget :: x86_64-unknown-linux-gnu :: tools/llvm-omp-device-info.c` test fails when built with level-zero (and no GPU?)
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
```
FAIL: libomptarget :: x86_64-unknown-linux-gnu :: tools/llvm-omp-device-info.c (430 of 490)
******************** TEST 'libomptarget :: x86_64-unknown-linux-gnu :: tools/llvm-omp-device-info.c' FAILED ********************
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
/var/tmp/portage/llvm-runtimes/openmp-23.0.0.9999/work/runtimes_build-abi_x86_64.amd64/./bin/llvm-offload-device-info | /usr/lib/llvm/23/bin/FileCheck /var/tmp/portage/llvm-runtimes/openmp-23.0.0.9999/work/offload/test/tools/llvm-omp-device-info.c
# executed command: /var/tmp/portage/llvm-runtimes/openmp-23.0.0.9999/work/runtimes_build-abi_x86_64.amd64/./bin/llvm-offload-device-info
# .---command stderr------------
# | [Liboffload error 1]: zeInit failed with error 2013265921, ZE_RESULT_ERROR_UNINITIALIZED
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /usr/lib/llvm/23/bin/FileCheck /var/tmp/portage/llvm-runtimes/openmp-23.0.0.9999/work/offload/test/tools/llvm-omp-device-info.c
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /usr/lib/llvm/23/bin/FileCheck /var/tmp/portage/llvm-runtimes/openmp-23.0.0.9999/work/offload/test/tools/llvm-omp-device-info.c
# `-----------------------------
# error: command failed with exit status: 2
--
********************
```
Reproduced on df9eb79970c012990e829d174d181d575d414efe, when built with level-zero plugin. Presumably it is failing because the test machine has no Intel GPU (but I don't think the test suite should be accessing the GPU in the first place; we're explicitly setting `-DLIBOMPTARGET_OFFLOAD_ARCH=LIBOMPTARGET_OFFLOAD_ARCH-NOTFOUND` to prevent GPU access.
Contributor guide
Assessment
This issue has not been assessed yet.