Skip to content

Commit 08066b2

Browse files
[SYCL] support sycl::info::device::host_unified_memory similar to OpenCL (#2683)
Signed-off-by: Sergey V Maslov <sergey.v.maslov@intel.com>
1 parent a818801 commit 08066b2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,9 +1216,8 @@ pi_result piDeviceGetInfo(pi_device Device, pi_device_info ParamName,
12161216
case PI_DEVICE_INFO_IMAGE_SUPPORT:
12171217
return ReturnValue(pi_bool{ZeDeviceImageProperties.maxImageDims1D > 0});
12181218
case PI_DEVICE_INFO_HOST_UNIFIED_MEMORY:
1219-
return ReturnValue(
1220-
// TODO[1.0]: how to query for USM support now?
1221-
pi_bool{true});
1219+
return ReturnValue(pi_bool{(Device->ZeDeviceProperties.flags &
1220+
ZE_DEVICE_PROPERTY_FLAG_INTEGRATED) != 0});
12221221
case PI_DEVICE_INFO_AVAILABLE:
12231222
return ReturnValue(pi_bool{ZeDevice ? true : false});
12241223
case PI_DEVICE_INFO_VENDOR:

0 commit comments

Comments
 (0)