Please don't specify the -I, -L, and -l flags by hand. With LAM 7.1.x,
the libraries needed to link LAM can change from build to build, so a
makefile with explicit -l lines will be extremely fragile. Instead,
use the mpicc and mpif77 wrapper compilers.
LAM's web page contains information on building BLACS with LAM/MPI:
http://www.lam-mpi.org/3rd-party/blacs.php3
That page should have everything you need to get started.
Hope this helps,
Brian
On Apr 11, 2005, at 9:03 AM, Konstantinos Pachnis wrote:
> Hello,
> As you can see the compiler can not find the mpi.h file.
> You can try to pass the lam include path both to the preprocessor and
> compiler flags
> (i.e. CPPFLAGS="-I<LAMHOME/include>" CFLAGS="-I<LAMHOME/include>"), if
> your lam installation is
> not in standard search path (/usr/include, /usr/local/include).
>
> Hope this helps
>
> ravindra_04 wrote:
>
>> i m trying to install BLACS with LAM-MPI-7.1.1 with intel fortran
>> (ifort
>> version 8.0) (b'coz' i want to use it with fortran compiler only) the
>> kernal version is 2.6.9-1.667smp . but while writing
>>
>> make mpi
>>
>> i m getting the following error:
>>
>> ( cd SRC/MPI ; make )
>> make[1]: Entering directory
>> `/root/OtherPackages/ScaLAPACK/BLACS/SRC/MPI'
>> ( cd INTERNAL ; make -f ../Makefile I_int
>> "dlvl=/root/OtherPackages/ScaLAPACK/BLACS" )
>> make[2]: Entering directory
>> `/root/OtherPackages/ScaLAPACK/BLACS/SRC/MPI/INTERNAL'
>> gcc -c -O4 -DSYSINC -DAdd_ -DBlacsDebugLvl=0 -DNoMpiBuff -DUseMpi2
>> BI_HypBS.c
>> In file included from Bdef.h:8,
>> from BI_HypBS.c:1:
>> Bconfig.h:20:17: mpi.h: No such file or directory
>> In file included from BI_HypBS.c:1:
>> Bdef.h:64: error: syntax error before "MPI_Comm"
>> Bdef.h:64: warning: no semicolon at end of struct or union
>> Bdef.h:73: error: syntax error before '}' token
>> BI_HypBS.c: In function `BI_HypBS':
>> BI_HypBS.c:6: error: dereferencing pointer to incomplete type
>> BI_HypBS.c:8: error: dereferencing pointer to incomplete type
>> BI_HypBS.c:9: error: dereferencing pointer to incomplete type
>> BI_HypBS.c:9: error: dereferencing pointer to incomplete type
>> BI_HypBS.c:9: error: dereferencing pointer to incomplete type
>> BI_HypBS.c:9: error: dereferencing pointer to incomplete type
>> BI_HypBS.c:9: error: dereferencing pointer to incomplete type
>> make[2]: *** [BI_HypBS.o] Error 1
>> make[2]: Leaving directory
>> `/root/OtherPackages/ScaLAPACK/BLACS/SRC/MPI/INTERNAL'
>> make[1]: *** [INTERN] Error 2
>> make[1]: Leaving directory
>> `/root/OtherPackages/ScaLAPACK/BLACS/SRC/MPI'
>> make: *** [MPI] Error 2
>>
>> can u please help me out ....how to install the BLACS?
>> for a reference i m attaching the Bmake.inc file
>> thanks in advance....
>> ravi
>> Get Your Private, Free E-mail from Indiatimes at
>> http://email.indiatimes.com
>>
>> Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com
>>
>> Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to
>> http://airsahara.indiatimes.com and Bid Now!
>>
>>
>> ----------------------------------------------------------------------
>> --
>>
>> _______________________________________________
>> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
--
Brian Barrett
LAM/MPI developer and all around nice guy
Have a LAM/MPI day: http://www.lam-mpi.org/
|