intel / intel/llvm

test-e2e/Regression/complex_global_object.cpp fails on different devices

Open
#22,225 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

May be flaky (also haven't seen failures on Win).
Linux & native cpu:
```
# RUN: at line 1
/__w/llvm/llvm/toolchain/bin/clang++ -Werror -fsycl -fsycl-targets=native_cpu /__w/llvm/llvm/llvm/sycl/test-e2e/Regression/complex_global_object.cpp -o /__w/llvm/llvm/build-e2e/Regression/Output/complex_global_object.cpp.tmp.out
# executed command: /__w/llvm/llvm/toolchain/bin/clang++ -Werror -fsycl -fsycl-targets=native_cpu /__w/llvm/llvm/llvm/sycl/test-e2e/Regression/complex_global_object.cpp -o /__w/llvm/llvm/build-e2e/Regression/Output/complex_global_object.cpp.tmp.out
# note: command had no output on stdout or stderr
# RUN: at line 2
env ONEAPI_DEVICE_SELECTOR=native_cpu:cpu /__w/llvm/llvm/build-e2e/Regression/Output/complex_global_object.cpp.tmp.out
# executed command: env ONEAPI_DEVICE_SELECTOR=native_cpu:cpu /__w/llvm/llvm/build-e2e/Regression/Output/complex_global_object.cpp.tmp.out
# note: command had no output on stdout or stderr
# error: command failed with exit status: -9
# error: command reached timeout: True
```
Linux & CUDA:
```
# RUN: at line 2
env SYCL_UR_CUDA_ENABLE_IMAGE_SUPPORT=1 ONEAPI_DEVICE_SELECTOR=cuda:gpu /__w/llvm/llvm/build-e2e/Regression/Output/complex_global_object.cpp.tmp.out
# executed command: env SYCL_UR_CUDA_ENABLE_IMAGE_SUPPORT=1 ONEAPI_DEVICE_SELECTOR=cuda:gpu /__w/llvm/llvm/build-e2e/Regression/Output/complex_global_object.cpp.tmp.out
# .---command stderr------------
# | complex_global_object.cpp.tmp.out: /__w/llvm/llvm/build/_deps/unified-memory-framework-src/src/base_alloc/base_alloc_linux.c:29: void ba_os_free(void *, size_t): Assertion `ret == 0' failed.
# `-----------------------------
# error: command failed with exit status: -6
```
Linux & L0 gen12:
```
# RUN: at line 2
env ONEAPI_DEVICE_SELECTOR=level_zero:gpu /__w/llvm/llvm/build-e2e/Regression/Output/complex_global_object.cpp.tmp.out
# executed command: env ONEAPI_DEVICE_SELECTOR=level_zero:gpu /__w/llvm/llvm/build-e2e/Regression/Output/complex_global_object.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 'Intel(R) Iris(R) Xe Graphics':
# | IGC: Internal Compiler Error: Segmentation violation
# |
# `-----------------------------
# error: command failed with exit status: -6
```
Linux & L0 BMG:
```
# RUN: at line 2
env env UR_LOADER_USE_LEVEL_ZERO_V2=0 ONEAPI_DEVICE_SELECTOR=level_zero:gpu /__w/llvm/llvm/build-e2e/Regression/Output/complex_global_object.cpp.tmp.out
# executed command: env env UR_LOADER_USE_LEVEL_ZERO_V2=0 ONEAPI_DEVICE_SELECTOR=level_zero:gpu /__w/llvm/llvm/build-e2e/Regression/Output/complex_global_object.cpp.tmp.out
# .---command stderr------------
# | InvalidBuiltinSetName: Expects OpenCL.std. Actual is OpenCL.std
# `-----------------------------
# error: command failed with exit status: 7
```

### 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_

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.