Scaling NumPy for Large Scale Science: The cuPyNumeric Approach
summary
cuPyNumeric provides a drop-in replacement for NumPy that partitions arrays across CPUs and GPUs, uses Legate/legate-io and Legate sparse, and adds an explicit Python tasks API for per-tile work. Code changes (replace Python lists with NumPy arrays, remove small-loop kernels and avoid advanced indexing) speed original NumPy by ~2x; a pipeline that took seven months of post-run analysis now runs in ~24 hours and a 17‑minute single‑CPU compute scales to 128 GPUs in ~1 second using 16x16 tiles.
AI-written summary · about
