compiling with mkl in parallel studio 2011

compiling with mkl in parallel studio 2011

Hi,
I did install intel parallel studio 2011 today.

However, I can not compile a simple file involving mkl. Seems that path to mkl library is wrong. Thank you in advance for any help.

#include "stdafx.h"
#include
#include "mkl.h"

int _tmain(int argc, _TCHAR* argv[])
{
int k;
float a1[10];
float a2[10];
for (int k=0;k<10;k++){a1[k]=1.1*k; a2[k]=1.1;}
vsExp(10,a1,a2);
for (int k=0;k<10;k++){printf("%f %f\\n",a1[k],a2[k]);}
scanf ("%d",&k);
return 0;
}

The log file says:

Build Log

Build started: Project: test_mkl_hello, Configuration: Release|Win32

Command Lines

Creating temporary file "C:\\Users\\DUCHKO~1\\AppData\\Local\\Temp\\RSPC9B.bs" with contents
[
/c /O2 /Oi /Qipo /I "C:\\Program Files (x86)\\Intel\\Parallel Studio 2011\\Composer\\MKL\\Include" /I "C:\\Program Files (x86)\\Intel\\Parallel Studio 2011\\Composer\\MKL\\Include\\fftw" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /EHsc /MD /GS /Gy /fp:fast /Yu"StdAfx.h" /Fp"Release/test_mkl_hello.pch" /Fo"Release/" /Fd"Release/vc90.pdb" /W3 /nologo /Zi /Qvc9 /Qlocation,link,"C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\\\bin"
.\\test_mkl_hello.cpp
]
Creating command line "icl.exe "@C:\\Users\\DUCHKO~1\\AppData\\Local\\Temp\\RSPC9B.bs""

Output Window

Compiling with Intel C++ Compiler 12.0.0.063 [IA-32]... (Intel C++ Environment)
test_mkl_hello.cpp
.\\test_mkl_hello.cpp(3): catastrophic error: cannot open source file "mkl.h"
  #include "mkl.h"
                  ^

compilation aborted for .\\test_mkl_hello.cpp (code 4)

Results

Build log was saved at "file://D:\\_Duchkov\\Work\\Collaboration\\Fredrik\\test_mkl_hello\\test_mkl_hello\\Release\\BuildLog.htm"
test_mkl_hello - 1 error(s), 0 warning(s), 0 remark(s)
4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi,

The Intel Parallel Studio 2011(/Composer 2011) does not include Intel MKL as part of the product. MKL is part of the Intel C++/Fortran Compiler Pro Edition, (the Intel Cluster Toolkit Compiler Edition) and is available as a standalone product by itself also.You may use MKL withStudio 2011/Composer 2011 but it is not included in the Parallel Studio 2011/Composer 2011 product- just FYI.

-regards, Kittur

Have a look there: http://software.intel.com/en-us/forums/showthread.php?t=71016&o=d&s=lr

Maybe this can help you.

Heinz

Anton,please look at these 2 MKL KB articles dedicated the similar issues:

Configuring Intel Fortran in
Microsoft* Visual Studio* to build Intel MKL Applications

and

How to build MKL application in Intel Visual Fotran
(MSVC*2005)
and let us know if it would't help you.

Leave a Comment

Please sign in to add a comment. Not a member? Join today