libsais_create_ctx_omp

Function libsais_create_ctx_omp 

Source
pub unsafe extern "C" fn libsais_create_ctx_omp(
    threads: i32,
) -> *mut c_void
Expand description

Creates the libsais context that allows reusing allocated memory with each parallel libsais operation using OpenMP.In multi-threaded environments, use one context per thread for parallel executions.

§Arguments

  • threads - The number of OpenMP threads to use (can be 0 for OpenMP default).

§Returns

the libsais context, NULL otherwise.