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

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

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!

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
TODD R. (Intel)'s picture

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

Thanks! I solve the problem.

Login to leave a comment.