- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, this the first time I’m trying to run C++ code in command line and I need to use mkl.h library. I have downloaded the oneAPI base toolkit but I don't know how to make the command line knows the downloaded library.
I am using terminal on macos system.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for reaching out to us.
You can follow the link line advisor suggestions for successfully compiling and linking your application with MKL.
Link Line advisor tool helps you to get the compiling and linking options with respect to your environment.
Here is the link for the link line advisor tool:
Another way is to simply include the -qmkl option in your command
Reference link:
icpc -qmkl <filename.cpp>
(icpc is the Intel compiler for C++ language and you can get this by downloading oneAPI HPC Toolkit)
Before this, you need to run the setvars.sh script file(command: source /opt/intel/oneapi/setvars.sh) to set the environment variables
Let us know if you face any issues.
Regards,
Vidya.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Reminder:
Could you please provide us with an update regarding the issue? If it is resolved, please confirm whether we can close this thread from our end.
Regards,
Vidya.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
As we haven't heard back from you, we assume that your issue is resolved with the provided information in the previous posts and hence closing this thread. Please post a new question if you need any additional information from Intel as this thread will no longer be monitored.
Regards,
Vidya.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page