<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic using MKL_INT with fftw3 in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775877#M1029</link>
    <description>Hi Victor, you're right. &lt;BR /&gt;&lt;BR /&gt;I recreated the project from new in VS2010 and used a CLR console, but I dont think that matters.&lt;BR /&gt;&lt;BR /&gt;I found I am using the IPL64 option&lt;BR /&gt;&lt;BR /&gt;Configuration Properties -&amp;gt;&lt;BR /&gt;Intel Performance Libraries -&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Then for &lt;BR /&gt;&lt;BR /&gt;Use ILP64 Interfaces&lt;BR /&gt;&lt;BR /&gt;I selected NO.&lt;BR /&gt;&lt;BR /&gt;This clears down the conversion warnings , thanks.&lt;BR /&gt;&lt;BR /&gt;I'm now left with an fftw error which I remember was solved by an include of the fftw libraries somewhere, just working out where. i.e. the size_t warnings are all for allocating memory to the fft plan.&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;1&amp;gt; AOptionPricer_testcase.cpp&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(467): warning C4244: 'argument' : conversion from 'double' to 'size_t', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(468): warning C4244: 'argument' : conversion from 'double' to 'size_t', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(469): warning C4244: 'argument' : conversion from 'double' to 'size_t', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(470): warning C4244: 'argument' : conversion from 'double' to 'size_t', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(471): warning C4244: 'argument' : conversion from 'double' to 'size_t', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(472): warning C4244: 'argument' : conversion from 'double' to 'size_t', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(473): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(474): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(475): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt; AssemblyInfo.cpp&lt;/P&gt;&lt;P&gt;1&amp;gt; Generating Code...&lt;/P&gt;&lt;P&gt;1&amp;gt; .NETFramework,Version=v4.0.AssemblyAttributes.cpp&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.obj : warning LNK4248: unresolved typeref token (0100001B) for 'fftw_plan_s'; image may not run&lt;/P&gt;&lt;P&gt;1&amp;gt; AOptionPricer_testcase.vcxproj -&amp;gt; c:\users\ianbe\documents\visual studio 2010\Projects\AOptionPricer_testcase\x64\Debug\AOptionPricer_testcase.exe&lt;/P&gt;&lt;P&gt;========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========&lt;/P&gt;</description>
    <pubDate>Mon, 09 Apr 2012 19:16:31 GMT</pubDate>
    <dc:creator>ian_bellinfantie</dc:creator>
    <dc:date>2012-04-09T19:16:31Z</dc:date>
    <item>
      <title>using MKL_INT with fftw3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775867#M1019</link>
      <description>Hi , I'm using MKL with fftw3 to calculate the price of an option. I've converted code from Matlab to C++. The code used to work in VS2008 but I had to upgrade my environment and now I use VS2010 with a new compiler and it no longer works. Environment information is&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;System Type x64-based PC&lt;/P&gt;&lt;P&gt;Processor Intel Core2 Duo CPU P8600 @ 2.40GHz, 2401 Mhz, 2 Core(s), 2 Logical Processor(s)&lt;/P&gt;&lt;P&gt;Intel Parallel Studio XE for Windows* (all tools)&lt;/P&gt;&lt;P&gt;Version 2011 (SP1 Update 2 VS)&lt;/P&gt;&lt;P&gt;Intel Math Kernel Library for Windows* &lt;/P&gt;&lt;P&gt;Version 10.3 (9)&lt;/P&gt;&lt;P&gt;Microsoft Visual Studio 2010&lt;/P&gt;&lt;P&gt;Version 10.0.30319.1 RTMRel&lt;/P&gt;&lt;P&gt;Microsoft .NET Framework&lt;/P&gt;&lt;P&gt;Version 4.0.30319 RTMRel&lt;/P&gt;&lt;P&gt;Intel C++ Composer XE 2011 Update 9 Package ID: w_ccompxe_2011.9.300&lt;/P&gt;&lt;P&gt;Intel C++ Composer XE 2011 Update 9 Integration for Microsoft Visual Studio* 2010, Version 12.1.1109.2010, Copyright 2002-2012 Intel Corporation&lt;/P&gt;&lt;P&gt;Intel Inspector XE 2011 Update 9 &lt;/P&gt;&lt;P&gt;Intel Inspector XE 2011 Update 9, (build 218166), Copyright  2009-2012 Intel Corporation. All rights reserved.&lt;/P&gt;&lt;P&gt;Intel VTune Amplifier XE 2011 Update 8 &lt;/P&gt;&lt;P&gt;Intel VTune Amplifier XE 2011 Update 8, (build 221625), Copyright  2009-2012 Intel Corporation. All rights reserved.&lt;/P&gt;NB. when I look at VS2010 "about" information it does not show the MKL installed. Should it?&lt;BR /&gt;&lt;BR /&gt;The errors coming out from the compilation are all for the use of the MKL_INT declaration of the k variable in the for loop. Example, error is &lt;BR /&gt;&lt;BR /&gt;1&amp;gt;AOptionPricer.cpp(310): warning C4244: 'argument' : conversion from '__int64' to 'const int', possible loss of data&lt;BR /&gt;&lt;BR /&gt;and the related code for this error is&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;for ( MKL_INT k=0 ; k&lt;N&gt;&lt;/N&gt;&lt;/P&gt;&lt;P&gt;complex&lt;DOUBLE&gt; gxc = i*u[0]*y&lt;K&gt; ; &lt;/K&gt;&lt;/DOUBLE&gt;&lt;/P&gt;&lt;P&gt;cA&lt;K&gt;.real = gxc.real() ;&lt;/K&gt;&lt;/P&gt;&lt;P&gt;cA&lt;K&gt;.imag = gxc.imag() ;&lt;/K&gt;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;&lt;BR /&gt;where the line highlighted for this error in VS2010 is &lt;BR /&gt;&lt;BR /&gt;complex&lt;DOUBLE&gt; gxc = i*u[0]*y&lt;K&gt; ;&lt;BR /&gt;&lt;BR /&gt;I am doing complex number arithmetic so need y&lt;K&gt; to be a vector calculation, hence the use of MKL_INT. This used to work, but now still compiles but crashes when run. I had this problem some time ago in vs20008, but corrected it with an updated compiler and I think some compiler options. Now I've updated the compiler and environment again and it does not work any more.&lt;BR /&gt;&lt;BR /&gt;my includes are&lt;/K&gt;&lt;/K&gt;&lt;/DOUBLE&gt;&lt;/P&gt;&lt;P&gt;#include "stdafx.h"&lt;/P&gt;&lt;P&gt;#include "nr3.h"&lt;/P&gt;&lt;P&gt;//#include &lt;MATHIMF.H&gt;&lt;/MATHIMF.H&gt;&lt;/P&gt;&lt;P&gt;#include &lt;MATH.H&gt;&lt;/MATH.H&gt;&lt;/P&gt;&lt;P&gt;#include &lt;VECTOR&gt;&lt;/VECTOR&gt;&lt;/P&gt;&lt;P&gt;#include &lt;IOSTREAM&gt;&lt;/IOSTREAM&gt;&lt;/P&gt;&lt;P&gt;#include &lt;COMPLEX&gt;&lt;/COMPLEX&gt;&lt;/P&gt;&lt;P&gt;#include &lt;STDIO.H&gt;&lt;/STDIO.H&gt;&lt;/P&gt;&lt;P&gt;#include "interp_1d.h"&lt;/P&gt;&lt;P&gt;#include "interp_linear.h"&lt;/P&gt;&lt;P&gt;#include &lt;STDLIB.H&gt;&lt;/STDLIB.H&gt;&lt;/P&gt;&lt;P&gt;#include "fftw3.h"&lt;/P&gt;&lt;P&gt;#include "fftw3_mkl.h"&lt;/P&gt;&lt;P&gt;#include "windows.h"&lt;/P&gt;&lt;P&gt;#include "mkl_service.h"&lt;/P&gt;&lt;P&gt;#include "mkl.h"&lt;/P&gt;&lt;P&gt;#include "mkl_vml.h"&lt;BR /&gt;&lt;BR /&gt;and all are shown as found in vs2010 and as i said i have no link errors, only this conversion error. &lt;BR /&gt;&lt;BR /&gt;I had fixed some of the conversion errors using a static_cast for my call to pow below&lt;/P&gt;&lt;P&gt;for (MKL_INT k=0 ; k&lt;N&gt;&lt;/N&gt;&lt;/P&gt;&lt;P&gt;v=pow(static_cast&lt;DOUBLE&gt;(k),static_cast&lt;DOUBLE&gt;(2.0f)) ; &lt;/DOUBLE&gt;&lt;/DOUBLE&gt;&lt;/P&gt;&lt;P&gt;complex&lt;DOUBLE&gt; yyc = -pi*i*a*v ;&lt;/DOUBLE&gt;&lt;/P&gt;&lt;P&gt;cA&lt;K&gt;.real = yyc.real() ;&lt;/K&gt;&lt;/P&gt;&lt;P&gt;cA&lt;K&gt;.imag = yyc.imag() ;&lt;/K&gt;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;&lt;BR /&gt;but am stuck for a fix for the aforementioned for loop.&lt;BR /&gt;&lt;BR /&gt;Can you please help?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Ian&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2012 07:29:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775867#M1019</guid>
      <dc:creator>ian_bellinfantie</dc:creator>
      <dc:date>2012-04-09T07:29:47Z</dc:date>
    </item>
    <item>
      <title>using MKL_INT with fftw3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775868#M1020</link>
      <description>A warning is not an error. Try running the code to see if it produces correct results regardless of the warning.&lt;BR /&gt;&lt;BR /&gt;It is unlikely that one can help when you show only snippets of code. In particular, you did not display the declarations of of pi, a, v and i.</description>
      <pubDate>Mon, 09 Apr 2012 10:07:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775868#M1020</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-04-09T10:07:30Z</dc:date>
    </item>
    <item>
      <title>using MKL_INT with fftw3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775869#M1021</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please also check consistency of compilation flags and linking line with MKL.&lt;BR /&gt;It looks like you compiled with ILP64.</description>
      <pubDate>Mon, 09 Apr 2012 10:14:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775869#M1021</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2012-04-09T10:14:13Z</dc:date>
    </item>
    <item>
      <title>using MKL_INT with fftw3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775870#M1022</link>
      <description>&lt;P&gt;Hi , it compiles ok, but when the code runs the program crashes. If I use standard C++ int instead of MKL_INT it compiles and runs and produces rubbish. Declarations;&lt;/P&gt;&lt;P&gt;VecDoub y ;&lt;/P&gt;&lt;P&gt;VecDoub u;&lt;/P&gt;&lt;P&gt;complex &lt;DOUBLE&gt; i (0,1) ; &lt;BR /&gt;&lt;BR /&gt;it needs an array for the int for the vector calculations. MKL_INT worked before , but I'm missing something.&lt;/DOUBLE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2012 11:18:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775870#M1022</guid>
      <dc:creator>ian_bellinfantie</dc:creator>
      <dc:date>2012-04-09T11:18:56Z</dc:date>
    </item>
    <item>
      <title>using MKL_INT with fftw3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775871#M1023</link>
      <description>Hi Victor, how would I check this compile option ? Below is my linker command line&lt;BR /&gt;&lt;BR /&gt;/OUT:"C:\Users\ianbe\Documents\Visual Studio 2010\Projects\AOptionPricer\x64\Release\AOptionPricer.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Program Files (x86)\Intel\Composer XE 2011 SP1\mkl\lib" /LIBPATH:"C:\FFTProj\fftw-3.3.1-dll64" "C:\FFTProj\fftw-3.3.1.pl1-dll32\libfftw3-3.lib" "C:\FFTProj\fftw-3.3.1.pl1-dll32\libfftw3f-3.lib" "C:\FFTProj\fftw-3.3.1.pl1-dll32\libfftw3l-3.lib" "C:\FFTProj\fftw-3.3.1-dll64\libfftw3-3.lib" "C:\FFTProj\fftw-3.3.1-dll64\libfftw3f-3.lib" "C:\FFTProj\fftw-3.3.1-dll64\libfftw3l-3.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" /MANIFEST /ManifestFile:"x64\Release\AOptionPricer.exe.intermediate.manifest" /ALLOWISOLATION /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\Users\ianbe\Documents\Visual Studio 2010\Projects\AOptionPricer\x64\Release\AOptionPricer.pdb" /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /PGD:"C:\Users\ianbe\Documents\Visual Studio 2010\Projects\AOptionPricer\x64\Release\AOptionPricer.pgd" /LTCG /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X64 /ERRORREPORT:QUEUE</description>
      <pubDate>Mon, 09 Apr 2012 11:22:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775871#M1023</guid>
      <dc:creator>ian_bellinfantie</dc:creator>
      <dc:date>2012-04-09T11:22:08Z</dc:date>
    </item>
    <item>
      <title>using MKL_INT with fftw3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775872#M1024</link>
      <description>If the error is truly as described, the following may be worth trying:&lt;BR /&gt;&lt;BR /&gt;Replace&lt;BR /&gt;&lt;BR /&gt; v=pow(static_cast&lt;DOUBLE&gt;(k),static_cast&lt;DOUBLE&gt;(2.0f)) ;&lt;BR /&gt;&lt;BR /&gt;by&lt;BR /&gt;&lt;BR /&gt; v = k*k;&lt;BR /&gt;&lt;/DOUBLE&gt;&lt;/DOUBLE&gt;</description>
      <pubDate>Mon, 09 Apr 2012 11:37:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775872#M1024</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-04-09T11:37:56Z</dc:date>
    </item>
    <item>
      <title>using MKL_INT with fftw3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775873#M1025</link>
      <description>Hi mecej4,&lt;BR /&gt;&lt;BR /&gt;thanks for your help, but the code snippet with a present error is&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;for ( MKL_INT k=0 ; k&lt;N&gt;&lt;/N&gt;&lt;/P&gt;&lt;P&gt;complex&lt;DOUBLE&gt; gxc = i*u[0]*y&lt;K&gt; ; &lt;/K&gt;&lt;/DOUBLE&gt;&lt;/P&gt;&lt;P&gt;cA&lt;K&gt;.real = gxc.real() ;&lt;/K&gt;&lt;/P&gt;&lt;P&gt;cA&lt;K&gt;.imag = gxc.imag() ;&lt;/K&gt;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;&lt;BR /&gt;what I said earlier is that I had the same error for the code snippet with pow, but had corrected it with the cast, and showed this as working code. The above code with the complex number is an example of a line that does not work as expected. &lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2012 11:52:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775873#M1025</guid>
      <dc:creator>ian_bellinfantie</dc:creator>
      <dc:date>2012-04-09T11:52:43Z</dc:date>
    </item>
    <item>
      <title>using MKL_INT with fftw3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775874#M1026</link>
      <description>Hi Victor,&lt;BR /&gt;&lt;BR /&gt;here's my C++ command line &lt;BR /&gt;&lt;BR /&gt;/I"C:\Program Files (x86)\Intel\Composer XE 2011 SP1\mkl\include" /I"C:\FFTProj\fftw-3.3.1-dll64" /Zi /nologo /W3 /WX- /O2 /Oi /GL /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /Gm- /EHsc /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Yu"StdAfx.h" /Fp"x64\Release\AOptionPricer.pch" /Fa"x64\Release" /Fo"x64\Release" /Fd"x64\Release\vc100.pdb" /Gd /errorReport:queue</description>
      <pubDate>Mon, 09 Apr 2012 12:00:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775874#M1026</guid>
      <dc:creator>ian_bellinfantie</dc:creator>
      <dc:date>2012-04-09T12:00:25Z</dc:date>
    </item>
    <item>
      <title>using MKL_INT with fftw3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775875#M1027</link>
      <description>&lt;P&gt;MKL_INTis 32-bit intbecause there is no -DMKL_ILP64 in compilation if header &lt;MKL.H&gt; is used.&lt;BR /&gt;Note, fftw interface uses just simple int, not MKL_INT.&lt;BR /&gt;What MKL libraries are used for linkage? I can see just fftw-3.3.1-dll64&lt;BR /&gt;So, could you please prepare isolated testcase to reproduce your problem on our side, including compilation and full link line&lt;/MKL.H&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2012 13:25:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775875#M1027</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2012-04-09T13:25:30Z</dc:date>
    </item>
    <item>
      <title>using MKL_INT with fftw3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775876#M1028</link>
      <description>&lt;P&gt;Ok Victor, &lt;BR /&gt;&lt;BR /&gt;shouldI do this as a win32 or CLR console application?&lt;BR /&gt;i remember when in vs2008, there was a problem making vs2008 64bit aware with the .Net framework installed. i think it all broke when this was upgraded on my laptop. So, does using the system namespace make a difference when compiling with MKL?&lt;BR /&gt;&lt;BR /&gt;I'm using&lt;/P&gt;&lt;P&gt;Intel Math Kernel Library&lt;/P&gt;&lt;P&gt;Intel MKL on IA-32&lt;/P&gt;&lt;P&gt;Intel MKL on Intel 64&lt;/P&gt;&lt;P&gt;Intel Math Kernel Library for Windows* Version 10.3 (9)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Apr 2012 16:29:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775876#M1028</guid>
      <dc:creator>ian_bellinfantie</dc:creator>
      <dc:date>2012-04-09T16:29:37Z</dc:date>
    </item>
    <item>
      <title>using MKL_INT with fftw3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775877#M1029</link>
      <description>Hi Victor, you're right. &lt;BR /&gt;&lt;BR /&gt;I recreated the project from new in VS2010 and used a CLR console, but I dont think that matters.&lt;BR /&gt;&lt;BR /&gt;I found I am using the IPL64 option&lt;BR /&gt;&lt;BR /&gt;Configuration Properties -&amp;gt;&lt;BR /&gt;Intel Performance Libraries -&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Then for &lt;BR /&gt;&lt;BR /&gt;Use ILP64 Interfaces&lt;BR /&gt;&lt;BR /&gt;I selected NO.&lt;BR /&gt;&lt;BR /&gt;This clears down the conversion warnings , thanks.&lt;BR /&gt;&lt;BR /&gt;I'm now left with an fftw error which I remember was solved by an include of the fftw libraries somewhere, just working out where. i.e. the size_t warnings are all for allocating memory to the fft plan.&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;1&amp;gt; AOptionPricer_testcase.cpp&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(467): warning C4244: 'argument' : conversion from 'double' to 'size_t', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(468): warning C4244: 'argument' : conversion from 'double' to 'size_t', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(469): warning C4244: 'argument' : conversion from 'double' to 'size_t', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(470): warning C4244: 'argument' : conversion from 'double' to 'size_t', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(471): warning C4244: 'argument' : conversion from 'double' to 'size_t', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(472): warning C4244: 'argument' : conversion from 'double' to 'size_t', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(473): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(474): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.cpp(475): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data&lt;/P&gt;&lt;P&gt;1&amp;gt; AssemblyInfo.cpp&lt;/P&gt;&lt;P&gt;1&amp;gt; Generating Code...&lt;/P&gt;&lt;P&gt;1&amp;gt; .NETFramework,Version=v4.0.AssemblyAttributes.cpp&lt;/P&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.obj : warning LNK4248: unresolved typeref token (0100001B) for 'fftw_plan_s'; image may not run&lt;/P&gt;&lt;P&gt;1&amp;gt; AOptionPricer_testcase.vcxproj -&amp;gt; c:\users\ianbe\documents\visual studio 2010\Projects\AOptionPricer_testcase\x64\Debug\AOptionPricer_testcase.exe&lt;/P&gt;&lt;P&gt;========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2012 19:16:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775877#M1029</guid>
      <dc:creator>ian_bellinfantie</dc:creator>
      <dc:date>2012-04-09T19:16:31Z</dc:date>
    </item>
    <item>
      <title>using MKL_INT with fftw3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775878#M1030</link>
      <description>yes, this last problem is fixed with including the fftw dll in the link, like I asked the same question 3 years ago :-)&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.dsprelated.com/showmessage/118138/1.php" target="_blank"&gt;http://www.dsprelated.com/showmessage/118138/1.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;but I cant see how to do that in vs2010. i keep getting&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;1&amp;gt;c:\Users\ianbe\documents\visual studio 2010\Projects\AOptionPricer_testcase\AOptionPricer_testcase\libfftw3l-3.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x480&lt;/P&gt;&lt;P&gt;========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========&lt;BR /&gt;&lt;BR /&gt;so back to microsoft for some help.&lt;BR /&gt;&lt;BR /&gt;Anyway, for this thread Victor you gave the correct answer,&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Ian&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2012 20:18:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775878#M1030</guid>
      <dc:creator>ian_bellinfantie</dc:creator>
      <dc:date>2012-04-09T20:18:01Z</dc:date>
    </item>
    <item>
      <title>using MKL_INT with fftw3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775879#M1031</link>
      <description>The MS linker does not directly read and link to a DLL. You need to have the corresponding import library. When you compile and build a DLL from source code, the import library is created along with the DLL. If you obtained the DLL from a different source, they should provide you with the import library, too.</description>
      <pubDate>Mon, 09 Apr 2012 21:29:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775879#M1031</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-04-09T21:29:03Z</dc:date>
    </item>
    <item>
      <title>using MKL_INT with fftw3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775880#M1032</link>
      <description>Thanks, I figured that out, but still stuck with vs2010, as I'm including the fftw3 libs everywhere I can think of, e.g. for c++ , linker and when compiling to list includes I do not see the fftw3 libs at all. So still failing on the fftw error at the moment.&lt;BR /&gt;&lt;BR /&gt;Ian&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;1&amp;gt;AOptionPricer_testcase.obj : warning LNK4248: unresolved typeref token (0100001B) for 'fftw_plan_s'; image may not run&lt;/P&gt;&lt;P&gt;1&amp;gt; AOptionPricer_testcase.vcxproj -&amp;gt; c:\users\ianbe\documents\visual studio 2010\Projects\AOptionPricer_testcase\x64\Debug\AOptionPricer_testcase.exe&lt;/P&gt;&lt;P&gt;========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2012 21:45:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775880#M1032</guid>
      <dc:creator>ian_bellinfantie</dc:creator>
      <dc:date>2012-04-09T21:45:31Z</dc:date>
    </item>
    <item>
      <title>using MKL_INT with fftw3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775881#M1033</link>
      <description>the image error is coming from the CLR defined project I created. I switched back to my original win32 console and then no more of these errors.</description>
      <pubDate>Tue, 17 Apr 2012 12:02:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-MKL-INT-with-fftw3/m-p/775881#M1033</guid>
      <dc:creator>ian_bellinfantie</dc:creator>
      <dc:date>2012-04-17T12:02:40Z</dc:date>
    </item>
  </channel>
</rss>

