blob: aa96b245b211b83aeaf7199a8aaf147782b86ab3 [file] [log] [blame]
Austin Schuh9049e202022-02-20 17:34:16 -08001#ifndef PARDISOLOADER_H
2#define PARDISOLOADER_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8
9
10/**
11 * Tries to load a shared library with Pardiso.
12 * Return a failure if the library cannot be loaded or not all Pardiso symbols are found.
13 * @param libname The name under which the Pardiso lib can be found, or OSQP_NULL to use a default name (mkl_rt.SHAREDLIBEXT).
14 * @return Zero on success, nonzero on failure.
15 */
16c_int lh_load_pardiso(const char* libname);
17
18/**
19 * Unloads the loaded Pardiso shared library.
20 * @return Zero on success, nonzero on failure.
21 */
22c_int lh_unload_pardiso();
23
24
25#ifdef __cplusplus
26}
27#endif
28
29#endif /*PARADISOLOADER_H*/