Skip to content

Commit 19de5f4

Browse files
committed
trial tests
Signed-off-by: Byoungro So <[email protected]>
1 parent ffa3813 commit 19de5f4

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
//===----------------------------------------------------------------------===//
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
//===----------------------------------------------------------------------===//

sycl/tools/sycl-ls/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
add_executable(sycl-ls sycl-ls.cpp)
22
add_dependencies(sycl-ls sycl)
33
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+
411
target_link_libraries(sycl-ls
512
PRIVATE
6-
sycl
13+
${sycl_lib}
714
OpenCL-Headers
815
)
916
install(TARGETS sycl-ls

0 commit comments

Comments
 (0)