Expecting linear algebra v2 but provider implements v1

(Vladds) #1

Hello team,

I updated one project on W7 x64/VS17/Framework 4.5. from NuGet and I receive an exception from InitializeVerify() when I try to load the MklLinearAlgebraProvider or UseNativeMKL.

MathNet.Numerics (2.62 -> 3.20) (Thanks for correction).
MathNet.Numerics.MKL.Win-x64 (1.4.0 -> 2.2.0);

System.NotSupportedException: ‘MKL Native Provider not compatible. Expecting linear algebra v2 but provider implements v1.’

May I ask for suggestions why I receive this exception ?

Thanks for your attention. I’m looking forward to your suggestions .

(Christoph Rüegg) #2

I assume you mean you upgraded Numerics from v2.6.2 to v3.20.0?

Numerics v3.20.0 fully supports the MKL provider v2.2.0. Unless you have discovered a bug somewhere, it seems to me you’re still effectively running against MKL v1.4.0, which would result exactly in the mentioned exception. Can you verify that indeed the MKL v2.2.0 libraries are loaded into the process, and not the older v1.4.0 ones?

(Vladds) #3

Thank you for your suggestions.
Indeed I had MKL v1.4.0 after the MathNet.Numerics.MKL.Win-x64 package update, and that is why I received that exception.

I solved the issue by re-installing the MathNet.Numerics.MKL.Win-x64 NuGet Package.