Skip to content

Commit a6729d0

Browse files
ianaylCompute-Runtime-Automation
authored andcommitted
fix: use new SYCL headers, remove obsolete opencl_c_version
Signed-off-by: Li, Ian <[email protected]>
1 parent 638a6d7 commit a6729d0

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

source/framework/sycl/sycl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2022-2023 Intel Corporation
2+
* Copyright (C) 2022-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -9,7 +9,7 @@
99

1010
#include "framework/test_case/test_case.h"
1111

12-
#include <CL/sycl.hpp>
12+
#include <sycl/sycl.hpp>
1313

1414
namespace SYCL {
1515
namespace sycl = ::sycl;

source/framework/sycl/utility/print_device_info_sycl.inl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2022-2024 Intel Corporation
2+
* Copyright (C) 2022-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -43,9 +43,6 @@ void printDeviceInfo() {
4343
std::cout << "Using SYCL backend: " << backendToString[backend] << std::endl;
4444
std::cout << "Driver version: " << driverVersion << std::endl;
4545

46-
if (backend == sycl::backend::opencl) {
47-
std::cout << "OpenCL C version: " << device.get_info<sycl::info::device::opencl_c_version>() << std::endl;
48-
}
4946
std::cout << "\tDevice: " << deviceName << std::endl;
5047
std::cout << "\t\tVendor:\t" << vendorName << std::endl;
5148
std::cout << "\t\tType:\t" << deviceType << std::endl;
@@ -77,9 +74,6 @@ static void printAvailableDevices() {
7774
std::cout << "\t\tVendor:\t" << vendorName << std::endl;
7875
std::cout << "\t\tDriver version:\t" << driverVersion << std::endl;
7976
std::cout << "\t\tVersion:\t" << version << std::endl;
80-
if (backend == sycl::backend::opencl) {
81-
std::cout << "\t\tOpenCL C Version:\t" << device.get_info<sycl::info::device::opencl_c_version>() << std::endl;
82-
}
8377

8478
std::cout << std::endl;
8579
}

0 commit comments

Comments
 (0)