Uniform API for PyOpenCL and PyCUDA.
Project description
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
Built Distribution
File details
Details for the file grunnur-0.1.1.tar.gz
.
File metadata
- Download URL: grunnur-0.1.1.tar.gz
- Upload date:
- Size: 93.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b8d38644a1e9eb767eb4fd960b7830b6ae9ea27c789741f5a438b3a6a7d6ebd |
|
MD5 | 7a31ee0f5a6dcc11b246dce3a0816189 |
|
BLAKE2b-256 | dcfcd2640198d67b7992bfb0ec5329d8479b5f468e1ba5dfbc55ce92d22ae26f |
File details
Details for the file grunnur-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: grunnur-0.1.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ad791fad5b0ceaab7c4384651432ac7810f4b2a3dd852c7de63475660d14b73 |
|
MD5 | 5e515e12b2e8252e0f882c4641c3ef3b |
|
BLAKE2b-256 | 286ae59f7679467292f8d4219776fa609e60b008fd1a49330fd18fbece6a2a9f |