Fast Numerical Computing and Deep Learning in Ruby with Cumo
summary
A Ruby extension named Cumo implements CUDA-backed arrays, JIT-compiles user kernels and caches them to disk, and plugs into cuBLAS for dense ops. It builds a best-fit GPU memory pool with splitting and merging to avoid host–device synchronization. Measured speedups include 40× element-wise operations, 158× dot and going from 20× to 75× speedup for a Ruby DNN (red-chainer) when the pool is enabled. GC interaction requires explicit free calls today.
AI-written summary · about
chapters (10)
- 0:00Introduction to Cumo
- 2:31Why Cumo was needed
- 5:28Basics of CUDA programming
- 9:05Cumo's features and compatibility
- 15:01Memory pool implementation
- 18:18Just-in-time compilation
- 20:31Insights from development
- 27:35Challenges in numerical operations
- 29:23Future plans and improvements
- 30:29Summary and acknowledgments
related talks
23mHigh Performance GPU Computing with Ruby
36mRuby Supercomputing: Using The GPU For Massive Performance Speedup
39mAccelerated Data Science Libraries
39mProgress of Ruby/Numo: Numerical Computing for Ruby
02h 55mGPU Accelerated Python w: CUDA
23mSpeeding up NMatrix by 100x
25mScale Smarter, Not Harder, with cuPyNumeric.
01h 29mGPU development with Python 101
