ArrayFire is a general-purpose tensor library that offloads numeric work to CPUs, GPUs, and other accelerators through a high-level API.
Overview
ArrayFire simplifies parallel software for technical computing by wrapping data in af::array objects and turning high-level operations into kernels on the chosen device. It targets use from mobile devices through large GPU clusters.
The library bundles hundreds of tensor routines across linear algebra, machine learning, image processing, computer vision, signal processing, statistics, and related areas. Built-in Forge integration supports visualization. Documentation, benchmarks, and language bindings are provided for several ecosystems.
Backends include native CPU plus CUDA, oneAPI, and OpenCL, with cross-platform support described for Windows, Mac, and Linux on CPUs and GPUs from major vendors. Experimental community backends cover Metal on Apple silicon and HIP on AMD ROCm.
Developers install binaries or build from source using project wiki instructions. Official and community language APIs include C++, Python, Rust, and Julia, with additional wrappers in progress.
Key features
- High-level af::array abstraction
- CUDA, OpenCL, and oneAPI backends
- Linear algebra and ML routines
- Image and signal processing
- Built-in Forge visualization
- Multi-language API bindings
- CPU and GPU device range
- Documented performance benchmarks
Use cases
- GPU-accelerated scientific computing
- Image and vision pipelines
- Machine learning prototypes
- Cross-device numeric kernels