intel / intel/llvm

Test reinterpret.cpp is failing for level_zero&&gpu

Open
#14,430 0 comments 0 reactions 0 assignees View on GitHub
bug confirmed
Dominant language
LLVM
Stars
1.5k
Forks
854
Avg merge
3d 17h
Merged PRs (30d)
137

Description

### Describe the bug

The test SYCL :: Basic/buffer/reinterpret.cpp is failing for level_zero GPU devices.
CI: https://github.com/intel/llvm/actions/runs/9716365508/job/26824199047?pr=14354)
Upon resolution, please remove XFAIL from test source.

### To reproduce

```
FAIL: SYCL :: Basic/buffer/reinterpret.cpp (164 of 2089)
******************** TEST 'SYCL :: Basic/buffer/reinterpret.cpp' FAILED ********************
Exit Code: -6

Command Output (stdout):
--
# RUN: at line 1
/__w/llvm/llvm/toolchain/bin//clang++ -fsycl -fsycl-targets=spir64 /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/buffer/reinterpret.cpp -o /__w/llvm/llvm/build-e2e/Basic/buffer/Output/reinterpret.cpp.tmp.out
# executed command: /__w/llvm/llvm/toolchain/bin//clang++ -fsycl -fsycl-targets=spir64 /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/buffer/reinterpret.cpp -o /__w/llvm/llvm/build-e2e/Basic/buffer/Output/reinterpret.cpp.tmp.out
# note: command had no output on stdout or stderr
# RUN: at line 2
env ONEAPI_DEVICE_SELECTOR=level_zero:gpu /__w/llvm/llvm/build-e2e/Basic/buffer/Output/reinterpret.cpp.tmp.out
# executed command: env ONEAPI_DEVICE_SELECTOR=level_zero:gpu /__w/llvm/llvm/build-e2e/Basic/buffer/Output/reinterpret.cpp.tmp.out
# .---command stdout------------
# | Expected exception has been caught: Total size in bytes represented by the type and range of the reinterpreted SYCL buffer does not equal the total size in bytes represented by the type and range of this SYCL buffer -30 (PI_ERROR_INVALID_VALUE)
# `-----------------------------
# .---command stderr------------
# | reinterpret.cpp.tmp.out: /__w/llvm/llvm/llvm/sycl/test-e2e/Basic/buffer/reinterpret.cpp:159: int main(): Assertion `data[i] == expected_data[i] && "1D sub buffer char->int reinterpret failed"' failed.
# `-----------------------------
# error: command failed with exit status: -6

```

### Environment

- OS: Agnostic
- Target device and vendor: 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.