Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
6981 Discussions

Newbie: How to include the functions in MKL to my program?

myang
Beginner
298 Views
I just installed MKL 7.0.
I'm trying to use some random generators of MKL in my program.
I add one line "include 'mkl_vsl.fi'" in the beginning of my program, but it can't find this file. Then I add total path in front of it but it return with some other strange errors.
So I think my question is what I should do to my program and some other stuff to use the functions in the library. I've gone througth the manual for MKL but nothing is talked about this.
Thanks in advance!
0 Kudos
2 Replies
Todd_R_Intel
Employee
298 Views

I usually include the header in my sourcejust as you did at first (#include "mkl.h") then specify the directory on the build line (e.g., icc -I/opt/intel/mkl/8.0/include ...). To understand what your second problem is I'dhave to hear the error message.

Two otheravenues for finding the problem: Submit a issue at Premier Support, or look at theVSL example code in the examples/vslcsub-directory.

-Todd

0 Kudos
myang
Beginner
298 Views
Thanks! I solve the problem.
0 Kudos
Reply