haasad / PyPardiso

Python interface to the Intel MKL Pardiso library to solve large sparse linear systems of equations
BSD 3-Clause "New" or "Revised" License
133 stars 20 forks source link

Change how pypardiso detects the mkl_rt library to fix a breaking change in MKL 2021 on Windows #13

Closed haasad closed 3 years ago

haasad commented 3 years ago

Fixes #12 and https://github.com/brightway-lca/brightway2-calc/issues/36

haasad commented 3 years ago

I guess you can call this a hack :-) I just tried to find a future-proof way that works cross-platform. This will only fail if the library doesn't contain mkl_rt in the name anymore. But it will find things like mkl_rt.3.dll or whatever else it might be renamed to.