Re: Illegal Instruction error ...

From: Todd Krause <bobtodd_at_math.utexas.edu>
Date: Sun, 23 Sep 2007 16:19:42 -0500 (CDT)

I have a small script of my own that I created while working through some
similar problems. Yves' solution seems much cleaner. But I recall having
to configure fftw-2.x twice, once for single and once for double
precision (which, in the end, may be effectively what you've done). So in
case it helps, I'll include my script.

best,
todd

script follows:

#!/bin/bash

# configure specifically with MPICH rather than LAM/MPI
export MPICC="/usr/local/mpich2/mpich2-1.0.5p4/install/bin/mpicc"

# MPICH2 Version
export VERSION="fftw-2.1.5"

# Install directory
export COMM_DIR="/usr/local/fftw2"
export INSTALL_DIR="${COMM_DIR}/${VERSION}/install"

# Run configure to get single precision
./configure --prefix="${INSTALL_DIR}" \
                         --enable-type-prefix \
             --enable-mpi \
             --enable-threads \
             --enable-shared \
             2>&1 | tee configure.sprec.log

# Build to get single precision
make 2>&1 | tee make.sprec.log

# Install single precision
make install 2>&1 | tee make.install.sprec.log

# Clean single precision
make clean 2>&1 | tee make.clean.sprec.log


# Run configure to get double precision
./configure --prefix="${INSTALL_DIR}" \
                         --enable-float \
                         --enable-type-prefix \
             --enable-mpi \
             --enable-threads \
             --enable-shared \
             2>&1 | tee configure.dprec.log

# Build to get double precision
make 2>&1 | tee make.dprec.log

# Install double precision
make install 2>&1 | tee make.install.dprec.log





On Sun, 23 Sep 2007, Yves Revaz wrote:

>
>
> 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
>>
>
>
>
>
> -----------------------------------------------------------
> 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 23:39:03

This archive was generated by hypermail 2.3.0 : 2023-01-10 10:01:30 CET