intel / intel/llvm

[SYCL][L0] Improve diagnostics for timed-out device

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

Description

#8693 shows a code where the user had some threads exit before a barrier. Thus, the barrier never completes resulting in a `PI_ERROR_DEVICE_NOT_FOUND` error. The actual error (threads exiting before a barrier) is obviously a user error, but the diagnostic is far from helpful, even a bit misleading. Is there something we can do here? For instance, OpenCL error seems more helpful:
```
terminate called after throwing an instance of 'sycl::_V1::runtime_error'
what(): Native API failed. Native API returns: -14 (PI_ERROR_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST) -14 (PI_ERROR_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)
```

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.