Skip to content

SPIRV-BACKEND: device_global_copy failed with "Incorrect type in struct initializer" after pulldown #20591

@jsji

Description

@jsji

Describe the bug

After pulldown in #20551, seeing runtime failures.

FAIL: SYCL :: DeviceGlobal/device_global_copy.cpp (414 of 2495)
  ******************** TEST 'SYCL :: DeviceGlobal/device_global_copy.cpp' FAILED ********************
  Exit Code: -6
  
  Command Output (stdout):
  --
  # RUN: at line 4
  env ONEAPI_DEVICE_SELECTOR=level_zero:gpu  /__w/llvm/llvm/build-e2e/DeviceGlobal/Output/device_global_copy.cpp.tmp.out
  # executed command: env ONEAPI_DEVICE_SELECTOR=level_zero:gpu /__w/llvm/llvm/build-e2e/DeviceGlobal/Output/device_global_copy.cpp.tmp.out
  # note: command had no output on stdout or stderr
  # RUN: at line 4
  env ONEAPI_DEVICE_SELECTOR=opencl:cpu  /__w/llvm/llvm/build-e2e/DeviceGlobal/Output/device_global_copy.cpp.tmp.out
  # executed command: env ONEAPI_DEVICE_SELECTOR=opencl:cpu /__w/llvm/llvm/build-e2e/DeviceGlobal/Output/device_global_copy.cpp.tmp.out
  # .---command stderr------------
  # | terminate called after throwing an instance of 'sycl::_V1::exception'
  # |   what():  The program was built for 1 devices
  # | Build program log for '12th Gen Intel(R) Core(TM) i9-12900':
  # | Compilation started
  # | Compilation done
  # | Linking started
  # | Incorrect type in struct initializer (Producer: 'Intel.oneAPI.DPCPP.Compiler_2025.2.0' Reader: 'Intel.oneAPI.DPCPP.Compiler_2025.2.0')Linking failed
  # | 
  # | Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
  # | 0  libsycl.so.8                   0x00007fc8cc1666d2
  # | 1  libsycl.so.8                   0x00007fc8cc163d42
  # | 2  libc.so.6                      0x00007fc8cbc33330
  # | 3  libc.so.6                      0x00007fc8cbc8cb2c pthread_kill + 284
  # | 4  libc.so.6                      0x00007fc8cbc3327e gsignal + 30
  # | 5  libc.so.6                      0x00007fc8cbc168ff abort + 223
  # | 6  libstdc++.so.6                 0x00007fc8cc5f2ff5
  # | 7  libstdc++.so.6                 0x00007fc8cc6080da
  # | 8  libstdc++.so.6                 0x00007fc8cc5f2a55 std::unexpected() + 0
  # | 9  libstdc++.so.6                 0x00007fc8cc6080c1
  # | 10 libsycl.so.8                   0x00007fc8cbeaced5
  # | 11 libsycl.so.8                   0x00007fc8cc0e6b14
  # | 12 libsycl.so.8                   0x00007fc8cc12153d
  # | 13 libsycl.so.8                   0x00007fc8cc123eeb sycl::_V1::handler::finalize() + 139
  # | 14 libsycl.so.8                   0x00007fc8cc09cdf3
  # | 15 libsycl.so.8                   0x00007fc8cc15a5d5 sycl::_V1::queue::submit_with_event_impl(sycl::_V1::detail::type_erased_cgfo_ty const&, sycl::_V1::detail::v1::SubmissionInfo const&, sycl::_V1::detail::code_location const&, bool) const + 53
  # | 16 device_global_copy.cpp.tmp.out 0x0000000000407232
  # | 17 device_global_copy.cpp.tmp.out 0x0000000000403c2d
  # | 18 device_global_copy.cpp.tmp.out 0x0000000000403928
  # | 19 libc.so.6                      0x00007fc8cbc181ca
  # | 20 libc.so.6                      0x00007fc8cbc1828b __libc_start_main + 139
  # | 21 device_global_copy.cpp.tmp.out 0x0000000000403655
  # `-----------------------------
  # error: command failed with exit status: -6
  
  --

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

  • OS: [e.g Windows/Linux]
  • Target device and vendor: [e.g. Intel GPU]
  • DPC++ version: [e.g. commit hash or output of clang++ --version]
  • Dependencies version: [e.g. the output of sycl-ls --verbose]

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpdtrackerPulldown tracker for issues/reverts that needs follow up

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions