[Smeagol-discuss] compilation problem for parallel smeagol.

ambavale sagar sagarambavale at yahoo.co.in
Sat Oct 11 13:51:35 IST 2008


Dear all,
After so many tries i can not compile parallel smeagol on my xeon dual processor (quad core) with intel fortran comiler and c compiler (both of version 10) lam-mpi and intel mkl. It shows error while compiling linpack. (though I have duly followed instructiions in readme file.) I tried to change optimization flag too (-tpp7 -O2 -axN -mp1 -arch SSE -mieee-fp) but it didn't worked. I also tried to have LINPACK given by second option i.e.. by uncommenting 
 #If want to use SIESTA provided LINPACK subroutines
#       contained in file linpack.F you should uncomment 
#       the lines below
#
#LINPACKOBJ=linpack.o 
#LINPACK=linpack
#$(LINPACK): $(LINPACKOBJ)
It didn't work.

***************************************************************************
Error report is :
ifort -c -g     -DMPI ../NETransport/negf2k.F
ifort -c -g     -DMPI ../NETransport/localdos.F
ifort -c -g     ../NETransport/gaucheb.f
(cd ../linpack; ifort  *.f; \
         ar -rv linpack.smeagol.a *.o; \
         mv linpack.smeagol.a /Src)
/opt/intel/fce/10.1.012/lib/for_main.o: In function `main':
/export/users/nbtester/efi2linuxx86_nightly/branch-10_1/20080112_010000/libdev/frtl/src/libfor/for_main.c:(.text+0x26): undefined reference to `MAIN__'
/tmp/ifortwMd9Rm.o: In function `zgedi_':
zgedi.f:(.text+0x176): undefined reference to `zscal_'
zgedi.f:(.text+0x22b): undefined reference to `zaxpy_'
zgedi.f:(.text+0x4c0): undefined reference to `zaxpy_'
zgedi.f:(.text+0x51e): undefined reference to `zswap_'
/tmp/ifortKxK1vW.o: In function `zgefa_':
zgefa.f:(.text+0xd7): undefined reference to `izamax_'
zgefa.f:(.text+0x213): undefined reference to `zscal_'
zgefa.f:(.text+0x321): undefined reference to `zaxpy_'
ar: creating linpack.smeagol.a
ar: *.o: No such file or directory
mv: cannot stat `linpack.smeagol.a': No such file or directory
make: *** [linpack.smeagol.a] Error 1
[phy at localhost Src]$

**************************************************************
Changed part of my make.arch file is:

SIESTA_ARCH=intel10-mkl10
FC=ifort
FC_ASIS=$(FC)
#
#FFLAGS= -O2 -mp1 -mieee-fp
FFLAGS= -w -xP -O3 -mp1
FFLAGS_DEBUG= -g 
LDFLAGS= -static
COMP_LIBS=
RANLIB=echo
#
NETCDF_LIBS=
NETCDF_INTERFACE=
DEFS_CDF=
#from sgi64-lam(sagar)
MPI_INTERFACE=libmpi_f90.a
MPI_INCLUDE=/opt/MPI/lam-7.1.4/lam/include  
MPI_LIBS=-L/opt/MPI/lam-7.1.4/lam/lib -llamf77mpi -lmpi -llam
DEFS_MPI=-DMPI
#
GUIDE=/opt/intel/mkl/10.0.1.014/lib/em64t/libguide.a
LAPACK=/opt/intel/mkl/10.0.1.014/lib/em64t/libmkl_lapack.a
BLAS=/opt/intel/mkl/10.0.1.014/lib/em64t/libmkl_em64t.a
LIBS=$(LAPACK) $(BLAS)  $(GUIDE)  -lpthread -lsvml
SYS=nag
DEFS= $(DEFS_CDF) $(DEFS_MPI)


**************************************************************
Changed part of makefile is :

#     If you don't want to use your own LINPACK subroutines
#    you should comment the lines below
#
 
LINPACK=linpack.smeagol.a
$(LINPACK):
    (cd ../linpack; $(FC) $(TRANSPORTFLAGS) *.f; \
     ar -rv linpack.smeagol.a *.o; \
     mv linpack.smeagol.a $(SOURCE_DIR)/Src)

LINPACKOBJ = dcabs1.o  zgedi.o  zgefa.o 
dcabs1.o zgedi.o zgefa.o : $(LINPACK)    

#       If want to use SIESTA provided LINPACK subroutines
#       contained in file linpack.F you should uncomment 
#       the lines below
#
#LINPACKOBJ=linpack.o 
#LINPACK=linpack
#$(LINPACK): $(LINPACKOBJ)

#    If you wish to provide your own lapack driver
#    subroutines you should uncomment the following lines
#
#SMEAGOLLAPACK = lapack.smeagol.a
#$(SMEAGOLLAPACK):
#    (cd ../smeagolpack; $(FC) $(TRANSPORTFLAGS) *.f;\
#     ar -rv lapack.smeagol.a *.o; \
#     mv lapack.smeagol.a $(SOURCE_DIR)/Src)

#SMEAGOLPACKOBJ = zsytf2.o zsytrf.o zsytri.o ieeeck.o ilaenv.o #zgebal.o
#SMEAGOLPACKOBJ = zsytf2.o zsytrf.o zsytri.o 

#SMEAGOLLAPACK = Smeagol_lapack
#$(SMEAGOLLAPACK) : $(SMEAGOLPACKOBJ) 

#       If you wish to use vendor specific lapack driver
#       subroutines you should uncomment the following lines
#
SMEAGOLLAPACK =
SMEAGOLPACKOBJ=

# This is crude but will have to do for now.
# Note : precision must be the first module
****************************************************************************


Regards
sagar



      Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.tchpc.tcd.ie/pipermail/smeagol-discuss/attachments/20081011/36b482fa/attachment.html 


More information about the Smeagol-discuss mailing list