Skip to main content

Numba-CUDA-MLIR

Numba-CUDA-MLIR provides a programming model similar to CUDA C++ in Python. It is evolved from Numba-CUDA, and is intended to be compatible with Numba-CUDA kernels.

Numba-CUDA-MLIR aims to interoperate well with existing programming models whilst also allowing experts sufficient control over code generation.

Quick Start

Install with pip:

pip install numba-cuda-mlir[cu13]  # or [cu12] if using CUDA 12

Writing and executing a simple vector add kernel:

import numpy as np
from numba_cuda_mlir import cuda


@cuda.jit
def vector_add(a, b, out):
    i = cuda.grid(1)
    if i < out.shape[0]:
        out[i] = a[i] + b[i]


n = 1_000_000
a = np.ones(n, dtype=np.float32)
b = np.ones(n, dtype=np.float32)
out = np.zeros(n, dtype=np.float32)

threads_per_block = 256
blocks = (n + threads_per_block - 1) // threads_per_block
vector_add[blocks, threads_per_block](a, b, out)

Migration from Numba / Numba-CUDA

Change imports to use the numba_cuda_mlir.cuda package instead of numba.cuda. For example:

from numba import cuda

becomes:

from numba_cuda_mlir import cuda

For the majority of code using Numba-CUDA, this should be a sufficient change to enable the use of Numba-CUDA-MLIR. For code using the extension APIs, modifications will be required as Numba-CUDA-MLIR uses MLIR in its code generation process instead of LLVM IR. See the Migration Guidance in the documentation for further details.

Installation Requirements

  • Python >= 3.11, with:
    • The cuda.core and cuda-bindings packages
    • NumPy >= 1.22
  • CUDA Toolkit components (CUDA Runtime, NVCC, NVRTC, and nvJitLink) installed via pip or a system package manager (Linux).
  • NVIDIA GPU with Compute Capability 7.0 or greater and a compatible driver:
    • >= r525 for CUDA 12.x
    • >= r580 for CUDA 13.x

Python 3.10 is no longer supported; use Python 3.11 or newer.

Installation guidance

For full details of installation methods including from packages and building from source and testing, please see INSTALL.md.

Contributing to Numba-CUDA-MLIR

See the Contribution Guidelines for information on how to set up a development environment and follow the contribution process.

Benchmarks

A small suite of benchmarks can be executed from the source repository by running:

pytest tests/benchmarks/ --benchmark -s

Licensing

Numba-CUDA-MLIR is distributed under the Apache License 2.0.

It incorporates the following third-party projects, each retained under its original license:

  1. numba-cuda — BSD 2-Clause License
  2. cloudpickle — BSD 3-Clause License
  3. appdirs — MIT License
  4. LLVM Project / EUDSL — Apache License 2.0 WITH LLVM-exception

See NOTICE for the full attribution map and per-component locations in this repository, and THIRD-PARTY-LICENSES for the verbatim upstream license texts.

Contributions are accepted under the terms described in CONTRIBUTING.md.

Metadata

Release files for cubie-numba-cuda-mlir 0.6.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for cubie-numba-cuda-mlir 0.6.0.1
File Actions
cubie_numba_cuda_mlir-0.6.0.1-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for cubie_numba_cuda_mlir-0.6.0.1-cp314-cp314-win_amd64.whl
cubie_numba_cuda_mlir-0.6.0.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for cubie_numba_cuda_mlir-0.6.0.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
cubie_numba_cuda_mlir-0.6.0.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.27+ ARM64, Linux glibc 2.28+ ARM64 Details for cubie_numba_cuda_mlir-0.6.0.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
cubie_numba_cuda_mlir-0.6.0.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for cubie_numba_cuda_mlir-0.6.0.1-cp313-cp313-win_amd64.whl
cubie_numba_cuda_mlir-0.6.0.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for cubie_numba_cuda_mlir-0.6.0.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
cubie_numba_cuda_mlir-0.6.0.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.27+ ARM64, Linux glibc 2.28+ ARM64 Details for cubie_numba_cuda_mlir-0.6.0.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
cubie_numba_cuda_mlir-0.6.0.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for cubie_numba_cuda_mlir-0.6.0.1-cp312-cp312-win_amd64.whl
cubie_numba_cuda_mlir-0.6.0.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for cubie_numba_cuda_mlir-0.6.0.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
cubie_numba_cuda_mlir-0.6.0.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.27+ ARM64, Linux glibc 2.28+ ARM64 Details for cubie_numba_cuda_mlir-0.6.0.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
cubie_numba_cuda_mlir-0.6.0.1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for cubie_numba_cuda_mlir-0.6.0.1-cp311-cp311-win_amd64.whl
cubie_numba_cuda_mlir-0.6.0.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for cubie_numba_cuda_mlir-0.6.0.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
cubie_numba_cuda_mlir-0.6.0.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.27+ ARM64, Linux glibc 2.28+ ARM64 Details for cubie_numba_cuda_mlir-0.6.0.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl

Total release size: 407.2 MB

Release files / cubie_numba_cuda_mlir-0.6.0.1-cp314-cp314-win_amd64.whl

Download URL cubie_numba_cuda_mlir-0.6.0.1-cp314-cp314-win_amd64.whl
Size 21.6 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
2cb9973e849128211222a24277d2d080e7de0aee6f8561cdd975820d5aad48e1
BLAKE2b-256 checksum
How to use checksums
9856c2710f484f3f1e8494d2f92009f0dea2b2d2c520f6c1e91d0e961e782960
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / cubie_numba_cuda_mlir-0.6.0.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL cubie_numba_cuda_mlir-0.6.0.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 41.4 MB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c6395aa2efa2cc2e00988638697bd51aa250a44f6143116c253a878bd5a760a3
BLAKE2b-256 checksum
How to use checksums
e9568b8e712b970d580dc09d1ed22efb409137a6db56a008e326677b70bd651d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / cubie_numba_cuda_mlir-0.6.0.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl

Download URL cubie_numba_cuda_mlir-0.6.0.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Size 39.2 MB
Tags CPython 3.14 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
5b3e25baf21339afe121dbfd3a7829594214c2384093749748d225a8603dd4cd
BLAKE2b-256 checksum
How to use checksums
3ca6a802109add5d8588076b0098f854cd64ff0460524949b8a31a7fca6f63e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / cubie_numba_cuda_mlir-0.6.0.1-cp313-cp313-win_amd64.whl

Download URL cubie_numba_cuda_mlir-0.6.0.1-cp313-cp313-win_amd64.whl
Size 21.0 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
784e7332c14b7840500a924dd0597996585bb8b5209619eef073149c9a5d4079
BLAKE2b-256 checksum
How to use checksums
77172f29fb82cd068b2fc8cc5a92bf05b0e62b6a0eda010c359e78aecfe347b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / cubie_numba_cuda_mlir-0.6.0.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL cubie_numba_cuda_mlir-0.6.0.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 41.4 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f6fc22a8461353b8a9ce3a24354e1d92fdb18a0ed9fa6bfbcbc6a12cd44300af
BLAKE2b-256 checksum
How to use checksums
4ab214d31d960d21b681cf2843c04f01d96ceb9041d0f332313e2521a687cbfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / cubie_numba_cuda_mlir-0.6.0.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl

Download URL cubie_numba_cuda_mlir-0.6.0.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Size 39.2 MB
Tags CPython 3.13 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
63b34ab076ecfea69fe580aeb9b16f8a0ce05262f67b085a920ca57b54e97cbb
BLAKE2b-256 checksum
How to use checksums
85a98a57c6f20f616aa3929dd8a20ebf74cce4a9ccb36ac7e5f4f03a0e2944d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / cubie_numba_cuda_mlir-0.6.0.1-cp312-cp312-win_amd64.whl

Download URL cubie_numba_cuda_mlir-0.6.0.1-cp312-cp312-win_amd64.whl
Size 21.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
2f51e10c73e0e49543ae9d4e2e1a6d07337879563d2f54dbe0629f3a7fa78a21
BLAKE2b-256 checksum
How to use checksums
59f86a42504163a17540786516064713d19ce3723073fc72671cb2909cf4751d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / cubie_numba_cuda_mlir-0.6.0.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL cubie_numba_cuda_mlir-0.6.0.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 41.4 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
9a7e97e75abfb41a424fa1590e0020691687d814886fbd3ed4dc950be19addcc
BLAKE2b-256 checksum
How to use checksums
4e01dd24b08de57236078d111ab24785fb0e02f6b872e7c75289ef4191dbab70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / cubie_numba_cuda_mlir-0.6.0.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl

Download URL cubie_numba_cuda_mlir-0.6.0.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Size 39.2 MB
Tags CPython 3.12 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
3b2efe004c65e15357145749202b37994cc9df6df6c54c45e1f2ff6d4d09c371
BLAKE2b-256 checksum
How to use checksums
ceda42797a29cc63d999daac9d933864d7ce5da00a4a3c331268c19d5e0141bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / cubie_numba_cuda_mlir-0.6.0.1-cp311-cp311-win_amd64.whl

Download URL cubie_numba_cuda_mlir-0.6.0.1-cp311-cp311-win_amd64.whl
Size 21.0 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
8b3b37bf754f4f4c4dad65d45b430dc013f5485e2cdcbcf28cc7d39dd2e0186f
BLAKE2b-256 checksum
How to use checksums
43109b16673dea79d62b3651f8b2c5cb7c0369baa58f636c06a8fdf930bb8706
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / cubie_numba_cuda_mlir-0.6.0.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL cubie_numba_cuda_mlir-0.6.0.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 41.4 MB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
718d725479696d1560d8e484d62fa47a72927ccfee41a626a65ca2a42aeeea48
BLAKE2b-256 checksum
How to use checksums
b83edd3d94624e2517716ef8496943955a9c3115b0c83db6b537977c1cd1e6d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / cubie_numba_cuda_mlir-0.6.0.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl

Download URL cubie_numba_cuda_mlir-0.6.0.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Size 39.2 MB
Tags CPython 3.11 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
88b0dea5d487b6b7ef75245c296aac9241bac715762ae77db9042b403a39e8af
BLAKE2b-256 checksum
How to use checksums
f2f4eee9df77826658ffcd639892345b4040bdc788d2523223bfa3455a60a509
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for cubie-numba-cuda-mlir 0.6.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 12 files in this release have been uploaded with provenance metadata.

Select from 12 files

Attestation for cubie_numba_cuda_mlir-0.6.0.1-cp314-cp314-win_amd64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page