[Mlir-commits] [mlir] Reimplementing target description concept using DLTI attribute (PR #92138)
Niranjan Hasabnis
llvmlistbot at llvm.org
Wed May 29 23:53:50 PDT 2024
================
@@ -194,6 +194,162 @@ def DataLayoutSpecInterface : AttrInterface<"DataLayoutSpecInterface"> {
}];
}
+def TargetDeviceDescSpecInterface : AttrInterface<"TargetDeviceDescSpecInterface"> {
+ let cppNamespace = "::mlir";
+
+ let description = [{
+ Attribute interface describing a target device description specification.
+
+ A target device description specification is a list of device properties (key)
+ and their values for a specific device. The device is identified using "device_id"
----------------
nhasabni wrote:
Current implementation is based on a design that `device_id` is part of every `TargetDeviceDescSpec`. In other words, every device needs to have a `device_id` (because it is the property of a device). That way we can have a heterogeneous system, consisting of multiple devices. The `TargetSystemDescSpec` only mandates that the `device_id` for every device in the system is unique.
https://github.com/llvm/llvm-project/pull/92138
More information about the Mlir-commits
mailing list