[llvm] [offload][l0] Implement context groups and add actual L0 driver version to info (PR #217562)
Jan Trusiłło via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 24 04:49:54 PDT 2026
================
@@ -98,6 +98,11 @@ inline const DeviceInfoProp PropUint32{
inline const DeviceInfoProperties Uint32Properties =
createPropertiesWithSizeContainer(sizeof(uint32_t), PropUint32);
+inline const DeviceInfoProp PropContextGroupIndex{
+ OL_DEVICE_INFO_CONTEXT_GROUP_INDEX};
+inline const DeviceInfoProperties ContextGroupIndexProperties =
----------------
311Volt wrote:
Done. Now that I think about it, we probably need a better model for defining propety metadata. Something like:
```cpp
deviceProperty<PropertyType::Uint32>(OL_DEVICE_INFO_MAX_WORK_GROUP_SIZE, greaterThan(0)),
```
Then you could query property sets by intent, like: `auto NonZeroProperties = queryProperties(DeviceProperties, hasValidation(ValidationKind::GreaterThan));`
It could even be defined in tablegen, it's something to think about for a future PR
https://github.com/llvm/llvm-project/pull/217562
More information about the llvm-commits
mailing list