- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can enable oneMKL in Configuration Properties -> Intel Performance Libraries.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you very much for the hint. This was how I configured the linker when I got this error. Anything wrong you could spot it out?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You have specified where to find the MKL libraries, but did not specify which one(s) to use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can enable oneMKL in Configuration Properties -> Intel Performance Libraries.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page