Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
6435 Discussions

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

andersartig
Beginner
157 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
157 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

4 Replies
Gennady_F_Intel
Moderator
157 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
mecej4
Black Belt
157 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.
andersartig
Beginner
157 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
Dmitry_B_Intel
Employee
158 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

Reply