Skip to content

Commit 2610e94

Browse files
committed
address review comments
Signed-off-by: Sergey V Maslov <[email protected]>
1 parent db2d814 commit 2610e94

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

sycl/doc/extensions/supported/sycl_ext_intel_device_info.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,9 @@ Then the maximum memory bandwidth can be obtained using the standard get\_info()
349349
auto maxBW = dev.get_info<info::device::ext_intel_max_mem_bandwidth>();
350350
}
351351

352-
# Free Memory #
352+
# Free Global Memory #
353353

354-
A new device descriptor will be added which will provide the number of bytes of free memory for the device.
354+
A new device descriptor will be added which will provide the number of bytes of free global memory for the device.
355355

356356
This new device descriptor is only available for devices in the Level Zero platform, and the matching aspect is only true for those devices. The DPC++ default behavior is to expose GPU devices through the Level Zero platform. NOTE: one may need to set
357357
ZES_ENABLE_SYSMAN=1 to fully enable this extension.

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3132,8 +3132,9 @@ pi_result piDeviceGetInfo(pi_device Device, pi_device_info ParamName,
31323132

31333133
case PI_EXT_INTEL_DEVICE_INFO_FREE_MEMORY: {
31343134
if (getenv("ZES_ENABLE_SYSMAN") == nullptr) {
3135-
zePrint("Set ZES_ENABLE_SYSMAN=1 to obtain free memory.\n");
3136-
return PI_ERROR_INVALID_VALUE;
3135+
setErrorMessage("Set ZES_ENABLE_SYSMAN=1 to obtain free memory",
3136+
PI_SUCCESS);
3137+
return PI_ERROR_PLUGIN_SPECIFIC_ERROR;
31373138
}
31383139
uint64_t FreeMemory = 0;
31393140
uint32_t MemCount = 0;

0 commit comments

Comments
 (0)