Skip to main content

Python wrapper for Nvidia CUDA

Project description

Gitlab Build Status https://badge.fury.io/py/pycuda.png Zenodo DOI for latest release

PyCUDA lets you access Nvidia’s CUDA parallel computation API from Python. Several wrappers of the CUDA API already exist-so what’s so special about PyCUDA?

  • Object cleanup tied to lifetime of objects. This idiom, often called RAII in C++, makes it much easier to write correct, leak- and crash-free code. PyCUDA knows about dependencies, too, so (for example) it won’t detach from a context before all memory allocated in it is also freed.

  • Convenience. Abstractions like pycuda.driver.SourceModule and pycuda.gpuarray.GPUArray make CUDA programming even more convenient than with Nvidia’s C-based runtime.

  • Completeness. PyCUDA puts the full power of CUDA’s driver API at your disposal, if you wish. It also includes code for interoperability with OpenGL.

  • Automatic Error Checking. All CUDA errors are automatically translated into Python exceptions.

  • Speed. PyCUDA’s base layer is written in C++, so all the niceties above are virtually free.

  • Helpful Documentation.

Relatedly, like-minded computing goodness for OpenCL is provided by PyCUDA’s sister project PyOpenCL.

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.

pycuda_gml-2025.1.2.post1-cp312-cp312-manylinux_2_34_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

pycuda_gml-2025.1.2.post1-cp311-cp311-manylinux_2_34_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

pycuda_gml-2025.1.2.post1-cp310-cp310-manylinux_2_34_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

File details

Details for the file pycuda_gml-2025.1.2.post1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pycuda_gml-2025.1.2.post1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ea5902dd69a814091b35cbb2ea47f81e1d0d472bcafa2a2eb0f3c64e20ed12ff
MD5 7dd8d43c2217c7c30aae0b9d9bb39c08
BLAKE2b-256 ac18325c5a6eb05db6ac30ce986ab54d0703263da5ce3cb009b2127bacc8f54f

See more details on using hashes here.

File details

Details for the file pycuda_gml-2025.1.2.post1-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pycuda_gml-2025.1.2.post1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e392f7dc93318a6cbfd6c7c3f4721b436a7c3b6e69f3caff9fef685a5e4e5684
MD5 8289b62eea597beefafe72321d52a860
BLAKE2b-256 7e37f667e31c97cf459cb9ab4e9c4e475da6598ac74abd3be4e6f4c162c65f40

See more details on using hashes here.

File details

Details for the file pycuda_gml-2025.1.2.post1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pycuda_gml-2025.1.2.post1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 679d3449d2b3fa3176e115b81e96407333ab89e89d768fa06298e7d33654c2a7
MD5 8590f6aa589bd01239941a8a9c894433
BLAKE2b-256 d15af6ac96c3af271db5be34a9ff2cfe757f90568cc6b607f5bd4c3474383164

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