Skip to main content

Grunnur, a base layer for GPGPU

pypi package License Docs Coverage Code style: black

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.

Metadata

Release files for grunnur 0.6.0

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

Source distribution (sdist)

Source distribution for grunnur 0.6.0
File Size Uploaded
grunnur-0.6.0.tar.gz 115.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for grunnur 0.6.0
File Interpreter ABI Platform
grunnur-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 200.7 kB

Release files / grunnur-0.6.0.tar.gz

Download URL grunnur-0.6.0.tar.gz
Size 115.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2736168585c8935018630efc7ea3cf0f15b2beab698e24c1bfdfb4990c02f446
BLAKE2b-256 checksum
How to use checksums
aadf5bd6ec9a807d1a84e60a8bd79bc721e906a2ab75a200730dbf699d206e61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.10

Release files / grunnur-0.6.0-py3-none-any.whl

Download URL grunnur-0.6.0-py3-none-any.whl
Size 85.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ddf37f04fa57f9e743ac0380f3c4f2e09937ade51c915f0d71d71490e2694041
BLAKE2b-256 checksum
How to use checksums
0f3b01ea886f0097b4f6ed18e2a38942e7d2e1a1db74f83f62e34428fbfcc3e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.10

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

1 release file

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

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