intel / intel/llvm

Add environment variable to redirect SYCL_PI_TRACE to file

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

Description

**Is your feature request related to a problem? Please describe**
`SYCL_PI_TRACE` prints to a mix of `stdout` and `stderr`. If an application is reading from either of these streams, it may receive unexpected trace output (and break).

**Describe the solution you would like**
Add something like a `SYCL_PI_TRACE_FILE=pi_trace.txt` capability that can be used alongside `SYCL_PI_TRACE`.

**Describe alternatives you have considered**
Piping `stdout` or `stderr` to file doesn't work.

**Additional context**
N/A

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.