[Smeagol-discuss] compilation problem for parallel smeagol.

Ivan Rungger runggeri at tcd.ie
Mon Oct 13 08:59:37 IST 2008


Dear Sagar,

  the reason for the problem I think is that the linpack routines can
not be compiled, which is becase the "-c" option is missing after ifort.
To use the linpack routines provided with smeagol you have to add the
following lines to your arch.make:

TRANSPORTFLAGS= -c $(FFLAGS)
SOURCE_DIR= ../

I also send you a pair of Makefile/arch.make that work on our xeon
machines. You can compare yours with those.

Cheers,

 Ivan

ambavale sagar wrote:
> 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
>
> ------------------------------------------------------------------------
> Be the first one to try the new Messenger 9 Beta! Click here.
> <http://in.rd.yahoo.com/tagline_messenger_7/*http://in.messenger.yahoo.com/win/>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Smeagol-discuss mailing list
> Smeagol-discuss at lists.tchpc.tcd.ie
> http://lists.tchpc.tcd.ie/listinfo/smeagol-discuss


-- 
=================================================
Ivan Rungger,

School of Physics and CRANN,  
Trinity College Dublin,  
Dublin 2,  IRELAND  
Phone: +353-1-8968454  
Email: runggeri at tcd.ie
=================================================

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: arch.make
Url: http://lists.tchpc.tcd.ie/pipermail/smeagol-discuss/attachments/20081013/55a60e5f/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Makefile
Url: http://lists.tchpc.tcd.ie/pipermail/smeagol-discuss/attachments/20081013/55a60e5f/attachment-0001.pl 


More information about the Smeagol-discuss mailing list