[Pw_forum] FFTW problem

sprokuda at dnk.ru sprokuda at dnk.ru
Fri Aug 15 09:23:38 CEST 2003


Dear Paolo!

I've reported you aobut my problem with #define FFTW, I had following
compilation error:

> ifc -Vaxlib -O2 -tpp6 -fpp -I/home/sprokuda/PWscf/include/ -D__LINUX
> -D__INTEL - D__FFTW -DFFTW -D"FFTWND_F77_ONE=fftwnd_f77_one"
> -D"FFTW3D_F77_CREATE_PLAN=fftw3 d_f77_create_plan" -D"FFTW_F77=fftw_f77"
> -D"FFTW_F77_CREATE_PLAN=fftw_f77_create _plan" -nomodule -I
> /home/sprokuda/PWscf/Modules -I/home/sprokuda/PWscf/PW -I/ho
> me/sprokuda/PWscf/PH -c cft_3.f90
>    external subroutine CFT_3
>
>   C_POINTER, save :: plan(2,2)
>            ^
> Error 24 at (43:cft_3.f90) : syntax error
you replied :

which version of the code are you using ? the one on the web, the one or 
cvs,...? C_POINTER is defined in include/machine.h

I've modified machine.h as following :

!#if defined(CRAYY) || defined(SGI) || defined(PC) || defined(AIX) || !defined(T3D) //||defined(HITACHI) || defined(SUN)
#define C_POINTER  integer
!#endif

it seems my Linux doesn't understoond "PC", and now I have following
after issuing "make pw" :

cft_3.o: In function `cft_3_':
cft_3.o(.text+0xea): undefined reference to `fftw3d_f77_create_plan_'
cft_3.o(.text+0x118): undefined reference to `fftwnd_f77_one_'
cft_fftw.o: In function `cft_1_':
cft_fftw.o(.text+0x5d): undefined reference to `fftw_f77_create_plan_'
cft_fftw.o(.text+0x80): undefined reference to `fftw_f77_'
cft_fftw.o: In function `cft_1s_':
cft_fftw.o(.text+0x159): undefined reference to `fftw_f77_create_plan_'
cft_fftw.o(.text+0x178): undefined reference to `fftw_f77_'
cft_fftw.o: In function `cft_2_':
cft_fftw.o(.text+0x2db): undefined reference to `fftw_f77_create_plan_'
cft_fftw.o(.text+0x30e): undefined reference to `fftw_f77_'
cft_fftw.o(.text+0x33b): undefined reference to `fftw_f77_create_plan_'
cft_fftw.o(.text+0x392): undefined reference to `fftw_f77_'
cft_fftw.o(.text+0x433): undefined reference to `fftw_f77_create_plan_'
cft_fftw.o(.text+0x48a): undefined reference to `fftw_f77_'
cft_fftw.o(.text+0x4c9): undefined reference to `fftw_f77_create_plan_'
cft_fftw.o(.text+0x4fc): undefined reference to `fftw_f77_'
cft_fftw.o: In function `cft_2s_':
cft_fftw.o(.text+0x68d): undefined reference to `fftw_f77_create_plan_'
cft_fftw.o(.text+0x6c2): undefined reference to `fftw_f77_'
cft_fftw.o(.text+0x6f2): undefined reference to `fftw_f77_create_plan_'
cft_fftw.o(.text+0x750): undefined reference to `fftw_f77_'
cft_fftw.o(.text+0x7f3): undefined reference to `fftw_f77_create_plan_'
cft_fftw.o(.text+0x851): undefined reference to `fftw_f77_'
cft_fftw.o(.text+0x889): undefined reference to `fftw_f77_create_plan_'
cft_fftw.o(.text+0x8be): undefined reference to `fftw_f77_'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/sprokuda/PWscf/PW'
make: *** [pw] Error 2


I was looking for routines and files with name fftw_f77_*, but I've
found nothing (except fftw.f90 in Modules, but there is nothing
relevant). what could be the reason for those errors ?

Best wishes, Sergey Prokudaylo.





More information about the users mailing list