Finds, enables, and health-checks an installed GPU backend, then
adopts it as the session default for "fast"-precision work.
On Apple Silicon with amatrix.mlx installed this is usually
unnecessary: MLX probing is on by default and activates on first
use. Call this for the opt-in backends (amatrix.opencl,
amatrix.arrayfire, amatrix.metal), to force a specific
backend, or to get an explicit confirmation line.
Details
GPU backends compute in float32 ("fast" precision, conformance
tolerance ~1e-4); "strict" float64 work always stays on the
CPU reference backend regardless of this setting.
Side effect: on success this sets the session default precision to
"fast" (and, when backend is given explicitly, the
session default policy to that backend) so subsequent matrices route
to the GPU without per-object arguments. Undo with
amatrix_set_default_precision("strict") /
amatrix_set_default_policy("auto").
Examples
status <- amatrix_gpu_status()
if (interactive()) amatrix_use_gpu()