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

How to make fftw2xf for intel fortran compiler without intel c compiler?

andersartig
Beginner
549 Views
Hello

How i can make the lib fftw2xf without the intel c compiler for the intel fortran compiler?

If i use the flag compiler=gnu (the only c compiler at the system) i cannot use the the lib with intel fortran.

With best regards
Axel
0 Kudos
1 Solution
Dmitry_B_Intel
Employee
549 Views
Hi Axel,

The easiest way to fix the problem is to rebuild the libraries thus:
make libem64t compiler=gnu COPTS=-U_GNU

This will not add the second underscore.

Thanks
Dima

View solution in original post

0 Kudos
4 Replies
Gennady_F_Intel
Moderator
549 Views
Axel,
I quite don't understand -What is the symptoms of the problem (I cannot use the lib with intel fortran)?
Did you were able to buildfftw2xf_intel.a by using gcc?
--Gennady
0 Kudos
mecej4
Honored Contributor III
549 Views
Please provide details on which versions of tools and sources you are using, and the OS.

The build on Suse 11.3 posed no problems, using the sources provided in the mkl sub-directory of the IFort installagion.

make lib64 compiler=gnu MKLROOT=/mkl/ # for 64 bit OS, IFORT and GCC

or

make lib32 compiler=gnu MKLROOT=/mkl/# for 32 bit OS, IFORT and GCC

will build the library.

If you want to develop the 32-bit library on a 64-bit OS, using IFORT and GCC, you need to add this line to the makefile:

_cflags_gnu_32 = -m32 # CNXS

I ran one of the examples provided with IFORT ( r2r_1d_redft00_single_ex.f ) with the libraries so produced, and the tests were passed.
0 Kudos
andersartig
Beginner
549 Views
I made the lib with make libem64t compiler=gnu

While linking the lib into the project i got the message:
ipo: warning #11020: unresolved fftwnd_f77_one_

The symbol is at libfftw2xf_gnu.a:
libfftw2xf_gnu.a:fftwnd_f77_one.o:0000000000000000 T fftwnd_f77_one__

But with 2 underscores, so i cannot really use it here (or don't know how with ifort)

With best regards
Axel
0 Kudos
Dmitry_B_Intel
Employee
550 Views
Hi Axel,

The easiest way to fix the problem is to rebuild the libraries thus:
make libem64t compiler=gnu COPTS=-U_GNU

This will not add the second underscore.

Thanks
Dima
0 Kudos
Reply