- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
nmake dllia32 precision=MKL_DOUBLE
Then, build the example using the makefile again or, for just one example,
ifort /Qmkl real_1d_double_ex1.f mkl_fftw_examples_support.f fftw2xf_intel.lib
If you are building with the IDE, make corresponding changes to your project configuration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
GTA wrote:
Okay, so I've just acquired the Intel demo versions of all the compilers and I am still running into the same problem. Here is an example of how I call FFTW in my program and my apologies for what is going to be a long post:
module module_Name
implicit none
include 'fftw_f77.i'subroutine foo(variables)
!-------------------------------------------------------------------
implicit none
!variables
...code...call fftw_f77_create_plan(fft_plan, nxyz(1), FFTW_FORWARD, FFTW_ESTIMATE)
call fftw_f77_one(fft_plan, xgaussinv, temp)
xgaussinv = 1.0_dp/temp(0:nxyz(1)-1)
call fftw_f77_destroy_plan(fft_plan)call fftw_f77_create_plan(fft_plan, nxyz(2), FFTW_FORWARD, FFTW_ESTIMATE)
call fftw_f77_one(fft_plan, ygaussinv, temp)
ygaussinv = 1.0_dp/temp(0:nxyz(2)-1)
call fftw_f77_destroy_plan(fft_plan)call fftw_f77_create_plan(fft_plan, nxyz(3), FFTW_FORWARD, FFTW_ESTIMATE)
call fftw_f77_one(fft_plan, zgaussinv, temp)
zgaussinv = 1.0_dp/temp(0:nxyz(3)-1)
call fftw_f77_destroy_plan(fft_plan)deallocate(temp)
return
end subroutine fooAfter examples like this all compiles well and the linker will spits out the following errors:
Linking...
Creating temporary file "RSP1.rsp" with contents
[
/OUT:"Debug\exe.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Program Files\Microsoft HPC Pack 2008 SDK\Lib\i386" /LIBPATH:"C:\Program Files (x86)\Intel\Composer XE 2013\mkl\lib\ia32" /MANIFEST /MANIFESTFILE:"C:\exe.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\\exe.pdb" /SUBSYSTEM:CONSOLE /IMPLIB:"C:\\exe.lib" msmpi.lib msmpifmc.lib fftw2x_cdft_DOUBLE.lib fftw2xf_double_intel.lib "Debug\mpi.obj" "Debug\mod1.obj" "Debug\mod2.obj" ... other mod.obj files
]
Creating command line "Link @"C:\\RSP1.rsp""Link: executing 'link'
mod29.obj : error LNK2019: unresolved external symbol _FFTW_F77_CREATE_PLAN referenced in function mp_COMPUTE_INV_GAUSSIAN
mod29.obj : error LNK2019: unresolved external symbol _FFTW_F77_ONE referenced in function A_mp_COMPUTE_INV_GAUSSIAN
mod29.obj :error LNK2019:unresolved external symbol _FFTW_F77_DESTROY_PLAN referenced in function A_mp_COMPUTE_INV_GAUSSIAN
nfield_corr9.obj : error LNK2001: unresolved external symbol _FFTW_F77_DESTROY_PLAN
mod29.obj : error LNK2019: unresolved external symbol _FFTWND_F77_MPI referenced in function A_mp_PRE_FFT_MAT
solver_v20timed.obj : error LNK2001: unresolved external symbol _FFTWND_F77_MPI
mod29.obj :error LNK2019:unresolved external symbol _FFTWND_F77_MPI_CREATE_PLAN referenced in function A_mp_CREATE_FFT_PLANS
mod29.obj : error LNK2019:unresolved external symbol _FFTWND_F77_MPI_LOCAL_SIZES referenced in function A_mp_CREATE_FFT_PLANS
nfield_corr9.obj : error LNK2019: unresolved external symbol _FFTWND_F77_CREATE_PLAN referenced in function _CORRECT_NFIELD_NFIELD_CORRECT_mp_PREPARE_FFT_PLANS
nfield_corr9.obj : error LNK2019: unresolved external symbol _FFTWND_F77_ONE referenced in function _CORRECT_NFIELD_NFIELD_CORRECT_mp_PREPARE_GREENS_FUNC
Debug\exe.exe : fatal error LNK1120: 8 unresolved externalsexe - 11 error(s), 0 warning(s)
I have got the same problem with you.I have build the lib and use them in the configuration,but it still come up with "unresolved external symbol..." .'fftw_f77.i' is also included.
Do you have any idea about this?Waiting for your response.Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posting excerpts does not suffice to elicit help with non-functioning code, because it is often likely that the parts left out are responsible for the problems.
FFTW is a third party library. Recognizing that it is often used and that MKL contains the capabilities needed to support FFTW calls, Intel provides source codes to build wrapper libraries. The wrapper libraries, themselves, are not provided with MKL.
Please take the actions recommended in response #2 as a first step.

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