Function sxt_init

Source
pub unsafe extern "C" fn sxt_init(config: *const sxt_config) -> c_int
Expand description

Initializes the library.

This should only be called once.

§Arguments:

  • config (in): specifies which backend should be used in the computations. Those available are: SXT_GPU_BACKEND, and SXT_CPU_BACKEND.

§Return:

  • 0 on success; otherwise a nonzero error code