Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
108 Views

Getting started with custom MKL dll

Jump to solution

I have just installed Intel Parallel Studio XE 2020 update 2, and I would like to build a custom dll for MKL. It seems like there may be a problem with installation, and I seem to be pretty clueless. If there is some detailed description that assumes no knowledge, point me at it!

Can I copy the libintel64.sln and supporting folders/files to a location in my user folders? Seems like I should, and it seems bad to alter the files in the installation directory.

I changed the listed library to mkl_intel_ilp64.lib to support the ilp64 interface. Regradless, trying to build I get errors that the libraries can't be found:

Severity Code Description Project File Line Suppression State
Error LNK1104 cannot open file 'mkl_intel_lp64.lib' lp64_parallel C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.2.254\windows\mkl\tools\builder\MSVS_Projects\VS2019\libintel64\lp64_parallel\LINK 1

It appears that the path the libraries depends on a variable MKLROOT. My guess is that it has not been correctly set. How does it get set? Is it part of the initialization process described the Before You Begin document? That is, run psxevars.bat. I need to build both 32- and 64-bit applications, so I ran it twice. Is that OK?

I am using VS 2019 community edition.

0 Kudos

Accepted Solutions
Highlighted
Novice
58 Views

Well, naturally, the answer is simple...

 

I looked again at the MKL documentation, and found this:

"Set the  MKLROOT environment variable with the installation directory of the  Intel® MKL version you are going to use."

So I created the MKLROOT environment variable in the system settings, and guessed that the path I needed is "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.2.254\windows\mklC:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.2.254\windows\mkl". Now I can build the example solution AFTER RESTARTING visual studio.

On to the next problem...

View solution in original post

0 Kudos
1 Reply
Highlighted
Novice
59 Views

Well, naturally, the answer is simple...

 

I looked again at the MKL documentation, and found this:

"Set the  MKLROOT environment variable with the installation directory of the  Intel® MKL version you are going to use."

So I created the MKLROOT environment variable in the system settings, and guessed that the path I needed is "C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.2.254\windows\mklC:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.2.254\windows\mkl". Now I can build the example solution AFTER RESTARTING visual studio.

On to the next problem...

View solution in original post

0 Kudos