8 Commits

Author SHA1 Message Date
Maksim Levental
ad5be31c30
[mlir][Python] fix NV examples after #172892 (#174481) 2026-01-05 21:47:35 +00:00
Vijay Kandiah
db4e6e6911
[NVGPU] Disable nvdsl lit tests if python bindings not enabled (#170898)
A recent change https://github.com/llvm/llvm-project/pull/167321 enabled
nvdsl examples to be run by default. These examples require MLIR python
bindings to be enabled, and this PR makes sure they're skipped if
`config.enable_bindings_python` is not enabled.
2025-12-05 12:36:30 -06:00
Giacomo Castiglioni
9f422915c7
[NVGPU] Fix nvdsl examples - take 2 (#167321)
This PR re-lands https://github.com/llvm/llvm-project/pull/156830

This PR aims at fixing the nvdsl examples which got a bit out of sync
not being tested in the CI.

The fixed bugs were related to the following PRs:
- move to nanobind #118583
- split gpu module initialization #135478
- gpu dialect python API change #163883
2025-12-04 19:43:17 +05:30
Mehdi Amini
037fd30562
Revert "[NVGPU] Fix nvdsl examples" (#166943)
Reverts llvm/llvm-project#156830

This broke the bots.
2025-11-07 15:36:44 +01:00
Giacomo Castiglioni
299df7ed25
[NVGPU] Fix nvdsl examples (#156830)
This PR aims at fixing the nvdsl examples which got a bit out of sync
not being tested in the CI.

The fixed bugs were related to the following PRs:
- move to nanobind #118583
- split gpu module initialization #135478
2025-11-07 16:23:08 +05:30
Guray Ozen
f8ff909471
[mlir][gpu] Add py binding for AsyncTokenType (#96466)
The PR adds py binding for `AsyncTokenType`
2024-06-24 11:39:22 +02:00
Guray Ozen
51752ed0dd [mlir][nvgpu] verify the module 2024-05-28 21:17:31 +02:00
Guray Ozen
4d3308202e
[mlir][nvgpu] NVGPU Tutorials (#87065)
I have a tutorial at EuroLLVM 2024 ([Zero to Hero: Programming Nvidia
Hopper Tensor Core with MLIR's NVGPU
Dialect](https://llvm.swoogo.com/2024eurollvm/session/2086997/zero-to-hero-programming-nvidia-hopper-tensor-core-with-mlir's-nvgpu-dialect)).
For that, I implemented tutorial codes in Python. The focus is the nvgpu
dialect and how to use its advanced features. I thought it might be
useful to upstream this.

The tutorial codes are as follows:
- **Ch0.py:** Hello World
- **Ch1.py:** 2D Saxpy
- **Ch2.py:** 2D Saxpy using TMA
- **Ch3.py:** GEMM 128x128x64 using Tensor Core and TMA 
- **Ch4.py:** Multistage performant GEMM using Tensor Core and TMA
- **Ch5.py:** Warp Specialized GEMM using Tensor Core and TMA

I might implement one more chapter:

- **Ch6.py:** Warp Specialized Persistent ping-pong GEMM

This PR also introduces the nvdsl class, making IR building in the
tutorial easier.
2024-04-24 12:00:12 +02:00