Catalog PyPI
PACKAGE EXPLORERView in registry

adamah

PyPI

GPU Memory & Math Library

Versions collected1
Direct dependencies1From release 3.0.0
Last observed20 Oct, 19:00 UTC

README

Version 3.0.0 documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
3.0.016 Jan 20261

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
sam/adamah

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:00 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:b4ac2aac4d6e32b10adc6bb7095b26c2440b8ff134b0c0c9451ba8907e1bfb86