Skip to content

Reactant.jl DocsOptimizing Julia Functions with MLIR

Optimize Julia Functions With MLIR and XLA for High-Performance Execution on CPU, GPU, TPU and more.

Reactant.jl

How to Install Reactant.jl?

Its easy to install Reactant.jl. Since Reactant.jl is registered in the Julia General registry, you can simply run the following command in the Julia REPL:

julia
julia> using Pkg
julia> Pkg.add("Reactant")

If you want to use the latest unreleased version of Reactant.jl, you can run the following command:

julia
julia> using Pkg
julia> Pkg.add(url="https://github.com/EnzymeAD/Reactant.jl")

Select an Accelerator Backend

julia
using Reactant
Reactant.set_default_backend("cpu")
julia
using Reactant
Reactant.set_default_backend("gpu")
julia
using Reactant
Reactant.set_default_backend("tpu")