Hi, I am a newbie to do high-performance-computing using C libraries. I am trying to revive codes inherented from our previous group memeber, at which time oneAPI was not a thing. The core of my problem seems to be how to use mkl to generate random numbers.
I got error messages saying "LNK2019 unresolved external symbol vdRngGaussian referenced in function main".
Any hint where shall I start to track down the problem? Or is there a simple example code I could use to call vdRngGaussian?
I have installed the latest mkl libaries on a windows machine. I am using the visual studio 2019.
链接已复制
You have to instruct the compiler to link the MKL libraries to your objects. If you use the command line, use the /Qmkl option under Windows. If using VS, specify that the MKL libraries are to be used, by clicking the relevant setting in your project options.
You have specified where to find the MKL libraries, but did not specify which one(s) to use.
Hi,
Thanks for pointing out the problem. I thought mkl_sequential.lib is one of the library(ies) that I have specified. But probably, not the one that gives me trouble.