At 3:51 PM -0800 4/4/02, [EMAIL PROTECTED] wrote:
>On Thursday, April 4, 2002, at 03:40 PM, Martin Costabel wrote:
>
>>Did you look at Jeff Whitaker's fink fftw package description? Reading
>>the file /sw/fink/dists/unstable/main/finkinfo/sci/fftw-2.1.3-9.info,
>>you see that it compiles fftw twice, the second time with the
>>--enable-float flag. It has therefore both the double and single
>>precision libraries.
>>
>
>This is completely tangential... But, does anyone know how to get 
>the double and single precision routines to have different names? I 
>need to use them simultaneously in some of my code. Thanks,
>
>--shiv--
>

The fftw manualsays it can't be done (however, I see no reason why 
you couldn't do it by hand).  From the manual...

<Begin FFTW Manual snippet>

**Installing FFTW in both single and double precision

It is often useful to install both single- and double-precision 
versions of the FFTW libraries on the same machine, and we provide a 
convenient mechanism for achieving this on Unix systems.

When the --enable-type-prefix option of configure is used, the FFTW 
libraries and header files are installed with a prefix of `d' or `s', 
depending upon whether you compiled in double or single precision. 
Then, instead of linking your program with -lrfftw -lfftw, for 
example, you would link with -ldrfftw -ldfftw to use the 
double-precision version or with -lsrfftw -lsfftw to use the 
single-precision version. Also, you would #include <drfftw.h> or 
<srfftw.h> instead of <rfftw.h>, and so on.

The names of FFTW functions, data types, and constants remain 
unchanged! You still call, for instance, fftw_one and not dfftw_one. 
Only the names of header files and libraries are modified. One 
consequence of this is that you cannot use both the single- and 
double-precision FFTW libraries in the same program, simultaneously, 
as the function names would conflict.

So, to install both the single- and double-precision libraries on the 
same machine, you would do:

./configure --enable-type-prefix [ other options ]
make
make install
make clean
./configure --enable-float --enable-type-prefix [ other options ]
make
make install

<End FFTW Manual snippet>


Sorry,

Ken Prager

_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to