Skip to main content

ADAMAH

GPU Memory & Math Library - As simple as possible, but complete.

import adamah

adamah.init()
adamah.put("x", [0, 1, 2, 3])
adamah.sin("y", "x", 4)
print(adamah.get("y"))  # [0, 0.841, 0.909, 0.141]
adamah.shutdown()

Install

pip install adamah

Requires: libvulkan-dev (auto-compiles on first use)

Usage

import adamah

# Context manager (recommended)
with adamah.Adamah() as gpu:
    gpu.put("a", [1, 2, 3, 4])
    gpu.put("b", [4, 3, 2, 1])
    gpu.add("c", "a", "b", 4)
    print(gpu.get("c"))  # [5, 5, 5, 5]

# Or functional API
adamah.init()
adamah.put("x", data)
adamah.sin("y", "x", len(data))
result = adamah.get("y")
adamah.shutdown()

Operations

  • Math: sin, cos, tan, exp, log, sqrt, tanh, relu, gelu
  • Ops: add, sub, mul, div, pow
  • Reduce: sum, max, min, mean, prod
  • Calculus: cumsum, diff, integrate, derivative
  • Linear Algebra: dot, matvec, softmax
  • Generators: linspace, arange
  • Sparse: scatter/gather memory maps

License

CC BY-NC 4.0

Metadata

Release files for adamah 3.0.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 adamah 3.0.0
File Size Uploaded Provenance
adamah-3.0.0.tar.gz 10.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 22.2 kB

Release files / adamah-3.0.0.tar.gz

Download URL adamah-3.0.0.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5a18f478d4e422dc0501f64dff3d21fc036559d078160623c00bbdb9c28a7a2a
BLAKE2b-256 checksum
How to use checksums
cb69d55c451d3a9814753a0fd52ffef32b4b97a4c0f8ac8de0e5d25dd064a808
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / adamah-3.0.0-py3-none-any.whl

Download URL adamah-3.0.0-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ea4d2b8a1fc458950fd99fa654e28c40646982e79a47ebe7625fc0143c0bf5e
BLAKE2b-256 checksum
How to use checksums
15c66f3d66b7a7aeee8d8c86ce062303f16a1450478f014b7e1c59a9c4ee1c70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for adamah 3.0.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files No provenance

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