Skip to main content

Uniform API for PyOpenCL and PyCUDA.

Project description

Documentation status Tests status Coverage status

What’s with the name?

“Grunnur” means “foundation” in Icelandic.

What does it do?

Grunnur is a thin layer on top of PyCUDA and PyOpenCL that makes it easier to write platform-agnostic programs. It is a reworked cluda submodule of Reikna, extracted into a separate module.

Warning: The current version is not very stable and the public API is subject to change as I’m transferring the functionality from Reikna and extending it to support multi-GPU configurations. Bug reports are welcome, and especially welcome are any suggestions about the public API.

Main features

  • For the majority of cases, allows one to write platform-independent code.

  • Simple usage of multiple GPUs (in particular, no need to worry about context switching for CUDA).

  • A way to split kernel code into modules with dependencies between them (see Modules and Snippets).

  • Various mathematical functions (with complex numbers support) organized as modules.

  • Static kernels, where you can use global/local shapes with any kinds of dimensions without worrying about assembling array indices from blockIdx and gridIdx.

  • A temporary buffer manager that can pack several virtual buffers into the same physical one depending on the declared dependencies between them.

Project details


Download files

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

Source Distribution

grunnur-0.1.0.tar.gz (61.6 kB view details)

Uploaded Source

Built Distribution

grunnur-0.1.0-py2.py3-none-any.whl (68.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file grunnur-0.1.0.tar.gz.

File metadata

  • Download URL: grunnur-0.1.0.tar.gz
  • Upload date:
  • Size: 61.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.5

File hashes

Hashes for grunnur-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d7b399d62c170358f484329da29a88da8827a0cb41bdc669c16ce840533a53df
MD5 def6a96a93ca9f3a3b5aca4ade3be937
BLAKE2b-256 26fcc449e64d9091e3f27e6aeff1bfd05a7721f6aa266b7a27249a6414ec937a

See more details on using hashes here.

File details

Details for the file grunnur-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: grunnur-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 68.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.5

File hashes

Hashes for grunnur-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b704eb8cc9a1fbda0f8bb5a91668dd017790ba53c26142e97ae49d89036d5ae7
MD5 1094a95fda934f83ca47116c7891fc84
BLAKE2b-256 7c81fcdb3819a642d803dee81d51c05f8058bfecf0d3b6a882f344a0ca792951

See more details on using hashes here.

Supported by

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