Learn R Programming

edgemodelr (version 0.2.0)

edge_simd_info: Query SIMD optimization status

Description

Reports which SIMD (Single Instruction Multiple Data) features were enabled at compile time. This helps verify that the package is using CPU-optimized code paths for faster inference.

Usage

edge_simd_info()

Arguments

Value

List with:

architecture

CPU architecture (e.g., "x86_64", "aarch64")

compiler_features

Character vector of compiler-detected SIMD features

ggml_features

Character vector of GGML-level optimization flags

is_generic

Logical; TRUE if compiled with generic (scalar) fallback

Examples

Run this code
info <- edge_simd_info()
cat("Architecture:", info$architecture, "\n")
cat("SIMD features:", paste(info$compiler_features, collapse = ", "), "\n")
if (info$is_generic) {
  cat("Running in generic mode. Reinstall with EDGEMODELR_SIMD=AVX2 for better performance.\n")
}

Run the code above in your browser using DataLab