Here are my notes concerning the installation of fftw for Gadget-2 :
fftw-2.1.5 (earlier version of fftw were not compatible with mpi)
./configure --prefix=/home/username/local --enable-type-prefix
--enable-mpi --enable-float
make
make install
In the gadget Makefile I have defined :
FFTW_INCL= -I/home/username/local/include
FFTW_LIBS= -L/home/username/local/lib
With these settings, Gadget-2 should run without any problem,
Regards,
Yves
draut2_at_uiuc.edu wrote:
> Changing the flags in makefile didn't work and so I tried to recompile fftw in double precision. The compilation of fftw
> in double precision needed some drfftw_mpi.h and I couldn't find this file suitable for my computer platform. Where can I find one compatible with my laptop? It's an i386 with ubuntu.
> Anyways I compiled fftw with single precision and also Gadget with -NOTYPEPREFIX_FFTW. After this, the code seems to compile and run.
> Thanks.
>
>
> ---- Original message ----
>
>> Date: Fri, 21 Sep 2007 21:20:20 +0200
>> From: Volker Springel <volker_at_MPA-Garching.MPG.DE>
>> Subject: Re: [gadget-list] Illegal Instruction error ...
>> To: Gadget General Discussion <gadget-list_at_MPA-Garching.MPG.DE>
>>
>>
>>
>> Hm, this looks like a problem when calling the FFTW library. Maybe you
>> use the double precision version of the library but gadget thinks it
>> calls the single precision one, or vice versa. Try to toggle the
>> DOUBLEPRECISION_FFTW compile time switch, or see whether setting
>> NOTYPEPREFIX_FFTW makes a difference.
>>
>> Volker
>>
>> dinesh wrote:
>>
>>> Hello I am getting following error after I compile and run Gadget.
>>> ./Gadget lcdm_gas.param
>>>
>>> ..................................................
>>> Begin Step 0, Time: 0.0909091, Redshift: 10, Systemstep: 0, Dloga: 0
>>> domain decomposition...
>>> NTopleaves= 64
>>> work-load balance=1 memory-balance=1
>>> domain decomposition done.
>>> begin Peano-Hilbert order...
>>> Peano-Hilbert done.
>>> Start force computation...
>>> Starting periodic PM calculation.
>>>
>>> Allocated 26.0742 MByte for FFT data.
>>>
>>> Illegal instruction
>>>
>>>
>>> I am running it on my personal computer with only one processor.
>>> I am confused as I don't understand the source of error.
>>>
>>> Thanks.
>>> Dinesh
>>>
>>>
>>>
>>>
>>> -----------------------------------------------------------
>>>
>>> If you wish to unsubscribe from this mailing, send mail to
>>> minimalist_at_MPA-Garching.MPG.de with a subject of: unsubscribe gadget-list
>>> A web-archive of this mailing list is available here:
>>> http://www.mpa-garching.mpg.de/gadget/gadget-list
>>>
>>
>>
>> -----------------------------------------------------------
>>
>> If you wish to unsubscribe from this mailing, send mail to
>> minimalist_at_MPA-Garching.MPG.de with a subject of: unsubscribe gadget-list
>> A web-archive of this mailing list is available here:
>> http://www.mpa-garching.mpg.de/gadget/gadget-list
>>
>
>
>
>
> -----------------------------------------------------------
>
> If you wish to unsubscribe from this mailing, send mail to
> minimalist_at_MPA-Garching.MPG.de with a subject of: unsubscribe gadget-list
> A web-archive of this mailing list is available here:
> http://www.mpa-garching.mpg.de/gadget/gadget-list
>
Received on 2007-09-23 22:47:39