Austin Schuh | 9049e20 | 2022-02-20 17:34:16 -0800 | [diff] [blame^] | 1 | #ifndef PARDISOLOADER_H |
| 2 | #define PARDISOLOADER_H |
| 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "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 | */ |
| 16 | c_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 | */ |
| 22 | c_int lh_unload_pardiso(); |
| 23 | |
| 24 | |
| 25 | #ifdef __cplusplus |
| 26 | } |
| 27 | #endif |
| 28 | |
| 29 | #endif /*PARADISOLOADER_H*/ |