Skip to content

Adapters/sycl-targets-order.cpp Never runs due to requirements, and fails to compile #17108

Closed
@ayylol

Description

@ayylol

Describe the bug

This test does not run due to the REQUIRES: opencl, cuda statement, and currently fails to compile.

llvm-lit --param test-mode=build-only -a Adapters/sycl-targets-order.cpp
llvm-lit: /home/llvm/sycl/test-e2e/lit.cfg.py:70: note: build-only test mode enabled, only compiling tests
llvm-lit: /home/llvm/sycl/test-e2e/lit.cfg.py:518: note: Targeted devices:
llvm-lit: /home/llvm/sycl/test-e2e/lit.cfg.py:698: note: Found pre-installed AOT device compiler ocloc
llvm-lit: /home/llvm/sycl/test-e2e/lit.cfg.py:698: note: Found pre-installed AOT device compiler opencl-aot
-- Testing: 1 tests, 1 workers --
FAIL: SYCL :: Adapters/sycl-targets-order.cpp (1 of 1)
******************** TEST 'SYCL :: Adapters/sycl-targets-order.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/build/bin/clang++  -Werror -fsycl -fsycl-targets=spir64,nvptx64-nvidia-cuda /home/llvm/sycl/test-e2e/Adapters/sycl-targets-order.cpp -o /home/build/tools/sycl/test-e2e/Adapters/Output/sycl-targets-order.cpp.tmp-spir64-nvptx64.out
# executed command: /home/build/bin/clang++ -Werror -fsycl -fsycl-targets=spir64,nvptx64-nvidia-cuda /home/llvm/sycl/test-e2e/Adapters/sycl-targets-order.cpp -o /home/build/tools/sycl/test-e2e/Adapters/Output/sycl-targets-order.cpp.tmp-spir64-nvptx64.out
# .---command stderr------------
# | /home/llvm/sycl/test-e2e/Adapters/sycl-targets-order.cpp:40:40: error: 'get_count' is deprecated: get_count() is deprecated, please use size() instead [-Werror,-Wdeprecated-declarations]
# |    40 |   sycl::range<1> NumOfWorkItems{buffer.get_count()};
# |       |                                        ^
# | /home/build/bin/../include/sycl/buffer.hpp:497:3: note: 'get_count' has been explicitly marked deprecated here
# |   497 |   __SYCL2020_DEPRECATED("get_count() is deprecated, please use size() instead")
# |       |   ^
# | /home/build/bin/../include/sycl/detail/defines_elementary.hpp:62:40: note: expanded from macro '__SYCL2020_DEPRECATED'
# |    62 | #define __SYCL2020_DEPRECATED(message) __SYCL_DEPRECATED(message)
# |       |                                        ^
# | /home/build/bin/../include/sycl/detail/defines_elementary.hpp:53:38: note: expanded from macro '__SYCL_DEPRECATED'
# |    53 | #define __SYCL_DEPRECATED(message) [[deprecated(message)]]
# |       |                                      ^
# | /home/llvm/sycl/test-e2e/Adapters/sycl-targets-order.cpp:59:39: error: 'get_count' is deprecated: get_count() is deprecated, please use size() instead [-Werror,-Wdeprecated-declarations]
# |    59 |   for (unsigned int i = 0; i < buffer.get_count(); ++i) {
# |       |                                       ^
# | /home/build/bin/../include/sycl/buffer.hpp:497:3: note: 'get_count' has been explicitly marked deprecated here
# |   497 |   __SYCL2020_DEPRECATED("get_count() is deprecated, please use size() instead")
# |       |   ^
# | /home/build/bin/../include/sycl/detail/defines_elementary.hpp:62:40: note: expanded from macro '__SYCL2020_DEPRECATED'
# |    62 | #define __SYCL2020_DEPRECATED(message) __SYCL_DEPRECATED(message)
# |       |                                        ^
# | /home/build/bin/../include/sycl/detail/defines_elementary.hpp:53:38: note: expanded from macro '__SYCL_DEPRECATED'
# |    53 | #define __SYCL_DEPRECATED(message) [[deprecated(message)]]
# |       |                                      ^
# | 2 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

********************
********************
Failed Tests (1):
  SYCL :: Adapters/sycl-targets-order.cpp


Testing Time: 2.02s

Total Discovered Tests: 1
  Failed: 1 (100.00%)

To reproduce

No response

Environment

  • OS: Linux
  • Target device and vendor: N/A fails on compilation
  • DPC++ version: fb2effe
  • Dependencies version: using alldeps container compiled with cuda support

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions