| ²é¿´: 2304 | »Ø¸´: 2 | |||
| ¡¾½±Àø¡¿ ±¾Ìû±»ÆÀ¼Û1´Î£¬×÷ÕßBirdofwanderÔö¼Ó½ð±Ò 0.6 ¸ö | |||
[×ÊÔ´]
ʹÓÃgfortranºÍopenmpi²¢ÐбàÒëSIESTA(Ô´´)
|
|||
|
ʹÓÃgfortranºÍopenmpi²¢ÐбàÒëSIESTA Openmpi°²×° 1. ./configure --prefix=/home/chengxl/sourcecode/openmpi-gnu CC=gcc CXX=g++ F77=gfortran FC=gfortran 2. make all 3. make install4. ´ò¿ª ¡«/.bashrc Ìí¼Ó»·¾³±äÁ¿ export PATH=/usr/local/openmpi-1.4.3/bin:$PATH export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/openmpi-1.4.3/lib5. source ~/.bashrc£¨ÖØÐ´ò¿ªÖÕ£© ²¢ÑéÖ¤ which mpicc which mpic£«£« which mpif77 which mpif90 °²×° lapack ÏÂÔØ£ºhttp://www.netlib.org/lapack cp make.example.inc make.inc ²¢ÐÞ¸ÄÒÔϼ¸ÐУº BLASLIB = /your/path/to/lapack-3.4.2/librefblas.a # ½«Òª´´½¨Ò»¸ölibrefblas.a LAPACKLIB = liblapack.a TMGLIB = libtmglib.a LAPACKELIB = liblapacke.a Make °²×° BLACS http://www.netlib.org/blacsÏÂÔØMPIBLACS ÔÚBMAKESÎļþ¼ÐÖп½³öBmake.MPI-LINUX Bmake.inc ²Î¼û£ºHow do I build BLACS with Open MPI http://www.open-mpi.org/faq/?category=mpi-apps ÐÞ¸ÄBmake.inc # Section 1: # Ensure to use MPI for the communication layer COMMLIB = MPI # The MPIINCdir macro is used to link in mpif.h and # must contain the location of Open MPI's mpif.h. # The MPILIBdir and MPILIB macros are irrelevant # and should be left empty. MPIdir = /path/to/openmpi-1.6.5 MPILIBdir = MPIINCdir = $(MPIdir)/include MPILIB = # Section 2: # Set these values: SYSINC = INTFACE = -Df77IsF2C SENDIS = BUFF = TRANSCOMM = -DUseMpi2 WHATMPI = SYSERRORS = # Section 3: # You may need to specify the full path to # mpif77 / mpicc if they aren't already in # your path. F77 = mpif77 F77LOADFLAGS = CC = mpicc CCLOADFLAGS = Make mpi °²×° scalapack ²Î¼û£ºhttp://www.open-mpi.org/faq/?category=mpi-apps # Make sure you follow the instructions to build BLACS with Open MPI, # and put its location in the following. BLACSdir = <path where you installed BLACS> # The MPI section is commented out. Uncomment it. The wrapper # compiler will handle SMPLIB, so make it blank. The rest are correct # as is. USEMPI = -DUsingMpiBlacs SMPLIB = BLACSFINIT = $(BLACSdir)/blacsF77init_MPI-$(PLAT)-$(BLACSDBGLVL).a BLACSCINIT = $(BLACSdir)/blacsCinit_MPI-$(PLAT)-$(BLACSDBGLVL).a BLACSLIB = $(BLACSdir)/blacs_MPI-$(PLAT)-$(BLACSDBGLVL).a TESTINGdir = $(home)/TESTING # The PVMBLACS setup needs to be commented out. #USEMPI = #SMPLIB = $(PVM_ROOT)/lib/$(PLAT)/libpvm3.a -lnsl -lsocket #BLACSFINIT = #BLACSCINIT = #BLACSLIB = $(BLACSdir)/blacs_PVM-$(PLAT)-$(BLACSDBGLVL).a #TESTINGdir = $(HOME)/pvm3/bin/$(PLAT) # Make sure that the BLASLIB points to the right place. We built this # example on Solaris, hence the name below. The Linux version of the # library (as of this writing) is blas_LINUX.a. BLASLIB = $(LAPACKdir)/blas_solaris.a # You may need to specify the full path to mpif77 / mpicc if they # aren't already in your path. ÎҸĵģº BLACSdir = /path to/BLACS/LIB BLASLIB = -L/path to/lapack-3.4.2 -lrefblas LAPACKLIB = -L/path to/lapack-3.4.2 -llapack LIBS = $(LAPACKLIB) $(BLASLIB) USEMPI = -DUsingMpiBlacs SMPLIB = BLACSFINIT = $(BLACSdir)/blacsF77init_MPI-LINUX-0.a BLACSCINIT = $(BLACSdir)/blacsCinit_MPI-LINUX-0.a BLACSLIB = $(BLACSdir)/blacs_MPI-LINUX-0.a #TESTINGdir = $(home)/TESTING ±àÒësiesta ½«Src/MPIÖÐÈ«²¿¿½µ½ Obj/MPIÖУ¬make ÔÚObjÎļþ¼ÐÖÐÖ´ÐУº sh ../Src/obj_setup.sh ../Src/configure --enable-mpi(Ïê¼û--help) ÐÞ¸Ä arch.make, Îҵģº FC=mpif90 FPPFLAGS= -DFC_HAVE_FLUSH -DFC_HAVE_ABORT -DMPI BLAS_LIBS= -L/path/lapack-3.4.2/ -lrefblas LAPACK_LIBS= -L/path/lapack-3.4.2/ -llapack -ltmglib BLACS_LIBS= -L/path/BLACS/LIB/blacs_MPI-LINUX-0.a SCALAPACK_LIBS= -L/path/scalapack-2.0.2/ -lscalapack COMP_LIBS= dc_lapack.a linalg.a MPI_INTERFACE=libmpi_f90.a MPI_INCLUDE=/home/feng/scisoft/openmpi-gnu/include ²âÊÔ£º mpirun -np <nproc> siesta < input.fdf > output |
» ÊÕ¼±¾ÌûµÄÌÔÌûר¼ÍƼö
¿ÆÑÐСľ³æ |
» ²ÂÄãϲ»¶
ÊÛSCIÒ»ÇøÎÄÕ£¬ÎÒ:8.O.551.O.5.4,¿ÆÄ¿È«,¿ÉÙ¤¼±
ÒѾÓÐ6È˻ظ´
Ã÷ÌìÓ¦¸Ã¿É²éÁË£¡£¿
ÒѾÓÐ5È˻ظ´
Èç¹û´Ë¿ÌÄãÕýÔÚΪ¹ú»ù¸Ðµ½½¹ÂÇ£¬²»·ÁÀ´ÌýÌýÕâÊס¶»ù½ðÖ®Íâ¡·
ÒѾÓÐ7È˻ظ´
ûÓÐÈκÎÏûÏ¢-ÊDz»ÊǾÍÁ¹ÁË
ÒѾÓÐ8È˻ظ´
ÊÛSCI-T0PÎÄÕ£¬ÎÒ:8O.5.5.1.O.54,¿ÆÄ¿ÆëÈ«,¿É+¼±
ÒѾÓÐ3È˻ظ´
ÈËÆø²»ÐÐÁË
ÒѾÓÐ10È˻ظ´
ÎÒÃæÉÏÍêµ°ÁË
ÒѾÓÐ10È˻ظ´
ÄÜ·ñÍ˳ö²ÎÓëµÄÃæÉÏÏîÄ¿½â³ýÏÞÏî
ÒѾÓÐ24È˻ظ´
filecode£¬4¸öjtjcÁË
ÒѾÓÐ17È˻ظ´
2026¹ú×ÔÈ»º¯ÆÀ·Ñµ½ÕË
ÒѾÓÐ19È˻ظ´
» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:
Siesta3.1ʶ±ð²»ÁËNetCDF£¿ ÈçºÎÉèÖÃINTERFACE?
ÒѾÓÐ3È˻ظ´
¡¾·ÖÏí¡¿openmpi-intelmkl-siesta3.0 ²¢Ðа²×°--Á½ÖÖ·½Ê½---Ô´´
ÒѾÓÐ5È˻ظ´
¡¾ÇóÖú¡¿mkl+ifort+openmpi+siesta3.²¢Ðа²×°³ö´í
ÒѾÓÐ8È˻ظ´
2Â¥2013-07-11 10:10:45
Birdofwander
½û³æ (СÓÐÃûÆø)
|
±¾ÌûÄÚÈݱ»ÆÁ±Î |
3Â¥2013-07-11 13:35:31









»Ø¸´´ËÂ¥