Pre-compiles GPU kernels by running tiny dummy operations through each requested backend. Call once before timed work to pay JIT compilation costs upfront. Errors are silently swallowed; warming never alters numerical state.
Arguments
- backend
Character vector of backend names to warm, or
NULLto warm all non-CPU backends currently registered.- ops
Character vector of operation names to trigger. Recognised values:
"matmul","crossprod","tcrossprod","qr","chol","svd","solve".- size
Integer vector of length 2 giving the dimensions
c(nrow, ncol)of the dummy matrices used during warming.- quiet
Logical; suppress progress messages when
TRUE.
Value
An invisible named list, one entry per backend, each a list
with elements warmed (logical) and elapsed_ms
(numeric milliseconds, or NA when unavailable).