intel / intel/llvm

Printf/int.cpp fails on SPIR-V backend

Open
#21,314 2 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

```
[1](https://github.com/intel/llvm/actions/runs/22144861190/job/64020822811#step:18:355)
******************** TEST 'SYCL :: Printf/int.cpp' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 9
env ONEAPI_DEVICE_SELECTOR=level_zero:gpu /__w/llvm/llvm/build-e2e/Printf/Output/int.cpp.tmp.out | /__w/llvm/llvm/toolchain/bin/FileCheck /__w/llvm/llvm/llvm/sycl/test-e2e/Printf/int.cpp
# executed command: env ONEAPI_DEVICE_SELECTOR=level_zero:gpu /__w/llvm/llvm/build-e2e/Printf/Output/int.cpp.tmp.out
# .---command stderr------------
# | InvalidModule: Invalid SPIR-V module: input SPIR-V module uses extension 'SPV_EXT_relaxed_printf_string_address_space' which were disabled by --spirv-ext option
# `-----------------------------
# error: command failed with exit status: 11
# executed command: /__w/llvm/llvm/toolchain/bin/FileCheck /__w/llvm/llvm/llvm/sycl/test-e2e/Printf/int.cpp
# .---command stderr------------
# | FileCheck error: '' is empty.
# | FileCheck command line: /__w/llvm/llvm/toolchain/bin/FileCheck /__w/llvm/llvm/llvm/sycl/test-e2e/Printf/int.cpp
# `-----------------------------
# error: command failed with exit status: 2

--
```

https://github.com/intel/llvm/actions/runs/22144861190/job/64020822811

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