Skip to main content

Python bindings and MLIR conversion for JIT compiling PyTorch models to SDFGs.

Project description

MLIR

The MLIR module contains a dialect and translation of core MLIR dialects to SDFGs.

  • SDFG Dialect: A dialect to represent SDFGs in MLIR.
  • Conversion: Conversion passes to convert core dialects (arith, linalg, etc.) to the SDFG dialect.
  • Translate: A translation pass to dump an SDFG from the SDFG dialect.

Build from Sources

To build the MLIR component from source install LLVM/MLIR dependencies first:

sudo apt-get install -y libmlir-19 libmlir-19-dev mlir-19-tools

Second, build from the root of the repository using cmake:

mkdir build && cd build
cmake -G Ninja \
    -DCMAKE_C_COMPILER=clang-19 \
    -DCMAKE_CXX_COMPILER=clang++-19 \
    -DCMAKE_BUILD_TYPE=Debug \
    -DMLIR_BUILD_FRONTEND=ON \
    -DMLIR_BUILD_TESTS=ON \
    -DMLIR_DIR=/usr/lib/llvm-19/lib/cmake/mlir \
    -DLLVM_EXTERNAL_LIT=/usr/lib/llvm-19/build/utils/lit/lit.py \
    -DWITH_SYMENGINE_THREAD_SAFE=ON \
    -DWITH_SYMENGINE_RCP=ON \
    -DINSTALL_GTEST=OFF \
    -DBUILD_TESTS:BOOL=OFF \
    -DBUILD_BENCHMARKS:BOOL=OFF \
    -DBUILD_BENCHMARKS_GOOGLE:BOOL=OFF \
    ..
ninja -j$(nproc)

To verify, the basic dialects and translation work, run the tests:

ninja check-docc-mlir

License

This component is part of docc and is published under the BSD-3-Clause license. See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

docc_ai-0.0.8-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

docc_ai-0.0.8-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (15.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

docc_ai-0.0.8-cp312-cp312-macosx_14_0_arm64.whl (48.1 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

docc_ai-0.0.8-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

docc_ai-0.0.8-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (15.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

docc_ai-0.0.8-cp311-cp311-macosx_14_0_arm64.whl (48.1 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

File details

Details for the file docc_ai-0.0.8-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for docc_ai-0.0.8-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4cc168f9c3a9528fc4fab14f9550c5d9faa4b058e1b2b4f5419deed950b22110
MD5 4d61616982530f1789c04210ad8376a5
BLAKE2b-256 535d70469c4c65750b0b0bbcf9dcc9ce4aff007e014218929e2b8c3184b0a8c4

See more details on using hashes here.

File details

Details for the file docc_ai-0.0.8-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for docc_ai-0.0.8-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 25b3a2dabfadf6713acbb7f48c0dd08803393eea861d9f9ec4d8ad69cd44e237
MD5 5b390d5947adfe7588a6cfb1c82d9389
BLAKE2b-256 fda41ae39da95d95cb3d4822afe48e85bacad4949d2c8f2620640b67e54d99bb

See more details on using hashes here.

File details

Details for the file docc_ai-0.0.8-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for docc_ai-0.0.8-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 4db67a8d0dec095cb62e2f10df40814e79c1df4f02f59015e55d68c381f94514
MD5 b05d38eb2e69e60e4de90800b0d3eedb
BLAKE2b-256 7530e74b56126e5868cec81d52c2c0e1217acdd7c990eec27e5fe5c546ca3e1e

See more details on using hashes here.

File details

Details for the file docc_ai-0.0.8-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for docc_ai-0.0.8-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b1c378ba361d301381f965e171ffd8517129bab660a9843f4a09e896a45b64e3
MD5 51a4cdec4e87b43de0806d43cf7ad9db
BLAKE2b-256 07f75051f9c119124b4a94a62e9cacfee65faa198777159dd6e46234351e9e00

See more details on using hashes here.

File details

Details for the file docc_ai-0.0.8-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for docc_ai-0.0.8-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0d534446e729510054494e9a8a812490924eae5f86be469f1e178e1909e1e918
MD5 4a8f627478bf6e4f05b2ebf761a05c79
BLAKE2b-256 de59fcd9dee2c5b374f92d600835e7b291a1a45db3098cb82f7cd04f30c05b46

See more details on using hashes here.

File details

Details for the file docc_ai-0.0.8-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for docc_ai-0.0.8-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 bdcb0f46125ffd2f7646b18692421667eabed0b051260c1993c605256cc55857
MD5 8577ab6ed5a37434850bf927526cca3a
BLAKE2b-256 4fdac7f8aa429859f03f61aef7463e486dec2e00ad7a63a011e781fc43c322c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page