[llvm] [OFFLOAD] Make L0 provide more information about device to be consistent with other plugins (PR #172946)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 18 19:28:56 PST 2025
https://github.com/fineg74 created https://github.com/llvm/llvm-project/pull/172946
Update information about devices provided by level zero plugin in order to be more consistent with other plugins.
>From 96cecdc87812831c3c30a6e9e73fe87c08370133 Mon Sep 17 00:00:00 2001
From: "Fine, Gregory" <gregory.fine at intel.com>
Date: Thu, 18 Dec 2025 19:26:08 -0800
Subject: [PATCH] Make L0 provide more information about device to be
consistent with other plugins
---
offload/plugins-nextgen/level_zero/src/L0Device.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/offload/plugins-nextgen/level_zero/src/L0Device.cpp b/offload/plugins-nextgen/level_zero/src/L0Device.cpp
index 4827eb3996768..ef4672987c307 100644
--- a/offload/plugins-nextgen/level_zero/src/L0Device.cpp
+++ b/offload/plugins-nextgen/level_zero/src/L0Device.cpp
@@ -547,6 +547,7 @@ Expected<InfoTreeNode> L0DeviceTy::obtainInfoImpl() {
InfoTreeNode Info;
Info.add("Device Number", getDeviceId());
Info.add("Device Name", getNameCStr(), "", DeviceInfo::NAME);
+ Info.add("Product Name", getNameCStr(), "", DeviceInfo::PRODUCT_NAME);
Info.add("Device Type", "GPU", "", DeviceInfo::TYPE);
Info.add("Vendor", "Intel", "", DeviceInfo::VENDOR);
Info.add("Vendor ID", getVendorId(), "", DeviceInfo::VENDOR_ID);
@@ -581,7 +582,8 @@ Expected<InfoTreeNode> L0DeviceTy::obtainInfoImpl() {
MaxSize.add("y", getMaxGroupSizeY() * getMaxGroupCountY());
MaxSize.add("z", getMaxGroupSizeZ() * getMaxGroupCountZ());
- Info.add("Local memory size (bytes)", getMaxSharedLocalMemory());
+ Info.add("Local memory size (bytes)", getMaxSharedLocalMemory(), "",
+ DeviceInfo::WORK_GROUP_LOCAL_MEM_SIZE);
Info.add("Global memory size (bytes)", getGlobalMemorySize(), "",
DeviceInfo::GLOBAL_MEM_SIZE);
Info.add("Cache size (bytes)", getCacheSize());
More information about the llvm-commits
mailing list