Skip to content

Added cupy helpers - #31

Merged
max-models merged 1 commit into
develfrom
add-gpu-helpers
Sep 25, 2026
Merged

max-models merged 1 commit into
develfrom
add-gpu-helpers

Conversation

@max-models

Copy link
Copy Markdown
Owner
  1. xp.get_rng(seed=None) — backend-matching Generator
  2. xp.free_memory() — releases CuPy pool blocks
  3. xp.device_count() — visible CUDA device count
  4. xp.memory_info() — (free, total) GPU memory bytes
  5. PyccelKernel(..., is_array=...) — custom host-array-type predicate
  6. xp.default_float_dtype() — portable float64 dtype
  7. xp.stream() — CUDA stream context manager (no-op on NumPy)
  8. xp.pin_memory(array) — pinned host memory allocation
  9. xp.set_device_for_rank(rank, devices_per_node=None) — MPI-rank-to-GPU helper

@max-models
max-models merged commit 0094100 into devel Sep 25, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant