Skip to content

Crash in dpctl test suite run on opencl::cpu using SYCL nightly compiler and runtime #2156

Closed

Description

@sycloid

The os-llvm workflow has been failing with crash due to assertion failure during execution of test_usm_ndarray_indexing.py.

I was able to reproduce this crash locally:

$ OCL_ICD_FILENAMES=~/sycl-builds/oclcpuexp/x64/libintelocl.so \
      OCL_ICD_VENDORS=. \
      CL_CONFIG_CPU_VECTORIZER_MODE=8 \
      ONEAPI_DEVICE_SELECTOR=opencl:cpu \
      python -m pytest -s dpctl/tests

<snipped>
........................................python: /__w/llvm/llvm/src/sycl/source/detail/device_kernel_info.cpp:67: void sycl::_V1::detail::DeviceKernelInfo::setCompileTimeInfoIfNeeded(const sycl::_V1::detail::compile_time_kernel_info_v1::CompileTimeKernelInfoTy&): Assertion `Info == *this' failed.
Fatal Python error: Aborted

Current thread 0x00007ff581274740 (most recent call first):
  File "/home/sycloid/repos/dpctl/dpctl/tensor/_copy_utils.py", line 795 in _extract_impl
  File "/home/sycloid/repos/dpctl/dpctl/tests/test_usm_ndarray_indexing.py", line 1473 in test_nonzero_large
  File "/home/sycloid/miniforge/envs/dev_dpctl/lib/python3.13/site-packages/_pytest/python.py", line 157 in pytest_pyfunc_call
  File "/home/sycloid/miniforge/envs/dev_dpctl/lib/python3.13/site-packages/pluggy/_callers.py", line 121 in _multicall

The crash is not reproducible if just that test file is file is run instead of entire test suite.

This issue is to investigate the crash.

Activity

  1. added
    bugSomething isn't working
    dpcppIssues related to DPC++
    on Sep 18, 2025
  2. sycloid commented on Sep 19, 2025

    @sycloid
    ContributorAuthor

    The crash with SYCL bundle is reproducible with GPU device as well: intel/llvm#20132 (comment)

  3. added 2 commits that reference this issue on Sep 26, 2025
    07d0243
    a2640ab
  4. sycloid commented on Sep 26, 2025

    @sycloid
    ContributorAuthor

    See intel/llvm#20132 (comment) for minimal Python reproducer.

    See intel/llvm#20132 (comment) for a work-around implemented in #2157

  5. sycloid commented on Sep 29, 2025

    @sycloid
    ContributorAuthor

    The segmentation fault is no longer reproducible with compiler built from current top of tree

    clang version 22.0.0git (https://github.com/intel/llvm 36363e606092e25deab5ba9d493f890c912b0462)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    InstalledDir: /home/sycloid/sycl-builds/test_llvm/build_sycl/bin
    Build config: +assertions
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdpcppIssues related to DPC++

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions