Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit fc4b108

Browse files
committed
Test
Signed-off-by: Rauf, Rana <[email protected]>
1 parent a7b8e28 commit fc4b108

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

SYCL/Basic/intel-ext-device.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ int main(int argc, char **argv) {
9494
std::cout << "Number of EUs per subslice = " << numEUsPerSubslice
9595
<< std::endl;
9696
}
97-
if (dev.has(aspect::ext_intel_gpu_hw_threads_per_eu)) {
97+
if (SYCL_EXT_INTEL_DEVICE_INFO >= 3 &&
98+
dev.has(aspect::ext_intel_gpu_hw_threads_per_eu)) {
9899
numHWThreadsPerEU = dev.get_info<
99100
ext::intel::info::device::gpu_hw_threads_per_eu>();
100101
std::cout << "Number of HW threads per EU = " << numHWThreadsPerEU
@@ -112,7 +113,8 @@ int main(int argc, char **argv) {
112113
std::cout << "Failed!" << std::endl;
113114
return 1;
114115
}
115-
if (dev.has(aspect::ext_intel_device_info_uuid)) {
116+
if (SYCL_EXT_INTEL_DEVICE_INFO >= 2 &&
117+
dev.has(aspect::ext_intel_device_info_uuid)) {
116118
auto UUID = dev.get_info<ext::intel::info::device::uuid>();
117119
std::cout << "Device UUID = ";
118120
for (int i = 0; i < 16; i++) {

0 commit comments

Comments
 (0)