pardiso_loader.h 645 B

1234567891011121314151617181920212223242526272829
  1. #ifndef PARDISOLOADER_H
  2. #define PARDISOLOADER_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /**
  7. * Tries to load a shared library with Pardiso.
  8. * Return a failure if the library cannot be loaded or not all Pardiso symbols are found.
  9. * @param libname The name under which the Pardiso lib can be found, or OSQP_NULL to use a default name (mkl_rt.SHAREDLIBEXT).
  10. * @return Zero on success, nonzero on failure.
  11. */
  12. c_int lh_load_pardiso(const char* libname);
  13. /**
  14. * Unloads the loaded Pardiso shared library.
  15. * @return Zero on success, nonzero on failure.
  16. */
  17. c_int lh_unload_pardiso();
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif /*PARADISOLOADER_H*/