<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/mlir/lib/CAPI/Dialect/GPU.cpp, branch users/nico/python-2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[mlir][gpu] Add metadata attributes for storing kernel metadata in GPU objects (#95292)</title>
<updated>2024-08-27T22:44:50+00:00</updated>
<author>
<name>Fabian Mora</name>
<email>fmora.dev@gmail.com</email>
</author>
<published>2024-08-27T22:44:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=016e1eb9c86923bf6a9669697f6be8309d12b78c'/>
<id>016e1eb9c86923bf6a9669697f6be8309d12b78c</id>
<content type='text'>
This patch adds the `#gpu.kernel_metadata` and `#gpu.kernel_table`
attributes. The `#gpu.kernel_metadata` attribute allows storing metadata
related to a compiled kernel, for example, the number of scalar
registers used by the kernel. The attribute only has 2 required
parameters, the name and function type. It also has 2 optional
parameters, the arguments attributes and generic dictionary for storing
all other metadata.

The `#gpu.kernel_table` stores a table of `#gpu.kernel_metadata`,
mapping the name of the kernel to the metadata.

Finally, the function `ROCDL::getAMDHSAKernelsELFMetadata` was added to
collect ELF metadata from a binary, and to test the class methods in
both attributes.

Example:
```mlir
gpu.binary @binary [#gpu.object&lt;#rocdl.target&lt;chip = "gfx900"&gt;, kernels = #gpu.kernel_table&lt;[
    #gpu.kernel_metadata&lt;"kernel0", (i32) -&gt; (), metadata = {sgpr_count = 255}&gt;,
    #gpu.kernel_metadata&lt;"kernel1", (i32, f32) -&gt; (), arg_attrs = [{llvm.read_only}, {}]&gt;
  ]&gt; , bin = "BLOB"&gt;]

```
The motivation behind these attributes is to provide useful information
for things like tunning.

---------

Co-authored-by: Mehdi Amini &lt;joker.eph@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds the `#gpu.kernel_metadata` and `#gpu.kernel_table`
attributes. The `#gpu.kernel_metadata` attribute allows storing metadata
related to a compiled kernel, for example, the number of scalar
registers used by the kernel. The attribute only has 2 required
parameters, the name and function type. It also has 2 optional
parameters, the arguments attributes and generic dictionary for storing
all other metadata.

The `#gpu.kernel_table` stores a table of `#gpu.kernel_metadata`,
mapping the name of the kernel to the metadata.

Finally, the function `ROCDL::getAMDHSAKernelsELFMetadata` was added to
collect ELF metadata from a binary, and to test the class methods in
both attributes.

Example:
```mlir
gpu.binary @binary [#gpu.object&lt;#rocdl.target&lt;chip = "gfx900"&gt;, kernels = #gpu.kernel_table&lt;[
    #gpu.kernel_metadata&lt;"kernel0", (i32) -&gt; (), metadata = {sgpr_count = 255}&gt;,
    #gpu.kernel_metadata&lt;"kernel1", (i32, f32) -&gt; (), arg_attrs = [{llvm.read_only}, {}]&gt;
  ]&gt; , bin = "BLOB"&gt;]

```
The motivation behind these attributes is to provide useful information
for things like tunning.

---------

Co-authored-by: Mehdi Amini &lt;joker.eph@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir][gpu] Add py binding for AsyncTokenType (#96466)</title>
<updated>2024-06-24T09:39:22+00:00</updated>
<author>
<name>Guray Ozen</name>
<email>guray.ozen@gmail.com</email>
</author>
<published>2024-06-24T09:39:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=f8ff9094711b74d3f695f7571f6390f8a481fc52'/>
<id>f8ff9094711b74d3f695f7571f6390f8a481fc52</id>
<content type='text'>
The PR adds py binding for `AsyncTokenType`</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The PR adds py binding for `AsyncTokenType`</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir][python] add binding to `#gpu.object` (#88992)</title>
<updated>2024-04-18T21:31:55+00:00</updated>
<author>
<name>Maksim Levental</name>
<email>maksim.levental@gmail.com</email>
</author>
<published>2024-04-18T21:31:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=6e6da74c8b936e457ca5e56a828823ae6a9f9066'/>
<id>6e6da74c8b936e457ca5e56a828823ae6a9f9066</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir][gpu] Move GPU headers into IR/ and Transforms/</title>
<updated>2022-06-09T22:49:03+00:00</updated>
<author>
<name>Mogball</name>
<email>jeffniu22@gmail.com</email>
</author>
<published>2022-06-09T21:33:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d7ef488bb6914500050dfccf95c793148457e54b'/>
<id>d7ef488bb6914500050dfccf95c793148457e54b</id>
<content type='text'>
Depends on D127350

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D127352
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Depends on D127350

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D127352
</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir][python] Add basic python support for GPU dialect and passes</title>
<updated>2021-04-28T14:52:28+00:00</updated>
<author>
<name>Nicolas Vasilache</name>
<email>nicolas.vasilache@gmail.com</email>
</author>
<published>2021-04-28T13:22:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b87219f77e8b946c03c1aac8c357244ce9e262c6'/>
<id>b87219f77e8b946c03c1aac8c357244ce9e262c6</id>
<content type='text'>
Differential Revision: https://reviews.llvm.org/D101449
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Differential Revision: https://reviews.llvm.org/D101449
</pre>
</div>
</content>
</entry>
</feed>
