This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change
1
+ // REQUIRES: gpu
2
+
3
+ // RUN: env --unset=SYCL_DEVICE_FILTER sycl-ls --verbose >%t.default.out
4
+ // RUN: FileCheck %s --check-prefixes=CHECK-GPU-BUILTIN,CHECK-GPU-CUSTOM --input-file %t.default.out
5
+
6
+ // CHECK-GPU-BUILTIN: gpu_selector(){{.*}}GPU : {{.*}}{{Level-Zero|CUDA|OpenCL}}
7
+ // clang-format off
8
+ // CHECK-GPU-CUSTOM: custom_selector(gpu){{.*}}GPU : {{.*}}{{Level-Zero|CUDA|OpenCL}}
9
+ // clang-format on
10
+
11
+ // ==--------------------- sycl-ls-gpu-default-any.cpp ----------------------==//
12
+ //
13
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
14
+ // See https://llvm.org/LICENSE.txt for license information.
15
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
16
+ //
17
+ // ===----------------------------------------------------------------------===//
18
+
19
+ // This test checks that a valid GPU is returned by sycl-ls by default if one
20
+ // is present.
Original file line number Diff line number Diff line change 1
- // REQUIRES: gpu
1
+ // REQUIRES: gpu, level-zero
2
2
3
3
// RUN: env --unset=SYCL_DEVICE_FILTER sycl-ls --verbose >%t.default.out
4
4
// RUN: FileCheck %s --check-prefixes=CHECK-GPU-BUILTIN,CHECK-GPU-CUSTOM --input-file %t.default.out
5
5
6
6
// CHECK-GPU-BUILTIN: gpu_selector(){{.*}}GPU : {{.*}}Level-Zero
7
7
// CHECK-GPU-CUSTOM: custom_selector(gpu){{.*}}GPU : {{.*}}Level-Zero
8
8
9
- // ==-- sycl-ls-gpu-default.cpp - SYCL test for default selected gpu device -==//
9
+ // ==------------------ sycl-ls-gpu-default-level-zero .cpp ----------------- -==//
10
10
//
11
11
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
12
12
// See https://llvm.org/LICENSE.txt for license information.
13
13
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
14
14
//
15
15
// ===----------------------------------------------------------------------===//
16
+
17
+ // This test checks that, if available, a Level-Zero GPU will be selected by
18
+ // the default GPU selector.
You can’t perform that action at this time.
0 commit comments