Config/device_selector.cpp fails in pre-commit.
- Dominant language
- LLVM
- Stars
- 1.5k
- Forks
- 854
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 137
Description
The test fails in pre-commit for https://github.com/intel/llvm/pull/10339, which has no functional changes.
```
FAIL: SYCL :: Config/device_selector.cpp (273 of 1436)
******************** TEST 'SYCL :: Config/device_selector.cpp' FAILED ********************
Script:
--
: 'RUN: at line 1'; /__w/llvm/llvm/toolchain/bin//clang++ -fsycl -fsycl-targets=spir64 /__w/llvm/llvm/llvm/sycl/test-e2e/Config/device_selector.cpp -o /__w/llvm/llvm/build-e2e/Config/Output/device_selector.cpp.tmp.out
: 'RUN: at line 2'; /__w/llvm/llvm/build-e2e/Config/Output/device_selector.cpp.tmp.out
--
Exit Code: -11
Command Output (stdout):
--
$ ":" "RUN: at line 1"
note: command had no output on stdout or stderr
$ "/__w/llvm/llvm/toolchain/bin//clang++" "-fsycl" "-fsycl-targets=spir64" "/__w/llvm/llvm/llvm/sycl/test-e2e/Config/device_selector.cpp" "-o" "/__w/llvm/llvm/build-e2e/Config/Output/device_selector.cpp.tmp.out"
# command stderr:
/__w/llvm/llvm/llvm/sycl/test-e2e/Config/device_selector.cpp:11:39: warning: 'device_selector' is deprecated: Use SYCL 2020 callable device selectors instead. [-Wdeprecated-declarations]
11 | class RejectEverything : public sycl::device_selector {
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/device_selector.hpp:34:21: note: 'device_selector' has been explicitly marked deprecated here
34 | class __SYCL_EXPORT __SYCL2020_DEPRECATED(
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/detail/defines_elementary.hpp:55:40: note: expanded from macro '__SYCL2020_DEPRECATED'
55 | #define __SYCL2020_DEPRECATED(message) __SYCL_DEPRECATED(message)
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/detail/defines_elementary.hpp:46:38: note: expanded from macro '__SYCL_DEPRECATED'
46 | #define __SYCL_DEPRECATED(message) [[deprecated(message)]]
| ^
/__w/llvm/llvm/llvm/sycl/test-e2e/Config/device_selector.cpp:22:18: warning: 'device' is deprecated: SYCL 1.2.1 device selectors are deprecated. Please use SYCL 2020 device selectors instead. [-Wdeprecated-declarations]
22 | sycl::device Device(Selector);
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/device.hpp:73:3: note: 'device' has been explicitly marked deprecated here
73 | __SYCL2020_DEPRECATED("SYCL 1.2.1 device selectors are deprecated. Please "
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/detail/defines_elementary.hpp:55:40: note: expanded from macro '__SYCL2020_DEPRECATED'
55 | #define __SYCL2020_DEPRECATED(message) __SYCL_DEPRECATED(message)
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/detail/defines_elementary.hpp:46:38: note: expanded from macro '__SYCL_DEPRECATED'
46 | #define __SYCL_DEPRECATED(message) [[deprecated(message)]]
| ^
/__w/llvm/llvm/llvm/sycl/test-e2e/Config/device_selector.cpp:23:18: warning: 'runtime_error' is deprecated: use sycl::exception with sycl::errc::runtime instead. [-Wdeprecated-declarations]
23 | } catch (sycl::runtime_error &E) {
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/exception.hpp:1[30](https://github.com/intel/llvm/actions/runs/5537377951/jobs/10106347642?pr=10339#step:15:31):7: note: 'runtime_error' has been explicitly marked deprecated here
130 | class __SYCL2020_DEPRECATED(
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/detail/defines_elementary.hpp:55:40: note: expanded from macro '__SYCL2020_DEPRECATED'
55 | #define __SYCL2020_DEPRECATED(message) __SYCL_DEPRECATED(message)
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/detail/defines_elementary.hpp:46:38: note: expanded from macro '__SYCL_DEPRECATED'
46 | #define __SYCL_DEPRECATED(message) [[deprecated(message)]]
| ^
3 warnings generated.
/__w/llvm/llvm/llvm/sycl/test-e2e/Config/device_selector.cpp:11:39: warning: 'device_selector' is deprecated: Use SYCL 2020 callable device selectors instead. [-Wdeprecated-declarations]
11 | class RejectEverything : public sycl::device_selector {
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/device_selector.hpp:[34](https://github.com/intel/llvm/actions/runs/5537377951/jobs/10106347642?pr=10339#step:15:35):21: note: 'device_selector' has been explicitly marked deprecated here
34 | class __SYCL_EXPORT __SYCL2020_DEPRECATED(
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/detail/defines_elementary.hpp:55:40: note: expanded from macro '__SYCL2020_DEPRECATED'
55 | #define __SYCL2020_DEPRECATED(message) __SYCL_DEPRECATED(message)
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/detail/defines_elementary.hpp:46:[38](https://github.com/intel/llvm/actions/runs/5537377951/jobs/10106347642?pr=10339#step:15:39): note: expanded from macro '__SYCL_DEPRECATED'
46 | #define __SYCL_DEPRECATED(message) [[deprecated(message)]]
| ^
/__w/llvm/llvm/llvm/sycl/test-e2e/Config/device_selector.cpp:22:18: warning: 'device' is deprecated: SYCL 1.2.1 device selectors are deprecated. Please use SYCL 2020 device selectors instead. [-Wdeprecated-declarations]
22 | sycl::device Device(Selector);
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/device.hpp:73:3: note: 'device' has been explicitly marked deprecated here
73 | __SYCL2020_DEPRECATED("SYCL 1.2.1 device selectors are deprecated. Please "
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/detail/defines_elementary.hpp:55:[40](https://github.com/intel/llvm/actions/runs/5537377951/jobs/10106347642?pr=10339#step:15:41): note: expanded from macro '__SYCL2020_DEPRECATED'
55 | #define __SYCL2020_DEPRECATED(message) __SYCL_DEPRECATED(message)
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/detail/defines_elementary.hpp:[46](https://github.com/intel/llvm/actions/runs/5537377951/jobs/10106347642?pr=10339#step:15:47):38: note: expanded from macro '__SYCL_DEPRECATED'
46 | #define __SYCL_DEPRECATED(message) [[deprecated(message)]]
| ^
/__w/llvm/llvm/llvm/sycl/test-e2e/Config/device_selector.cpp:23:18: warning: 'runtime_error' is deprecated: use sycl::exception with sycl::errc::runtime instead. [-Wdeprecated-declarations]
23 | } catch (sycl::runtime_error &E) {
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/exception.hpp:130:7: note: 'runtime_error' has been explicitly marked deprecated here
130 | class __SYCL2020_DEPRECATED(
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/detail/defines_elementary.hpp:[55](https://github.com/intel/llvm/actions/runs/5537377951/jobs/10106347642?pr=10339#step:15:56):40: note: expanded from macro '__SYCL2020_DEPRECATED'
55 | #define __SYCL2020_DEPRECATED(message) __SYCL_DEPRECATED(message)
| ^
/__w/llvm/llvm/toolchain/bin/../include/sycl/detail/defines_elementary.hpp:46:38: note: expanded from macro '__SYCL_DEPRECATED'
46 | #define __SYCL_DEPRECATED(message) [[deprecated(message)]]
| ^
3 warnings generated.
$ ":" "RUN: at line 2"
note: command had no output on stdout or stderr
$ "/__w/llvm/llvm/build-e2e/Config/Output/device_selector.cpp.tmp.out"
note: command had no output on stdout or stderr
error: command failed with exit status: -11
--
```
Full log - https://github.com/intel/llvm/actions/runs/5537377951/jobs/10106347642?pr=10339. Attached -
[logs_91472.zip](https://github.com/intel/llvm/files/12034594/logs_91472.zip)
One more thing: test uses deprecated API and output polluted with warnings.
Contributor guide
Assessment
This issue has not been assessed yet.