Skip to main content

Module cpu

Module cpu 

Source
Expand description

CPU device implementation with selectable JIT backends.

This module provides a Device instance for CPU execution using either:

  • Clang C codegen (default, human-readable, fast debug cycles)
  • LLVM JIT (maximum optimization, slower compilation)

The backend can be selected via:

  • SVOD_CPU_BACKEND environment variable (“clang” or “llvm”)
  • Explicit create_cpu_device_with_backend() call

Enums§

CpuBackend
CPU backend selection.

Functions§

create_cpu_device
Create a CPU device with the default backend.
create_cpu_device_with_backend
Create a CPU device with a specific backend.