MKL with Intel Parallel Studio XE 2017 - MSB3086 bulid error

(Christoph Rüegg) #1

If you try to build our MKL native providers with the newest Intel MKL distribution with Parallel Studio 2017, you may run into the following error:

error MSB4086: A numeric comparison was attempted on “$(SuiteVer)” that evaluates to “[Intel Compiler is not installed]” instead of a number, in condition “$(SuiteVer) >= 17 OR $(MKLMNewArgFormat) == 1”.

One way to fix this is to make a small change in

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140\ImportBefore\Intel.Libs.MKL.v140.targets

In this file, change <_MKLArgPlatform>ia-32</_MKLArgPlatform> to <_MKLArgPlatform>ia32</_MKLArgPlatform>, and remove the next line.

If someone has a more “correct” solution that does not require to mess with the machine configuration, please let me know.

(Christoph Rüegg) #2

There also seems to be an issue with copying the redist binaries (which now seem to be located in C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist). Maybe we need to update the build script for this.