intel / llvm

Intel staging area for llvm.org contribution. Home for Intel LLVM-based projects.
Other
1.25k stars 738 forks source link

[SYCL][E2E] `Basic/interop/interop_all_backends.cpp` and `OptionalKernelFeatures/is_compatible/is_compatible_several_targets.cpp` failed after re-enabling #15819

Open ayylol opened 3 weeks ago

ayylol commented 3 weeks ago

Describe the bug

A number of tests were incorrectly always disabled due to REQUIRES: conditions that could never be met. After being re-enabled two of these tests fail.

The following are failing: OptionalKernelFeatures/is_compatible/is_compatible_several_targets.cpp #15816

FAIL: SYCL :: OptionalKernelFeatures/is_compatible/is_compatible_several_targets.cpp (1649 of 2219)
******************** TEST 'SYCL :: OptionalKernelFeatures/is_compatible/is_compatible_several_targets.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
/__w/llvm/llvm/toolchain/bin//clang++  -Werror  -fsycl -fsycl-targets=spir64_fpga,spir64_gen -Xsycl-target-backend "-device *" /__w/llvm/llvm/llvm/sycl/test-e2e/OptionalKernelFeatures/is_compatible/Inputs/is_compatible_with_env.cpp -o /__w/llvm/llvm/build-e2e/OptionalKernelFeatures/is_compatible/Output/is_compatible_several_targets.cpp.tmp.out
# executed command: /__w/llvm/llvm/toolchain/bin//clang++ -Werror -fsycl -fsycl-targets=spir64_fpga,spir64_gen -Xsycl-target-backend '-device *' /__w/llvm/llvm/llvm/sycl/test-e2e/OptionalKernelFeatures/is_compatible/Inputs/is_compatible_with_env.cpp -o /__w/llvm/llvm/build-e2e/OptionalKernelFeatures/is_compatible/Output/is_compatible_several_targets.cpp.tmp.out
# .---command stderr------------
# | clang++: error: cannot deduce implicit triple value for '-Xsycl-target-backend', specify triple using '-Xsycl-target-backend=<triple>'
# | clang++: error: cannot deduce implicit triple value for '-Xsycl-target-backend', specify triple using '-Xsycl-target-backend=<triple>'
# | clang++: error: cannot deduce implicit triple value for '-Xsycl-target-backend', specify triple using '-Xsycl-target-backend=<triple>'
# | clang++: error: cannot deduce implicit triple value for '-Xsycl-target-backend', specify triple using '-Xsycl-target-backend=<triple>'
# | clang++: error: cannot deduce implicit triple value for '-Xsycl-target-backend', specify triple using '-Xsycl-target-backend=<triple>'
# | clang++: error: cannot deduce implicit triple value for '-Xsycl-target-backend', specify triple using '-Xsycl-target-backend=<triple>'
# | clang++: error: cannot deduce implicit triple value for '-Xsycl-target-backend', specify triple using '-Xsycl-target-backend=<triple>'
# `-----------------------------
# error: command failed with exit status: 1

--

Basic/interop/interop_all_backends.cpp #15767 On OpenCL device:

FAIL: SYCL :: Basic/interop/interop_all_backends.cpp (283 of 2219)
******************** TEST 'SYCL :: Basic/interop/interop_all_backends.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/__w/llvm/llvm/toolchain/bin//clang++  -Werror  -fsycl -fsycl-targets=spir64  /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp -o /__w/llvm/llvm/build-e2e/Basic/interop/Output/interop_all_backends.cpp.tmp-opencl.out
# executed command: /__w/llvm/llvm/toolchain/bin//clang++ -Werror -fsycl -fsycl-targets=spir64 /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp -o /__w/llvm/llvm/build-e2e/Basic/interop/Output/interop_all_backends.cpp.tmp-opencl.out
# .---command stderr------------
# | /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:31:22: error: unknown type name 'cl_device'
# |    31 | using nativeDevice = cl_device;
# |       |                      ^
# | /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:43:22: error: use of undeclared identifier 'nativeDevice'
# |    43 |                      nativeDevice>));
# |       |                      ^
# | 2 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

On CUDA device:

FAIL: SYCL :: Basic/interop/interop_all_backends.cpp (281 of 2219)
******************** TEST 'SYCL :: Basic/interop/interop_all_backends.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1 has no command after substitutions
# RUN: at line 2 has no command after substitutions
# RUN: at line 3
/__w/llvm/llvm/toolchain/bin//clang++  -Werror  -fsycl -fsycl-targets=nvptx64-nvidia-cuda  /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp -DBUILD_FOR_CUDA -o /__w/llvm/llvm/build-e2e/Basic/interop/Output/interop_all_backends.cpp.tmp-cuda.out
# executed command: /__w/llvm/llvm/toolchain/bin//clang++ -Werror -fsycl -fsycl-targets=nvptx64-nvidia-cuda /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp -DBUILD_FOR_CUDA -o /__w/llvm/llvm/build-e2e/Basic/interop/Output/interop_all_backends.cpp.tmp-cuda.out
# .---command stderr------------
# | In file included from /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:13:
# | In file included from /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:15:
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/backend_traits_cuda.hpp:42:20: error: redefinition of 'interop<sycl::backend::ext_oneapi_cuda, sycl::context>'
# |    42 | template <> struct interop<backend::ext_oneapi_cuda, context> {
# |       |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/detail/backend_traits_cuda.hpp:44:20: note: previous definition is here
# |    44 | template <> struct interop<backend::ext_oneapi_cuda, context> {
# |       |                    ^
# | In file included from /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:13:
# | In file included from /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:15:
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/backend_traits_cuda.hpp:46:20: error: redefinition of 'interop<sycl::backend::ext_oneapi_cuda, sycl::device>'
# |    46 | template <> struct interop<backend::ext_oneapi_cuda, device> {
# |       |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/detail/backend_traits_cuda.hpp:48:20: note: previous definition is here
# |    48 | template <> struct interop<backend::ext_oneapi_cuda, device> {
# |       |                    ^
# | In file included from /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:13:
# | In file included from /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:15:
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/backend_traits_cuda.hpp:50:20: error: redefinition of 'interop<sycl::backend::ext_oneapi_cuda, sycl::event>'
# |    50 | template <> struct interop<backend::ext_oneapi_cuda, event> {
# |       |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/detail/backend_traits_cuda.hpp:52:20: note: previous definition is here
# |    52 | template <> struct interop<backend::ext_oneapi_cuda, event> {
# |       |                    ^
# | In file included from /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:13:
# | In file included from /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:15:
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/backend_traits_cuda.hpp:54:20: error: redefinition of 'interop<sycl::backend::ext_oneapi_cuda, sycl::queue>'
# |    54 | template <> struct interop<backend::ext_oneapi_cuda, queue> {
# |       |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/detail/backend_traits_cuda.hpp:56:20: note: previous definition is here
# |    56 | template <> struct interop<backend::ext_oneapi_cuda, queue> {
# |       |                    ^
# | In file included from /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:13:
# | In file included from /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:15:
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/backend_traits_cuda.hpp:63:8: error: redefinition of 'BackendInput<backend::ext_oneapi_cuda, buffer<DataT, Dimensions, AllocatorT>>'
# |    63 | struct BackendInput<backend::ext_oneapi_cuda,
# |       |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |    64 |                     buffer<DataT, Dimensions, AllocatorT>> {
# |       |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/detail/backend_traits_cuda.hpp:61:8: note: previous definition is here
# |    61 | struct BackendInput<backend::ext_oneapi_cuda,
# |       |        ^
# | In file included from /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:13:
# | In file included from /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:15:
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/backend_traits_cuda.hpp:69:8: error: redefinition of 'BackendReturn<backend::ext_oneapi_cuda, buffer<DataT, Dimensions, AllocatorT>>'
# |    69 | struct BackendReturn<backend::ext_oneapi_cuda,
# |       |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |    70 |                      buffer<DataT, Dimensions, AllocatorT>> {
# |       |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/detail/backend_traits_cuda.hpp:67:8: note: previous definition is here
# |    67 | struct BackendReturn<backend::ext_oneapi_cuda,
# |       |        ^
# | In file included from /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:13:
# | In file included from /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:15:
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/backend_traits_cuda.hpp:74:20: error: redefinition of 'BackendInput<sycl::backend::ext_oneapi_cuda, sycl::context>'
# |    74 | template <> struct BackendInput<backend::ext_oneapi_cuda, context> {
# |       |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/detail/backend_traits_cuda.hpp:72:20: note: previous definition is here
# |    72 | template <> struct BackendInput<backend::ext_oneapi_cuda, context> {
# |       |                    ^
# | In file included from /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:13:
# | In file included from /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:15:
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/backend_traits_cuda.hpp:78:20: error: redefinition of 'BackendReturn<sycl::backend::ext_oneapi_cuda, sycl::context>'
# |    78 | template <> struct BackendReturn<backend::ext_oneapi_cuda, context> {
# |       |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/detail/backend_traits_cuda.hpp:76:20: note: previous definition is here
# |    76 | template <> struct BackendReturn<backend::ext_oneapi_cuda, context> {
# |       |                    ^
# | In file included from /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:13:
# | In file included from /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:15:
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/backend_traits_cuda.hpp:82:20: error: redefinition of 'BackendInput<sycl::backend::ext_oneapi_cuda, sycl::device>'
# |    82 | template <> struct BackendInput<backend::ext_oneapi_cuda, device> {
# |       |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/detail/backend_traits_cuda.hpp:80:20: note: previous definition is here
# |    80 | template <> struct BackendInput<backend::ext_oneapi_cuda, device> {
# |       |                    ^
# | In file included from /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:13:
# | In file included from /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:15:
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/backend_traits_cuda.hpp:86:20: error: redefinition of 'BackendReturn<sycl::backend::ext_oneapi_cuda, sycl::device>'
# |    86 | template <> struct BackendReturn<backend::ext_oneapi_cuda, device> {
# |       |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/detail/backend_traits_cuda.hpp:84:20: note: previous definition is here
# |    84 | template <> struct BackendReturn<backend::ext_oneapi_cuda, device> {
# |       |                    ^
# | In file included from /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:13:
# | In file included from /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:15:
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/backend_traits_cuda.hpp:90:20: error: redefinition of 'BackendInput<sycl::backend::ext_oneapi_cuda, sycl::event>'
# |    90 | template <> struct BackendInput<backend::ext_oneapi_cuda, event> {
# |       |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/detail/backend_traits_cuda.hpp:88:20: note: previous definition is here
# |    88 | template <> struct BackendInput<backend::ext_oneapi_cuda, event> {
# |       |                    ^
# | In file included from /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:13:
# | In file included from /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:15:
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/backend_traits_cuda.hpp:94:20: error: redefinition of 'BackendReturn<sycl::backend::ext_oneapi_cuda, sycl::event>'
# |    94 | template <> struct BackendReturn<backend::ext_oneapi_cuda, event> {
# |       |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/detail/backend_traits_cuda.hpp:92:20: note: previous definition is here
# |    92 | template <> struct BackendReturn<backend::ext_oneapi_cuda, event> {
# |       |                    ^
# | In file included from /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:13:
# | In file included from /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:15:
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/backend_traits_cuda.hpp:98:20: error: redefinition of 'BackendInput<sycl::backend::ext_oneapi_cuda, sycl::queue>'
# |    98 | template <> struct BackendInput<backend::ext_oneapi_cuda, queue> {
# |       |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/detail/backend_traits_cuda.hpp:96:20: note: previous definition is here
# |    96 | template <> struct BackendInput<backend::ext_oneapi_cuda, queue> {
# |       |                    ^
# | In file included from /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:13:
# | In file included from /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:15:
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/backend_traits_cuda.hpp:102:20: error: redefinition of 'BackendReturn<sycl::backend::ext_oneapi_cuda, sycl::queue>'
# |   102 | template <> struct BackendReturn<backend::ext_oneapi_cuda, queue> {
# |       |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/detail/backend_traits_cuda.hpp:100:20: note: previous definition is here
# |   100 | template <> struct BackendReturn<backend::ext_oneapi_cuda, queue> {
# |       |                    ^
# | In file included from /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:13:
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:40:13: error: redefinition of 'get_native<sycl::backend::ext_oneapi_cuda, sycl::context>'
# |    40 | inline auto get_native<backend::ext_oneapi_cuda, context>(const context &C)
# |       |             ^
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/backend.hpp:224:60: note: previous definition is here
# |   224 | inline backend_return_t<backend::ext_oneapi_cuda, context> get_native<
# |       |                                                            ^
# | In file included from /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:13:
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:47:7: error: type 'backend_return_t<backend::ext_oneapi_cuda, context>' (aka 'CUctx_st *') cannot be used prior to '::' because it has no members
# |    47 |       backend_return_t<backend::ext_oneapi_cuda, context>::value_type>(
# |       |       ^
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/backend.hpp:86:1: note: type alias template 'backend_return_t' declared here
# |    86 | using backend_return_t =
# |       | ^
# | In file included from /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:13:
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:49:6: error: member reference type 'backend_return_t<backend::ext_oneapi_cuda, context>' (aka 'CUctx_st *') is a pointer; did you mean to use '->'?
# |    49 |   ret.push_back(native);
# |       |   ~~~^
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/ext/oneapi/experimental/backend/cuda.hpp:49:6: error: incomplete definition of type 'struct CUctx_st'
# |    49 |   ret.push_back(native);
# |       |   ~~~^
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/detail/backend_traits_cuda.hpp:25:16: note: forward declaration of 'CUctx_st'
# |    25 | typedef struct CUctx_st *CUcontext;
# |       |                ^
# | /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:90:13: error: no matching function for call to 'get_native'
# |    90 |             get_native<BACKEND>(Context);
# |       |             ^~~~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/backend.hpp:149:6: note: candidate function template not viable: no known conversion from 'context' to 'const queue' for 1st argument
# |   149 | auto get_native(const queue &Obj) -> backend_return_t<BackendName, queue> {
# |       |      ^          ~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/backend.hpp:138:6: note: candidate template ignored: substitution failure [with BackendName = sycl::backend::ext_oneapi_cuda, SyclObjectT = context]
# |   138 | auto get_native(const SyclObjectT &Obj)
# |       |      ^
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/backend.hpp:170:6: note: candidate template ignored: could not match 'kernel_bundle<State>' against 'context'
# |   170 | auto get_native(const kernel_bundle<State> &Obj)
# |       |      ^
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/backend.hpp:181:6: note: candidate template ignored: could not match 'buffer<DataT, Dimensions, AllocatorT>' against 'context'
# |   181 | auto get_native(const buffer<DataT, Dimensions, AllocatorT> &Obj)
# |       |      ^
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/backend.hpp:257:6: note: candidate template ignored: could not match 'accessor<DataT, Dimensions, AccessMode, AccessTarget, IsPlaceholder>' against 'context'
# |   257 | auto get_native(const accessor<DataT, Dimensions, AccessMode, AccessTarget,
# |       |      ^
# | 19 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

This test also failed in DG2 and HIP: on this post-commit run: https://github.com/intel/llvm/actions/runs/11523103039 HIP ERROR:

FAIL: SYCL :: Basic/interop/interop_all_backends.cpp (278 of 2233)
******************** TEST 'SYCL :: Basic/interop/interop_all_backends.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3 has no command after substitutions
# RUN: at line 4 has no command after substitutions
# RUN: at line 5 has no command after substitutions
# RUN: at line 6
/__w/llvm/llvm/toolchain/bin//clang++  -Werror -Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=gfx1031 -fsycl -fsycl-targets=amdgcn-amd-amdhsa  /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp -DBUILD_FOR_HIP -o /__w/llvm/llvm/build-e2e/Basic/interop/Output/interop_all_backends.cpp.tmp-hip.out
# executed command: /__w/llvm/llvm/toolchain/bin//clang++ -Werror -Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=gfx1031 -fsycl -fsycl-targets=amdgcn-amd-amdhsa /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp -DBUILD_FOR_HIP -o /__w/llvm/llvm/build-e2e/Basic/interop/Output/interop_all_backends.cpp.tmp-hip.out
# .---command stderr------------
# | /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:23:22: error: unknown type name 'hipDevice_t'
# |    23 | using nativeDevice = hipDevice_t;
# |       |                      ^
# | /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:24:21: error: unknown type name 'hipStream_t'; did you mean 'ihipStream_t'?
# |    24 | using nativeQueue = hipStream_t;
# |       |                     ^~~~~~~~~~~
# |       |                     ihipStream_t
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/detail/backend_traits_hip.hpp:26:16: note: 'ihipStream_t' declared here
# |    26 | typedef struct ihipStream_t *HIPstream;
# |       |                ^
# | /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:25:21: error: unknown type name 'hipEvent_t'; did you mean 'ihipEvent_t'?
# |    25 | using nativeEvent = hipEvent_t;
# |       |                     ^~~~~~~~~~
# |       |                     ihipEvent_t
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/detail/backend_traits_hip.hpp:27:16: note: 'ihipEvent_t' declared here
# |    27 | typedef struct ihipEvent_t *HIPevent;
# |       |                ^
# | /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:45:22: error: use of undeclared identifier 'nativeDevice'
# |    45 |                      nativeDevice>));
# |       |                      ^
# | 4 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

DG2 ERROR:

FAIL: SYCL :: Basic/interop/interop_all_backends.cpp (276 of 2233)
******************** TEST 'SYCL :: Basic/interop/interop_all_backends.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3 has no command after substitutions
# RUN: at line 4
/__w/llvm/llvm/toolchain/bin//clang++  -Werror  -fsycl -fsycl-targets=spir64  /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp -DBUILD_FOR_L0 -o /__w/llvm/llvm/build-e2e/Basic/interop/Output/interop_all_backends.cpp.tmp-l0.out
# executed command: /__w/llvm/llvm/toolchain/bin//clang++ -Werror -fsycl -fsycl-targets=spir64 /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp -DBUILD_FOR_L0 -o /__w/llvm/llvm/build-e2e/Basic/interop/Output/interop_all_backends.cpp.tmp-l0.out
# .---command stderr------------
# | /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:65:23: error: no matching function for call to 'make_queue'
# |    65 |   auto InteropQueue = make_queue<BACKEND>(NativeQueue, Context);
# |       |                       ^~~~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/backend.hpp:348:1: note: candidate function template not viable: no known conversion from 'backend_traits<BACKEND>::return_type<queue>' (aka 'variant<_ze_command_queue_handle_t *, _ze_command_list_handle_t *>') to 'const typename backend_traits<(backend)'\x02'>::template input_type<queue>' (aka 'const sycl::detail::BackendInput<sycl::backend::ext_oneapi_level_zero, sycl::queue>::type') for 1st argument
# |   348 | make_queue(const typename backend_traits<Backend>::template input_type<queue>
# |       | ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   349 |                &BackendObject,
# |       |                ~~~~~~~~~~~~~~
# | /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/interop/interop_all_backends.cpp:78:24: error: no matching function for call to 'make_event'
# |    78 |   event InteropEvent = make_event<BACKEND>(NativeEvent, Context);
# |       |                        ^~~~~~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/backend.hpp:361:1: note: candidate function template not viable: cannot convert argument of incomplete type 'backend_traits<BACKEND>::return_type<event>' (aka '_ze_event_handle_t *') to 'const typename backend_traits<(backend)'\x02'>::template input_type<event>' (aka 'const sycl::detail::BackendInput<sycl::backend::ext_oneapi_level_zero, sycl::event>::type') for 1st argument
# |   361 | make_event(const typename backend_traits<Backend>::template input_type<event>
# |       | ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   362 |                &BackendObject,
# |       |                ~~~~~~~~~~~~~~
# | /__w/llvm/llvm/toolchain/bin/../include/sycl/backend.hpp:371:25: note: candidate function template not viable: requires 3 arguments, but 2 were provided
# |   371 |                  event> make_event(const typename backend_traits<Backend>::
# |       |                         ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   372 |                                        template input_type<event>
# |       |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   373 |                                            &BackendObject,
# |       |                                            ~~~~~~~~~~~~~~~
# |   374 |                                    const context &TargetContext,
# |       |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |   375 |                                    bool KeepOwnership) {
# |       |                                    ~~~~~~~~~~~~~~~~~~
# | 2 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

To reproduce

  1. Include a code snippet that is as short as possible
  2. Specify the command which should be used to compile the program
  3. Specify the command which should be used to launch the program
  4. Indicate what is wrong and what was expected

Environment

Additional context

No response

sarnex commented 2 weeks ago

Failing on Linux L0 too, we just aren't seeing it in precommit because we test opencl and l0 at the same time, opencl is xfailed, and when we test on multiple targets and one of them is xfail we internally change the xfail to unsupported. I'll disable it