Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
flydsl, rocm, amd-gpu, gpu-kernels, mlir, kernel-optimization, gemm, lds-optimization ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Python DSL and a MLIR stack for authoring high‑performance GPU kernels with explicit layouts and tiling.
FlyDSL is the Python front‑end of the project: a Flexible Layout Python DSL for expressing tiling, partitioning, data movement, and kernel structure at a high level.
FlyDSL: FlyDSL is powered by the Fly dialect:
an end‑to‑end, MLIR‑native compiler stack for GPU kernels. Its core is the fly dialect—a first‑class
layout IR with explicit algebra and coordinate mapping, plus a composable lowering pipeline to GPU/ROCDL.
python/flydsl/kernels/ (importable as kernels.* from a source checkout; not installed in the wheel)!fly.int_tuple, !fly.layout, !fly.coord_tensor, !fly.memref_mlir)
mlir python wheel is required: MLIR python bindings are included with the FlyDSL package/build artifactsFlyDSL/
├── scripts/ # build & test scripts
│ ├── build_llvm.sh # build LLVM/MLIR from source (applies thirdparty/llvm-extensions)
│ ├── llvm_extension.sh # create/rebase an LLVM extension
│ ├── build.sh # build FlyDSL (C++ + Python bindings)
│ ├── windows/ # build_llvm_windows.ps1, build_windows.ps1: the same on Windows
│ ├── run_tests.sh # run tests
│ └── run_benchmark.sh # run performance benchmarks
├── include/flydsl/ # C++ Fly/FlyROCDL dialect headers
├── lib/ # C++ dialect implementation + Python bindings
├── python/
│ ├── flydsl/ # Python DSL sources
│ │ ├── expr/ # DSL expression API (typing, primitive, derived, arith, gpu, rocdl, math)
│ │ ├── compiler/ # JIT compilation pipeline (ast_rewriter, kernel_function, jit_function, backends/)
│ │ ├── runtime/ # Device runtime (device.py, device_runtime/)
│ │ ├── utils/ # Utilities (env, logger)
│ │ └── autotune.py # Triton-style autotune module
│ └── mlir_flydsl/ # MLIR Python bindings (built, not edited)
├── examples/ # Runnable examples
│ ├── 01-vectorAdd.py # Vector addition with layout algebra
│ ├── 02-tiledCopy.py # Tiled copy with partitioned tensors
│ ├── 03-tiledMma.py # Tiled MMA (GEMM) with MFMA atoms
│ └── 04-preshuffle_gemm.py # Preshuffle GEMM end-to-end example
├── kernels/ # Source-tree GPU kernels (not installed in the wheel)
├── tests/ # All tests (kernels/, mlir/, unit/)
├── CMakeLists.txt # top-level CMake
└── setup.py # Python packaging
pipFor most users, install the published package directly:
python -m pip install flydsl
python -c "import flydsl; print('FlyDSL installed')"
Build from source only if you are developing FlyDSL itself or need a custom MLIR/LLVM build.
Prerequisites for source builds:
cmake (>=3.20), C++17 compiler, optionally ninjananobind, numpy, pybind11 (installed by scripts/build_llvm.sh; install them manually if you skip that step)scripts/build.sh bundles amdgcn/bitcode/*.bc from the ROCm found via
ROCM_PATH/ROCM_ROOT/ROCM_HOME or /opt/rocm, so kernels calling __ocml_* compile wherever the
package is later installed. Override with -DFLYDSL_ROCM_BITCODE_DIR=<dir>; skipping it only means
those kernels need FLYDSL_COMPILE_ROCM_PATH or ROCM_PATH set at compile time.7-day copy clicks
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.