ignis

GPU compute foundation for Ruby on native Windows — the base of the Ignis ecosystem.

Provides a GPU n-dimensional array (Ignis::NDArray), CUDA device/memory management, a runtime kernel compiler (NVRTC) with a batteries-included kernel library, fp16/bf16 conversion (Ignis::Half), and cuBLAS GEMM. No C extensions — libraries bind via FFI and kernels compile at runtime, so gem install needs no compiler or devkit.

require "ignis"
a = Ignis::NDArray.new(shape: [2, 3], dtype: :float32, device_id: 0)
a.from_host([1, 2, 3, 4, 5, 6].map(&:to_f))
# custom CUDA kernels via NVRTC:
k = Ignis.compile_kernel(src, "my_kernel"); k.launch(grid: [..], block: [..], args: [a, ...])

Requires an NVIDIA GPU + CUDA runtime. Ruby ≥ 3.1. MIT.