Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-07 Thread Gregory John Orris
All, I took this discussion off line since it's now not relevant to openmpi directly, but since I started it to get a truly 64 bit ATLAS lib under leopard you need to configure it with the -b 64 -Fa ac "-L/usr/ local/lib/x86_64 -m64" Doing otherwise will not lead to a 64-bit file. 'Nuf

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-07 Thread Linwei Wang
Yeah..I built it...but I dun know why it is of the wrong architecture On May 7, 2008, at 6:07 PM, Doug Reeder wrote: Linwei, Did you build the liblapack.a file, it is of the wrong architecture. Doug Reeder On May 7, 2008, at 2:58 PM, Linwei Wang wrote: Hi, Doug I've checked the make

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-07 Thread Doug Reeder
Linwei, Did you build the liblapack.a file, it is of the wrong architecture. Doug Reeder On May 7, 2008, at 2:58 PM, Linwei Wang wrote: Hi, Doug I've checked the makefiles and make sure that flag -m64 is used for all the compiling but the error still exists.. Linwei On May 7, 2008, at 5:3

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-07 Thread Linwei Wang
Hi, Doug I've checked the makefiles and make sure that flag -m64 is used for all the compiling but the error still exists.. Linwei On May 7, 2008, at 5:33 PM, Doug Reeder wrote: Linwei, It looks like you are getting a mix of 32 and 64 bit code (hence the 'file is not of required archite

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-07 Thread Doug Reeder
Linwei, It looks like you are getting a mix of 32 and 64 bit code (hence the 'file is not of required architecture' error). Are you using the command line flag -m64 for some parts of the build and not for others. You need to use either -m32 or -m64 for all the builds. Doug Reeder On May 7

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-07 Thread Linwei Wang
Dear sir, Thanks very much for your detailed guideline~ I'm now trying to follow it out~ I've installed gcc 4.3 & openmpi~ When compiling CLAPACK, I'm trying to use the optimized BLAS library by ATLAS, so I set the BLASLIB in the make.inc as: BLASLIB = ../../libcblaswr.a -lcblas

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-06 Thread Gregory John Orris
Points to clarify if I may, having gone through this relatively recently: g77 and gfortran are NOT one and the same. gfortran from sourceforge works well, but it is based on gnu gcc 4.3 and not on the gnu gcc 4.0.1 that comes with Leopard. Your best bet is to download the ENTIRE gcc package fr

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-06 Thread Linwei Wang
Thanks, Jeff, I finally choose to use the ScaLAPACK installer provided on the website~ with gcc/gfortran and openmpi...it is installed successfully but I haven't tested the applications.. Thanks for your help. Linwei On May 6, 2008, at 10:09 AM, Jeff Squyres wrote: FWIW, I'm not a fortr

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-06 Thread Jeff Squyres
FWIW, I'm not a fortran expert, but if you built your Fortran libraries with g77 and then tried to link against them with gfortran, you might run into problems. My advice would be to use a single fortran compiler for building everything: Open MPI, your libraries, your apps. I prefer gfortr

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-05 Thread Linwei Wang
Dear Reeder, It does not work. I do think they are from the fortran programs I'm using (they are files included from the BLACS installation package, not written by my own. The thing is last time when I was using g77, it caused no problem... thanks for your help. Linwei. On M

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-05 Thread Doug Reeder
Linwei, Have you tried using -funderscoring with gfortran. I don't think the trouble you are having is caused by having g77 and gfortran both installed. Do you know where the unreferenced symbols (_s_wsle, _e_wsle, etc ) are supposed to be coming from. If they are in your fortran programs

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-05 Thread Linwei Wang
Dear Reeder, I've tried add gfortran flag "-fno-underscoring", but the same errors persist... Is that possible because that I have both g77 and gfortran in my computer? Best, Linwei On May 5, 2008, at 1:17 PM, Doug Reeder wrote: Linwei, Is there a problem with trailing underscore

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-05 Thread Doug Reeder
Linwei, Is there a problem with trailing underscores. Are you linking c/c++ files with fortran. Do the _s_wsle family members need to have a trailing underscore where are the unrefernced symbols supposed to be coming from. If they have a trailing underscore in their names you probably nee

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-05 Thread Linwei Wang
Dear Dr. Simon, Do I need to remove g77 from my computer then? Since after installing gfortran (for Leopard), there is some link problem with gfortran.. When I try to build some routines in the BLACS, it gives error like: Undefined symbols: "_s_wsle", referenced from: _MAIN__ in tc_fC

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-05 Thread Christian Simon
On 2 mai 08, at 15:05, Linwei Wang wrote: Dear Dr. Simon, I'm using gcc 4.0 (come with Leopard) and g77 3.4 g77 is outated. You have to switch to gfortran (it's descendant). It should work, and will be far more efficient. Be carefull to install a version consistent with your gcc. Keep us in

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-02 Thread Linwei Wang
Dear Dr. Simon, I'm using gcc 4.0 (come with Leopard) and g77 3.4 Thanks, Linwei On May 2, 2008, at 7:04 AM, Christian Simon wrote: Dear Linwei, On 1 mai 08, at 20:32, Linwei Wang wrote: other type at (1) [info -f g77 M GLOBALS] What compiler are you using ? -- Dr. Christian SIMON Labora

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-02 Thread Christian Simon
Dear Linwei, On 1 mai 08, at 20:32, Linwei Wang wrote: other type at (1) [info -f g77 M GLOBALS] What compiler are you using ? -- Dr. Christian SIMON Laboratoire LI2C-UMR7612 Universite Pierre et Marie Curie Case 51 4 Place Jussieu 75252 Paris Cedex 05 France/Europe

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-01 Thread Linwei Wang
Dear Doug, Thanks very much. I installed the latest OpenMPI and BLACS. For the ScaLAPACK, I had some problem related to BLAS library. Since in mac, it is in the vecLib, I've no idea how to set the BLASLIB in the SLmake.inc file for ScaLAPACK. also, though compiling BLAS succeed, I'm no

Re: [OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-01 Thread Doug Reeder
Linwei, mpif.h is the include file for fortran programs to use openmpi. The apple version does not support fortran. If you want to use openmpi from fortran you will need to install a version of openmpi that supports fortran, this will install mpif.h. I suggest you install the new version

[OMPI users] Install BLACS and ScaLAPACK on Leopard

2008-05-01 Thread Linwei Wang
Dear all, I'm new to openmpi. I'm now trying to use BLACS and ScaLAPACK on Leopard. Since it has built-in Open MPI, I didn't install any other versions. I followed the BLACS install guidances in FAQ section, and it generated errors as: "No rule to make target `/usr/include/mpif.h', n