File tree Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change
1
+ // REQUIRES: level_zero
2
+
3
+ // RUN: env SYCL_DEVICE_FILTER=level_zero sycl-ls | FileCheck %s --check-prefixes=CHECK-OPENCL
4
+
5
+ // CHECK-OPENCL-COUNT-1: [level_zero:{{.*}}:0]
6
+
7
+ // ==-- sycl-ls-unique-device-id-level-zero.cpp - SYCL test for unique device id
8
+ // --===//
9
+ //
10
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
11
+ // See https://llvm.org/LICENSE.txt for license information.
12
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
13
+ //
14
+ // ===----------------------------------------------------------------------===//
Original file line number Diff line number Diff line change
1
+ // REQUIRES: opencl
2
+
3
+ // RUN: env SYCL_DEVICE_FILTER=opencl sycl-ls | FileCheck %s --check-prefixes=CHECK-OPENCL
4
+
5
+ // CHECK-OPENCL-COUNT-1: [opencl:{{.*}}:0]
6
+
7
+ // ==-- sycl-ls-unique-device-id-opencl.cpp - SYCL test for unique device id
8
+ // --===//
9
+ //
10
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
11
+ // See https://llvm.org/LICENSE.txt for license information.
12
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
13
+ //
14
+ // ===----------------------------------------------------------------------===//
Original file line number Diff line number Diff line change 1
1
add_executable (sycl-ls sycl-ls.cpp )
2
2
add_dependencies (sycl-ls sycl )
3
3
target_include_directories (sycl-ls PRIVATE "${sycl_inc_dir} " )
4
+
5
+ set (sycl_lib sycl )
6
+ string (TOLOWER "${CMAKE_BUILD_TYPE} " build_type_lower )
7
+ if (WIN32 AND "${build_type_lower} " MATCHES "debug" )
8
+ set (sycl_lib sycld )
9
+ endif ()
10
+
4
11
target_link_libraries (sycl-ls
5
12
PRIVATE
6
- sycl
13
+ ${sycl_lib}
7
14
OpenCL-Headers
8
15
)
9
16
install (TARGETS sycl-ls
You can’t perform that action at this time.
0 commit comments