Skip to content

Commit 8856ca4

Browse files
committed
fix
1 parent 06ed606 commit 8856ca4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

sycl/test-e2e/Plugin/level_zero_device_free_mem.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: aspect-ext_intel_free_memory
2+
// REQUIRES: level_zero, level_zero_dev_kit
23
//
34
// RUN: %{build} %level_zero_options -o %t.out
45
// RUN: env ZES_ENABLE_SYSMAN=1 %{run} %t.out 2>&1 | FileCheck %s
@@ -14,6 +15,7 @@
1415
using namespace sycl;
1516

1617
int main() {
18+
1719
queue Queue;
1820
auto dev = Queue.get_device();
1921
std::cout << "Device: " << dev.get_info<info::device::name>() << std::endl;

sycl/test-e2e/lit.cfg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,9 @@ def open_check_file(file_name):
647647
env = copy.copy(llvm_config.config.environment)
648648
env["ONEAPI_DEVICE_SELECTOR"] = sycl_device
649649
env["ZES_ENABLE_SYSMAN"] = "1"
650+
# The reason for setting ZES_ENABLE_SYSMAN=1 is to ensure
651+
# that the "ext_intel_free_memory" aspect is displayed by sycl-ls --verbose
652+
# Without this aspect, tests requiring it are skipped.
650653
if sycl_device.startswith("cuda:"):
651654
env["SYCL_PI_CUDA_ENABLE_IMAGE_SUPPORT"] = "1"
652655
# When using the ONEAPI_DEVICE_SELECTOR environment variable, sycl-ls

0 commit comments

Comments
 (0)