Help using MKL on Linux #1014
Unanswered
gabfeldman
asked this question in
Q&A
Replies: 1 comment
-
I was investigating this a bit more. Looks like Linux-64 nuget package has file MathNet.Numerics.MKL.dll, when it should have been named libMathNetNumericsMKL.so. This was fixed in December 2021 (see 0cf753c#diff-fa00bca030f848e5fde2ec9a5339b41be51834afbafc421551a5b34c5a2cb846) and later on had one more fix for a typo, but the nuget package (as seen in https://nuget.info/packages/MathNet.Numerics.MKL.Linux-x64/3.0.0) still doesn't have this change. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have an application using MKL on Windows. I'm trying to port it to Linux. I thought it would just be a matter of removing package MathNet.Numerics.MKL.Win-x64 (I'll call it "Win-64" package ahead) and adding package MathNet.Numerics.MKL.Linux-x64 (henceforth Linux-64), but I ran into two problems. I'm not sure how this should work, so here is what I found:
I had to also add package MathNet.Numerics.Providers.MKL. Seems like the Win-x64 package references this one, but not Linux-x64? So when you change from the former to the latter you need to add it yourself. That's easily solved anyway.
While the Win-x64 package contains libMathNetNumericsMKL.dll, which is what MathNet will try to load, the Linux-x64 package does not contain libMathNetNumericsMKL.so which is what MathNet will try to load on Linux. So far the only way I could make it work is building libMathNetNumericsMKL.so myself (as per instructions in https://github.com/mathnet/mathnet-numerics/blob/master/src/NativeProviders/Linux/readme.txt).
So for number 2, is that what's supposed to happen? You have to build the libMathNetNumericsMKL.so yourself?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions