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.7-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.7-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.7-cp312-cp312-macosx_14_0_arm64.whl (48.1 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

docc_ai-0.0.7-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.7-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.7-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.7-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for docc_ai-0.0.7-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c63a4167b4f6ba4902e4cef4620c2fe7e1e13f2109c06cc73570bca2cf1f05b5
MD5 c7876e853d04530a9e7590f05f04bf8e
BLAKE2b-256 9e63103441dba7b3063fe846507734ef2f98089227a864a74de2c5969fc1e103

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for docc_ai-0.0.7-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4e704abe63a74c185815d9427ed2bec45e9508350ad802bf24f873513d643466
MD5 db74f81f2f6f87080849724328967428
BLAKE2b-256 1d736ef12f8545cfcf5d8592bc5faec8cd27f2b8318f78900e0ef5c27600e3ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for docc_ai-0.0.7-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 8fd3e792cb40a37c27d54ca093bc1ba2979be30c2f5c7df056621cf143b294c8
MD5 d0b3535c30a350539dae489dbf468297
BLAKE2b-256 da2b1089b42b26d6fa154845bfe2b5f780b22b42bf9d939420d284c2163358b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for docc_ai-0.0.7-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cd25c35ea5c4acf66fb5a3d4699d16a8402f4b77271ceab63880e1a1ae8270fe
MD5 8a7100719b4708c6239967b29cdbe568
BLAKE2b-256 f23d68c897717825f4dbf353e9e436a3d3ea37e68530964ee9877b8083c5ca68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for docc_ai-0.0.7-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e6952745bd9d7830f04ce1a4a5ab1601db6d765732b7098ccbeb8fd0884a65bd
MD5 8367bb6fd420765b62dc1abd71363d02
BLAKE2b-256 238f4d7aff0400bef7bb03e561e51129dd7e15f9121f7a8dc65bafa654eea162

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for docc_ai-0.0.7-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ab9092bb148a0dd893852d63d142adcc6c50ae14e95038432f8993db46d256be
MD5 e76f794e42f47016d675fab6c7ed3bc1
BLAKE2b-256 a68eaf0c76113580eb512bb72f938aa4e3276ff28a00342b7761c062baa69667

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