Loading...
Searching...
No Matches
Runtime configuration

Functions

int gpr_set_linalg_mode (const char *mode)
 Select the distributed factorization: "reproducible" (tile-ordered kernels, the same bits at every rank and thread count; the default) or "library" (ScaLAPACK or SLATE routines with threaded BLAS). The mode also selects the symmetric eigensolver of the HS-SVD kernel factorization. Both modes run Eigen's self-adjoint solver on the host (driver eigen_selfadjoint). "library" uses cuSOLVER at one rank when a GPU is present, and ScaLAPACK pdsyev from order 1 across ranks when unconstrained reductions are enabled. The Cholesky routines of single-process backends do not depend on the mode. GPR_ERR_INVALID_ARG for any other name.
const char * gpr_linalg_mode (void)
 "reproducible" or "library". Never NULL.
int gpr_set_linalg_threads (int threads)
 Dense linear-algebra thread count (>= 1).
int gpr_set_library_serial (int enabled)
 Nonzero selects Eigen's factor and triangular solves for the next train. Zero selects the OpenMP panel kernels. The two one-thread timings are the serial baselines a scaling note reports together.
int gpr_set_training_product (const char *spec)
 Select the product the training matrices use. NULL or "" selects the native backend; "scheme2:fp64[...]" or "scheme2:int8[...]" an in-process Scheme II engine (options :moduli=N :bits=B :provider=mkl|onednn|builtin :library=PATH, :provider=cuda for the device engine); any other string is the path of a library implementing gpr_training_product_*_v1. GPR_ERR_INVALID_ARG for a malformed specification, GPR_ERR_UNSUPPORTED when a library or provider cannot be loaded. On failure the previous selection stays.
int gpr_training_product_configured (void)
 1 when a Scheme II engine or a product library is selected, else 0.
int gpr_check_model_package (const char *path)
 Check that the AOTInductor model package at path (a .pt2) runs on this host's CPU before anything loads it. GPR_SUCCESS when it does or when the file names no instruction set; GPR_ERR_UNSUPPORTED naming the missing extensions otherwise; GPR_ERR_INVALID_ARG when the file cannot be read.

Detailed Description

Function Documentation

◆ gpr_check_model_package()

int gpr_check_model_package ( const char * path)

Check that the AOTInductor model package at path (a .pt2) runs on this host's CPU before anything loads it. GPR_SUCCESS when it does or when the file names no instruction set; GPR_ERR_UNSUPPORTED naming the missing extensions otherwise; GPR_ERR_INVALID_ARG when the file cannot be read.

◆ gpr_linalg_mode()

const char * gpr_linalg_mode ( void )

"reproducible" or "library". Never NULL.

◆ gpr_set_library_serial()

int gpr_set_library_serial ( int enabled)

Nonzero selects Eigen's factor and triangular solves for the next train. Zero selects the OpenMP panel kernels. The two one-thread timings are the serial baselines a scaling note reports together.

◆ gpr_set_linalg_mode()

int gpr_set_linalg_mode ( const char * mode)

Select the distributed factorization: "reproducible" (tile-ordered kernels, the same bits at every rank and thread count; the default) or "library" (ScaLAPACK or SLATE routines with threaded BLAS). The mode also selects the symmetric eigensolver of the HS-SVD kernel factorization. Both modes run Eigen's self-adjoint solver on the host (driver eigen_selfadjoint). "library" uses cuSOLVER at one rank when a GPU is present, and ScaLAPACK pdsyev from order 1 across ranks when unconstrained reductions are enabled. The Cholesky routines of single-process backends do not depend on the mode. GPR_ERR_INVALID_ARG for any other name.

◆ gpr_set_linalg_threads()

int gpr_set_linalg_threads ( int threads)

Dense linear-algebra thread count (>= 1).

◆ gpr_set_training_product()

int gpr_set_training_product ( const char * spec)

Select the product the training matrices use. NULL or "" selects the native backend; "scheme2:fp64[...]" or "scheme2:int8[...]" an in-process Scheme II engine (options :moduli=N :bits=B :provider=mkl|onednn|builtin :library=PATH, :provider=cuda for the device engine); any other string is the path of a library implementing gpr_training_product_*_v1. GPR_ERR_INVALID_ARG for a malformed specification, GPR_ERR_UNSUPPORTED when a library or provider cannot be loaded. On failure the previous selection stays.

◆ gpr_training_product_configured()

int gpr_training_product_configured ( void )

1 when a Scheme II engine or a product library is selected, else 0.