warp.config.cpu_compiler_flags#
- warp.config.cpu_compiler_flags: str | None = '-march=native -mllvm=-inline-threshold=3000 -mllvm=-inline-cold-callsite-threshold=3000'#
Flags controlling CPU kernel compilation.
The default detects host CPU features and makes LLVM more eager to inline helper calls. Set to
Noneto retain host feature detection and use LLVM’s default inlining thresholds.""compiles for a generic CPU target. A flag string can include-march=native, Clang frontend flags, and LLVM arguments in either-mllvm <option>or-mllvm=<option>form.The
"cpu_compiler_flags"module option replaces this global string for that module. Use"-march=native"to restore LLVM’s default thresholds for one module while retaining host feature detection.Noneat the module level inherits the global setting.The resolved flag string is part of the module cache key. LLVM options are a power-user feature with process-wide caveats; see LLVM Options for CPU Compilation.