Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Phabricator shutdown timeline

fmorac (Fabian Mora)
User

Projects

User does not belong to any projects.

User Details

User Since
Jan 26 2023, 4:54 AM (35 w, 4 d)

Recent Activity

Sat, Sep 9

fmorac committed rG119c489cc1a0: Reland [mlir][test][gpu] Migrate CUDA tests to the TargetAttr compilation… (authored by fmorac).
Reland [mlir][test][gpu] Migrate CUDA tests to the TargetAttr compilation…
Sat, Sep 9, 5:48 AM · Restricted Project, Restricted Project

Fri, Sep 8

fmorac accepted D152299: [mlir][AMDGPU] Add gfx941 to buffer atomics emulation.
Fri, Sep 8, 2:00 PM · Restricted Project, Restricted Project

Tue, Sep 5

fmorac committed rGd0e6fd99aa95: [mlir] Extend the promise interface mechanism (authored by fmorac).
[mlir] Extend the promise interface mechanism
Tue, Sep 5, 6:56 AM · Restricted Project, Restricted Project
fmorac closed D158464: [mlir] Extend the promise interface mechanism.
Tue, Sep 5, 6:55 AM · Restricted Project, Restricted Project

Mon, Sep 4

fmorac committed rGe22f04b597e0: [mlir][gpu] Fix option parsing in `TargetOptions` (authored by fmorac).
[mlir][gpu] Fix option parsing in `TargetOptions`
Mon, Sep 4, 5:54 PM · Restricted Project, Restricted Project
fmorac closed D159434: [mlir][gpu] Fix option parsing in `TargetOptions`.
Mon, Sep 4, 5:54 PM · Restricted Project, Restricted Project
fmorac updated the diff for D159434: [mlir][gpu] Fix option parsing in `TargetOptions`.

Addressed comments.

Mon, Sep 4, 2:10 PM · Restricted Project, Restricted Project
fmorac added a comment to D158464: [mlir] Extend the promise interface mechanism.

Ping for review.

Mon, Sep 4, 1:51 PM · Restricted Project, Restricted Project
fmorac published D159434: [mlir][gpu] Fix option parsing in `TargetOptions` for review.
Mon, Sep 4, 10:30 AM · Restricted Project, Restricted Project
fmorac accepted D159347: [MLIR] Run the TMA test for sm_90.

LGTM!

Mon, Sep 4, 9:09 AM · Restricted Project, Restricted Project
fmorac added a comment to D159347: [MLIR] Run the TMA test for sm_90.

Adding module=main_kernel is not necessary in --nvvm-attach-target=, that's just to filter to which modules to add the target.

I actually need it to set ptx version. The default version for sm_90 is 7.8, that does not support PTX instructions for TMA. So I set to ptx80+

Mon, Sep 4, 6:33 AM · Restricted Project, Restricted Project
fmorac added a comment to D159347: [MLIR] Run the TMA test for sm_90.

@fmorac I use the gpu-module-to-binary pass, you recently introduced, for mlir->llvm->ptx->cubin, eventually link the hosts llvm (has embedded cubin) by clang to generate the executable. Is this the right way to use your Pass?

I used to run gpu mlir integration tests with mlir-cpu-runner, but I guess gpu-module-to-binary is not compatible with it.

Mon, Sep 4, 4:13 AM · Restricted Project, Restricted Project

Aug 24 2023

fmorac added a comment to D158606: [mlir] mlir-opt: Fix linking after 7c4e8c6a273f2 ..

Ok, the following patch also does the trick:

Aug 24 2023, 11:46 AM · Restricted Project, Restricted Project
fmorac added a comment to D158606: [mlir] mlir-opt: Fix linking after 7c4e8c6a273f2 ..

To avoid increasing binary size the following patch should be enough to fix the issue:

diff --git a/mlir/tools/mlir-opt/mlir-opt.cpp b/mlir/tools/mlir-opt/mlir-opt.cpp
index b47634476c62..5cd1b40ea6c9 100644
--- a/mlir/tools/mlir-opt/mlir-opt.cpp
+++ b/mlir/tools/mlir-opt/mlir-opt.cpp
@@ -276,7 +276,14 @@ int main(int argc, char **argv) {
   DialectRegistry registry;
   registerAllDialects(registry);
   registerAllExtensions(registry);
-  registerAllToLLVMIRTranslations(registry);
+
+  // TODO: Remove these when a more structured extension registration mechanism
+  // is added.
+  registerBuiltinDialectTranslation(registry);
+  registerGPUDialectTranslation(registry);
+  registerLLVMDialectTranslation(registry);
+  registerNVVMDialectTranslation(registry);
+  registerROCDLDialectTranslation(registry);
Aug 24 2023, 5:27 AM · Restricted Project, Restricted Project

Aug 21 2023

fmorac committed rG7c4e8c6a273f: [mlir] Disentangle dialect and extension registrations. (authored by nicolasvasilache).
[mlir] Disentangle dialect and extension registrations.
Aug 21 2023, 5:40 PM · Restricted Project, Restricted Project
fmorac closed D157703: [mlir] Disentangle dialect and extension registrations..
Aug 21 2023, 5:40 PM · Restricted Project, Restricted Project
fmorac added inline comments to D158277: [mlir][gpu] Add the GPU Target Attr trait..
Aug 21 2023, 4:02 PM · Restricted Project, Restricted Project
fmorac updated the diff for D158277: [mlir][gpu] Add the GPU Target Attr trait..

Addressed comments. If this patch D158464 gets through, this diff will be repurposed to use the changes in the aforementioned diff.

Aug 21 2023, 4:02 PM · Restricted Project, Restricted Project
fmorac updated the diff for D157703: [mlir] Disentangle dialect and extension registrations..

Addressed comments.

Aug 21 2023, 3:49 PM · Restricted Project, Restricted Project
fmorac published D158464: [mlir] Extend the promise interface mechanism for review.
Aug 21 2023, 3:46 PM · Restricted Project, Restricted Project
fmorac added inline comments to D157703: [mlir] Disentangle dialect and extension registrations..
Aug 21 2023, 2:08 PM · Restricted Project, Restricted Project
fmorac added inline comments to D157703: [mlir] Disentangle dialect and extension registrations..
Aug 21 2023, 9:17 AM · Restricted Project, Restricted Project
fmorac updated the diff for D157703: [mlir] Disentangle dialect and extension registrations..

Addressed comments.

Aug 21 2023, 9:16 AM · Restricted Project, Restricted Project

Aug 19 2023

fmorac added a comment to D158277: [mlir][gpu] Add the GPU Target Attr trait..

I'm not sure what does the trait provides right now? If you just remove the verifier for ObjectAttr and remove the trait, don't you get basically the same properties?

Aug 19 2023, 3:17 PM · Restricted Project, Restricted Project

Aug 18 2023

fmorac added inline comments to D158277: [mlir][gpu] Add the GPU Target Attr trait..
Aug 18 2023, 2:11 PM · Restricted Project, Restricted Project
fmorac published D158277: [mlir][gpu] Add the GPU Target Attr trait. for review.

This patch also solves the need to add registration calls for Target Attributes in Translation registration, see D157703.

Aug 18 2023, 9:29 AM · Restricted Project, Restricted Project

Aug 15 2023

fmorac updated the diff for D157703: [mlir] Disentangle dialect and extension registrations..

Updated the diff to resolve all the conflicts and additions created by pushing all the commits of the new GPU pipeline.

Aug 15 2023, 8:56 AM · Restricted Project, Restricted Project
fmorac commandeered D157703: [mlir] Disentangle dialect and extension registrations..
Aug 15 2023, 8:46 AM · Restricted Project, Restricted Project

Aug 12 2023

fmorac committed rGd923f4c2d824: [mlir][NVVM|ROCDL] Explicitly construct the return type in loadBitcodeFiles in… (authored by fmorac).
[mlir][NVVM|ROCDL] Explicitly construct the return type in loadBitcodeFiles in…
Aug 12 2023, 5:26 PM · Restricted Project, Restricted Project
fmorac closed D157804: [mlir][NVVM|ROCDL] Explicitly construct the return type in loadBitcodeFiles in (NVVM|ROCDL)Target.
Aug 12 2023, 5:25 PM · Restricted Project, Restricted Project
fmorac updated the diff for D157804: [mlir][NVVM|ROCDL] Explicitly construct the return type in loadBitcodeFiles in (NVVM|ROCDL)Target.

Switched to a single call of std::move

Aug 12 2023, 5:19 PM · Restricted Project, Restricted Project
fmorac added inline comments to D157804: [mlir][NVVM|ROCDL] Explicitly construct the return type in loadBitcodeFiles in (NVVM|ROCDL)Target.
Aug 12 2023, 5:17 PM · Restricted Project, Restricted Project
fmorac published D157804: [mlir][NVVM|ROCDL] Explicitly construct the return type in loadBitcodeFiles in (NVVM|ROCDL)Target for review.
Aug 12 2023, 4:59 PM · Restricted Project, Restricted Project

Aug 11 2023

fmorac committed rGfbbb8adef15c: [mlir][gpu] Add passes to attach (NVVM|ROCDL) target attributes to GPU Modules (authored by fmorac).
[mlir][gpu] Add passes to attach (NVVM|ROCDL) target attributes to GPU Modules
Aug 11 2023, 5:46 PM · Restricted Project, Restricted Project
fmorac closed D157351: [mlir][gpu] Add passes to attach (NVVM|ROCDL) target attributes to GPU Modules.
Aug 11 2023, 5:45 PM · Restricted Project, Restricted Project
fmorac committed rGa7cdea70095f: [mlir][gpu] Add documentation for the new GPU compilation mechanism (authored by fmorac).
[mlir][gpu] Add documentation for the new GPU compilation mechanism
Aug 11 2023, 5:33 PM · Restricted Project, Restricted Project
fmorac closed D157461: [mlir][gpu] Add documentation for the new GPU compilation mechanism.
Aug 11 2023, 5:32 PM · Restricted Project, Restricted Project
fmorac committed rGb43068e8707d: [mlir][gpu] Update GPU translation to accept binaries. (authored by fmorac).
[mlir][gpu] Update GPU translation to accept binaries.
Aug 11 2023, 5:30 PM · Restricted Project, Restricted Project
fmorac closed D154153: [mlir][gpu] Update GPU translation to accept binaries..
Aug 11 2023, 5:29 PM · Restricted Project, Restricted Project
fmorac committed rGfcfeb1e5b3cd: [mlir][gpu] Add GPU target support to `gpu-to-llvm`. (authored by fmorac).
[mlir][gpu] Add GPU target support to `gpu-to-llvm`.
Aug 11 2023, 5:28 PM · Restricted Project, Restricted Project
fmorac closed D154152: [mlir][gpu] Add GPU target support to `gpu-to-llvm`..
Aug 11 2023, 5:27 PM · Restricted Project, Restricted Project
fmorac committed rG43752a2aa31a: [mlir][gpu] Add the `gpu-module-to-binary` pass. (authored by fmorac).
[mlir][gpu] Add the `gpu-module-to-binary` pass.
Aug 11 2023, 5:25 PM · Restricted Project, Restricted Project
fmorac closed D154149: [mlir][gpu] Add the `gpu-module-to-binary` pass..
Aug 11 2023, 5:25 PM · Restricted Project, Restricted Project
fmorac updated the diff for D154149: [mlir][gpu] Add the `gpu-module-to-binary` pass..

Fix patch application.

Aug 11 2023, 4:16 PM · Restricted Project, Restricted Project
fmorac updated the diff for D154149: [mlir][gpu] Add the `gpu-module-to-binary` pass..

Separated gpu-module-to-binary test into 2 tests: nvvm & rocdl.
Also updated lit.cfg.py with:

Aug 11 2023, 4:07 PM · Restricted Project, Restricted Project
fmorac committed rG8ae074b19597: [mlir][gpu] Add the Select Object compilation attribute. (authored by fmorac).
[mlir][gpu] Add the Select Object compilation attribute.
Aug 11 2023, 3:01 PM · Restricted Project, Restricted Project
fmorac closed D154147: [mlir][gpu] Add the Select Object compilation attribute..
Aug 11 2023, 3:00 PM · Restricted Project, Restricted Project
fmorac committed rGa63db3f5f5dc: [mlir][gpu] Modifies `gpu.launch_func` to allow lowering it after gpu-to-llvm. (authored by fmorac).
[mlir][gpu] Modifies `gpu.launch_func` to allow lowering it after gpu-to-llvm.
Aug 11 2023, 2:57 PM · Restricted Project, Restricted Project
fmorac closed D154137: [mlir][gpu] Modifies `gpu.launch_func` to allow lowering it after gpu-to-llvm..
Aug 11 2023, 2:56 PM · Restricted Project, Restricted Project
fmorac committed rG068213130dc5: [mlir][ROCDL] Adds the ROCDL target attribute. (authored by fmorac).
[mlir][ROCDL] Adds the ROCDL target attribute.
Aug 11 2023, 2:48 PM · Restricted Project, Restricted Project
fmorac added a reverting change for rG6a0feb1503e2: [mlir][ROCDL] Adds the ROCDL target attribute.: rG1e77536e1d14: Revert "[mlir][ROCDL] Adds the ROCDL target attribute.".
Aug 11 2023, 12:51 PM · Restricted Project, Restricted Project
fmorac committed rG1e77536e1d14: Revert "[mlir][ROCDL] Adds the ROCDL target attribute." (authored by fmorac).
Revert "[mlir][ROCDL] Adds the ROCDL target attribute."
Aug 11 2023, 12:51 PM · Restricted Project, Restricted Project
fmorac added a reverting change for D154129: [mlir][ROCDL] Adds the ROCDL target attribute.: rG1e77536e1d14: Revert "[mlir][ROCDL] Adds the ROCDL target attribute.".
Aug 11 2023, 12:51 PM · Restricted Project, Restricted Project
fmorac committed rGbf24fb81acf4: [mlir][gpu] Add `gpu.binary` op and `#gpu.object` attribute. (authored by fmorac).
[mlir][gpu] Add `gpu.binary` op and `#gpu.object` attribute.
Aug 11 2023, 12:48 PM · Restricted Project, Restricted Project
fmorac closed D154132: [mlir][gpu] Add `gpu.binary` op and `#gpu.object` attribute..
Aug 11 2023, 12:48 PM · Restricted Project, Restricted Project
fmorac committed rG4760ea029a94: [mlir][gpu] Add the GPU offloading handler attribute interface. (authored by fmorac).
[mlir][gpu] Add the GPU offloading handler attribute interface.
Aug 11 2023, 12:47 PM · Restricted Project, Restricted Project
fmorac closed D154108: [mlir][gpu] Add the GPU offloading handler attribute interface..
Aug 11 2023, 12:46 PM · Restricted Project, Restricted Project
fmorac committed rG6a0feb1503e2: [mlir][ROCDL] Adds the ROCDL target attribute. (authored by fmorac).
[mlir][ROCDL] Adds the ROCDL target attribute.
Aug 11 2023, 12:44 PM · Restricted Project, Restricted Project
fmorac closed D154129: [mlir][ROCDL] Adds the ROCDL target attribute..
Aug 11 2023, 12:44 PM · Restricted Project, Restricted Project
fmorac updated the diff for D154129: [mlir][ROCDL] Adds the ROCDL target attribute..

Addressed the comments.

Aug 11 2023, 12:34 PM · Restricted Project, Restricted Project
fmorac updated the diff for D157351: [mlir][gpu] Add passes to attach (NVVM|ROCDL) target attributes to GPU Modules.

Moved passes to GPU.

Aug 11 2023, 11:36 AM · Restricted Project, Restricted Project
fmorac added inline comments to D157351: [mlir][gpu] Add passes to attach (NVVM|ROCDL) target attributes to GPU Modules.
Aug 11 2023, 11:15 AM · Restricted Project, Restricted Project
fmorac added a comment to D157703: [mlir] Disentangle dialect and extension registrations..

Overall LGTM. My only concern is down-stream users having issues and don't knowing what's happening, because when those registration calls are removed from passes like gpu-to-cubin, they will fail.

Aug 11 2023, 9:19 AM · Restricted Project, Restricted Project
fmorac updated the diff for D157351: [mlir][gpu] Add passes to attach (NVVM|ROCDL) target attributes to GPU Modules.

Addressed the comments.

Aug 11 2023, 4:24 AM · Restricted Project, Restricted Project
fmorac updated the diff for D154153: [mlir][gpu] Update GPU translation to accept binaries..

Removed private lib.

Aug 11 2023, 4:20 AM · Restricted Project, Restricted Project
fmorac updated the diff for D154152: [mlir][gpu] Add GPU target support to `gpu-to-llvm`..

Rebasing.

Aug 11 2023, 4:10 AM · Restricted Project, Restricted Project
fmorac updated the diff for D154149: [mlir][gpu] Add the `gpu-module-to-binary` pass..

Added an assert check for the attribute.
Note: The verifier will also verify that the dyn_cast is valid, as it's a precondition on the elements of the array.

Aug 11 2023, 4:10 AM · Restricted Project, Restricted Project
fmorac updated the diff for D154147: [mlir][gpu] Add the Select Object compilation attribute..

Remove the promised interface, instead use OffloadingTranslationAttrTrait in SelectObjectAttr
and register the interface automatically with the GPUTranslationInterface.

Aug 11 2023, 4:08 AM · Restricted Project, Restricted Project
fmorac updated the diff for D154137: [mlir][gpu] Modifies `gpu.launch_func` to allow lowering it after gpu-to-llvm..

Removing Ods prefix.

Aug 11 2023, 4:06 AM · Restricted Project, Restricted Project
fmorac updated the diff for D154132: [mlir][gpu] Add `gpu.binary` op and `#gpu.object` attribute..

Update the gpu.binary attributes to use OffloadingTranslationAttrTrait
instead of OffloadingLLVMTranslationAttrInterface.

Aug 11 2023, 4:06 AM · Restricted Project, Restricted Project
fmorac updated the diff for D154108: [mlir][gpu] Add the GPU offloading handler attribute interface..

Add the OffloadingTranslationAttrTrait trait. This traits decouples gpu.binary op
from LLVM translation, making gpu.binary usable by other translation mechanisms like SPIRV.

Aug 11 2023, 4:04 AM · Restricted Project, Restricted Project
fmorac updated the diff for D154129: [mlir][ROCDL] Adds the ROCDL target attribute..

Rebasing.

Aug 11 2023, 3:59 AM · Restricted Project, Restricted Project

Aug 10 2023

fmorac added a comment to D152299: [mlir][AMDGPU] Add gfx941 to buffer atomics emulation.

Overall looks good to me, can you add a description & tests for MaxSIOp & MinUIOp?

Aug 10 2023, 6:00 PM · Restricted Project, Restricted Project
fmorac added a reviewer for D156361: [mlir][AMDGPU] Improve BF16 handling through AMDGPU compilation: fmorac.
Aug 10 2023, 7:23 AM · Restricted Project, Restricted Project

Aug 9 2023

fmorac updated the summary of D154152: [mlir][gpu] Add GPU target support to `gpu-to-llvm`..
Aug 9 2023, 7:00 PM · Restricted Project, Restricted Project
fmorac added inline comments to D154108: [mlir][gpu] Add the GPU offloading handler attribute interface..
Aug 9 2023, 6:25 PM · Restricted Project, Restricted Project
fmorac added inline comments to D154137: [mlir][gpu] Modifies `gpu.launch_func` to allow lowering it after gpu-to-llvm..
Aug 9 2023, 6:24 PM · Restricted Project, Restricted Project
fmorac added inline comments to D154153: [mlir][gpu] Update GPU translation to accept binaries..
Aug 9 2023, 6:02 PM · Restricted Project, Restricted Project
fmorac added inline comments to D157351: [mlir][gpu] Add passes to attach (NVVM|ROCDL) target attributes to GPU Modules.
Aug 9 2023, 11:07 AM · Restricted Project, Restricted Project
fmorac added inline comments to D154147: [mlir][gpu] Add the Select Object compilation attribute..
Aug 9 2023, 7:46 AM · Restricted Project, Restricted Project
fmorac updated the diff for D154129: [mlir][ROCDL] Adds the ROCDL target attribute..

Ping for review. Solved merge conflicts.

Aug 9 2023, 7:23 AM · Restricted Project, Restricted Project
fmorac added inline comments to D157461: [mlir][gpu] Add documentation for the new GPU compilation mechanism.
Aug 9 2023, 5:56 AM · Restricted Project, Restricted Project
fmorac updated the diff for D157461: [mlir][gpu] Add documentation for the new GPU compilation mechanism.

Updated the docs with the comments.

Aug 9 2023, 5:56 AM · Restricted Project, Restricted Project

Aug 8 2023

fmorac published D157461: [mlir][gpu] Add documentation for the new GPU compilation mechanism for review.
Aug 8 2023, 5:24 PM · Restricted Project, Restricted Project
fmorac committed rG211c9752c820: [mlir][NVVM] Adds the NVVM target attribute. (authored by fmorac).
[mlir][NVVM] Adds the NVVM target attribute.
Aug 8 2023, 12:22 PM · Restricted Project, Restricted Project
fmorac closed D154117: [mlir][NVVM] Adds the NVVM target attribute..
Aug 8 2023, 12:21 PM · Restricted Project, Restricted Project
fmorac updated the diff for D154117: [mlir][NVVM] Adds the NVVM target attribute..

Fixed merge conflicts with D157183.

Aug 8 2023, 8:19 AM · Restricted Project, Restricted Project
fmorac committed rG895c4ac33fc8: [mlir][Target][LLVM] Adds an utility class for serializing operations to binary… (authored by fmorac).
[mlir][Target][LLVM] Adds an utility class for serializing operations to binary…
Aug 8 2023, 7:49 AM · Restricted Project, Restricted Project
fmorac added a reverting change for rGc8e0364a4336: [mlir][Target][LLVM] Adds an utility class for serializing operations to binary…: rGbc9a3751e803: Revert "[mlir][Target][LLVM] Adds an utility class for serializing operations….
Aug 8 2023, 6:28 AM · Restricted Project, Restricted Project
fmorac committed rGbc9a3751e803: Revert "[mlir][Target][LLVM] Adds an utility class for serializing operations… (authored by fmorac).
Revert "[mlir][Target][LLVM] Adds an utility class for serializing operations…
Aug 8 2023, 6:28 AM · Restricted Project, Restricted Project
fmorac added a reverting change for D154100: [mlir][Target][LLVM] Adds an utility class for serializing operations to binary strings.: rGbc9a3751e803: Revert "[mlir][Target][LLVM] Adds an utility class for serializing operations….
Aug 8 2023, 6:28 AM · Restricted Project, Restricted Project
fmorac committed rG9fa7b9ef21c4: [mlir][gpu] Add target attribute to GPU modules. (authored by fmorac).
[mlir][gpu] Add target attribute to GPU modules.
Aug 8 2023, 6:20 AM · Restricted Project, Restricted Project
fmorac closed D154113: [mlir][gpu] Add target attribute to GPU modules..
Aug 8 2023, 6:19 AM · Restricted Project, Restricted Project
fmorac committed rG86c4dfa209b5: [mlir][gpu] Add GPU target attribute interface. (authored by fmorac).
[mlir][gpu] Add GPU target attribute interface.
Aug 8 2023, 6:11 AM · Restricted Project, Restricted Project
fmorac closed D154104: [mlir][gpu] Add GPU target attribute interface..
Aug 8 2023, 6:11 AM · Restricted Project, Restricted Project
fmorac committed rGc8e0364a4336: [mlir][Target][LLVM] Adds an utility class for serializing operations to binary… (authored by fmorac).
[mlir][Target][LLVM] Adds an utility class for serializing operations to binary…
Aug 8 2023, 6:10 AM · Restricted Project, Restricted Project
fmorac closed D154100: [mlir][Target][LLVM] Adds an utility class for serializing operations to binary strings..
Aug 8 2023, 6:09 AM · Restricted Project, Restricted Project
fmorac updated the diff for D154117: [mlir][NVVM] Adds the NVVM target attribute..

Changed the description of the CMake variable MLIR_ENABLE_NVPTXCOMPILER. Applied clang-format again.

Aug 8 2023, 6:06 AM · Restricted Project, Restricted Project

Aug 7 2023

fmorac published D157351: [mlir][gpu] Add passes to attach (NVVM|ROCDL) target attributes to GPU Modules for review.
Aug 7 2023, 7:32 PM · Restricted Project, Restricted Project
fmorac updated the diff for D154129: [mlir][ROCDL] Adds the ROCDL target attribute..

Adds a couple of syntax tests & fixes a bug not displaying the link option in the attribute.

Aug 7 2023, 7:25 PM · Restricted Project, Restricted Project