²é¿´: 1486  |  »Ø¸´: 2

»¨ÎÞ´Ì

ľ³æ (ÖøÃûдÊÖ)

¶þʦÐÖ

[ÇóÖú] ÇóÖúQuantum-ESPRESSO5.0 °²×°ÎÊÌâ

¶¼ËµQEÊÇ×îÈÝÒ×±àÒëµÄ£¬ÎÒÕ¦¾ÍÄÇô±¿£¬ÕÛÌÚ²»³öÀ´ÄØ£¿

ÇóÖú´ó¼ÒÁË£¡Ð»Ð»£¡

ÏȰ²×°ÁË ifort 12.1   icc 12.1   MKL£¨ifort¸½´øµÄ£©

È»ºóÊǰ²×°ÁËMPICH2
°²×°¹ý³ÌÉèÖÃÁË./configure --prefix=/opt/mpich/ F90=ifort F77=ifort  FC=ifort CC=icc

È»ºóÊǰ²×°QE

./configure F90=ifort F77=ifort FC=ifort MPIF90=mpif90 CC=icc ¨Cenable-shared

ÏÂÃæÊÇmake.sys  ¡¾ºìÉ«µÄµØ·½ÊÇ×Ô¼ºÐÞ¸ÄÁ˵ġ¿
# make.sys.  Generated from make.sys.in by configure.

# compilation rules

.SUFFIXES :
.SUFFIXES : .o .c .f .f90

# most fortran compilers can directly preprocess c-like directives: use
#         $(MPIF90) $(F90FLAGS) -c $<
# if explicit preprocessing by the C preprocessor is needed, use:
#         $(CPP) $(CPPFLAGS) $< -o $*.F90  
#        $(MPIF90) $(F90FLAGS) -c $*.F90 -o $*.o
# remember the tabulator in the first column !!!

.f90.o:
        $(MPIF90) $(F90FLAGS) -c $<

# .f.o and .c.o: do not modify

.f.o:
        $(F77) $(FFLAGS) -c $<

.c.o:
        $(CC) $(CFLAGS)  -c $<


# DFLAGS  = precompilation options (possible arguments to -D and -U)
#           used by the C compiler and preprocessor
# FDFLAGS = as DFLAGS, for the f90 compiler
# See include/defs.h.README for a list of options and their meaning
# With the exception of IBM xlf, FDFLAGS = $(DFLAGS)
# For IBM xlf, FDFLAGS is the same as DFLAGS with separating commas  

DFLAGS         =  -D__INTEL -D__FFTW -D__MPI -D__PARA
FDFLAGS        = $(DFLAGS)

# IFLAGS = how to locate directories where files to be included are
# In most cases, IFLAGS = -I../include

IFLAGS         = -I../include

# MOD_FLAGS = flag used by f90 compiler to locate modules
# Each Makefile defines the list of needed modules in MODFLAGS

MOD_FLAG      = -I

# Compilers: fortran-90, fortran-77, C
# If a parallel compilation is desired, MPIF90 should be a fortran-90  
# compiler that produces executables for parallel execution using MPI
# (such as for instance mpif90, mpf90, mpxlf90,...);
# otherwise, an ordinary fortran-90 compiler (f90, g95, xlf90, ifort,...)
# If you have a parallel machine but no suitable candidate for MPIF90,
# try to specify the directory containing "mpif.h" in IFLAGS
# and to specify the location of MPI libraries in MPI_LIBS

MPIF90         = /opt/mpich/bin/mpif90
#F90           = ifort
CC             = icc
F77            = ifort

# C preprocessor and preprocessing flags - for explicit preprocessing,  
# if needed (see the compilation rules above)
# preprocessing flags must include DFLAGS and IFLAGS

CPP            = cpp
CPPFLAGS       = -P -traditional $(DFLAGS) $(IFLAGS)

# compiler flags: C, F90, F77
# C flags must include DFLAGS and IFLAGS
# F90 flags must include MODFLAGS, IFLAGS, and FDFLAGS with appropriate syntax

CFLAGS         = -O3 $(DFLAGS) $(IFLAGS)
F90FLAGS       = $(FFLAGS) -nomodule -fpp $(FDFLAGS) $(IFLAGS) $(MODFLAGS)
FFLAGS         = -O2 -assume byterecl -g -traceback -par-report0 -vec-report0

# compiler flags without optimization for fortran-77
# the latter is NEEDED to properly compile dlamch.f, used by lapack

FFLAGS_NOOPT   = -O0 -assume byterecl -g -traceback

# compiler flag needed by some compilers when the main is not fortran
# Currently used for Yambo

FFLAGS_NOMAIN   = -nofor_main

# Linker, linker-specific flags (if any)
# Typically LD coincides with F90 or MPIF90, LD_LIBS is empty

LD             = /opt/mpich/bin/mpif90
LDFLAGS        = -static-intel  
LD_LIBS        =  

# External Libraries (if any) : blas, lapack, fft, MPI

# If you have nothing better, use the local copy :
# BLAS_LIBS = /your/path/to/espresso/BLAS/blas.a
# BLAS_LIBS_SWITCH = internal

BLAS_LIBS      =   -L/opt/intel/composer_xe_2011_sp1.9.293/mkl/lib/intel64 -lmkl_intel_lp64  -lmkl_sequential -lmkl_core  -lpthread
BLAS_LIBS_SWITCH = external

# If you have nothing better, use the local copy :
# LAPACK_LIBS = /your/path/to/espresso/lapack-3.2/lapack.a
# LAPACK_LIBS_SWITCH = internal
# For IBM machines with essl (-D__ESSL): load essl BEFORE lapack !
# remember that LAPACK_LIBS precedes BLAS_LIBS in loading order

LAPACK_LIBS    = -L/opt/intel/composer_xe_2011_sp1.9.293/mkl/lib/intel64 -lmkl_intel_lp64  -lmkl_sequential -lmkl_core  -lpthread
LAPACK_LIBS_SWITCH = external

SCALAPACK_LIBS = -L/opt/intel/composer_xe_2011_sp1.9.293/mkl/lib/intel64 -lmkl_scalapack_lp64 -lmkl_blacs_openmpi_lp64 -lpthread
# nothing needed here if the the internal copy of FFTW is compiled
# (needs -D__FFTW in DFLAGS)

FFT_LIBS       =  

# For parallel execution, the correct path to MPI libraries must
# be specified in MPI_LIBS (except for IBM if you use mpxlf)

MPI_LIBS       =  -L/opt/mpich/lib -lmpich -lmpichf90 -pthread
# IBM-specific: MASS libraries, if available and if -D__MASS is defined in FDFLAGS

MASS_LIBS      =  

# ar command and flags - for most architectures: AR = ar, ARFLAGS = ruv

AR             = ar
ARFLAGS        = ruv

# ranlib command. If ranlib is not needed (it isn't in most cases) use
# RANLIB = echo

RANLIB         = ranlib

# all internal and external libraries - do not modify

FLIB_TARGETS   = all

LIBOBJS        = ../flib/ptools.a ../flib/flib.a ../clib/clib.a ../iotk/src/libiotk.a  
LIBS           = $(SCALAPACK_LIBS) $(LAPACK_LIBS) $(FFT_LIBS) $(BLAS_LIBS) $(MPI_LIBS) $(MASS_LIBS) $(LD_LIBS)

# wget or curl - useful to download from network
WGET = wget -O

# topdir for linking espresso libs with plugins
TOPDIR = /home/zoudf/soft/Quantum-ESPRESSO/espresso-5.0



ÏÂÃæÊdzö´íÐÅÏ¢£º
_sys2blacs_handle_.c.text+0x21): undefined reference to `ompi_mpi_comm_null'
_sys2blacs_handle_.c.text+0x98): undefined reference to `ompi_mpi_comm_world'
_sys2blacs_handle_.c.text+0x166): undefined reference to `ompi_mpi_comm_world'
/opt/intel/composer_xe_2011_sp1.9.293/mkl/lib/intel64/libmkl_blacs_openmpi_lp64.a(BI_MPI_F77_to_c_trans_comm.o): In function `BI_MPI_F77_to_c_trans_comm':
_BI_MPI_F77_to_c_trans_comm.c.text+0x6): undefined reference to `MPI_Comm_f2c'
make[2]: *** [pw.x] Error 1
make[2]: Leaving directory `/home/zoudf/soft/Quantum-ESPRESSO/espresso-5.0/PW/src'
make[1]: *** [pw] Error 2
make[1]: Leaving directory `/home/zoudf/soft/Quantum-ESPRESSO/espresso-5.0/PW'
make: *** [pw] Error 2
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:

ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

DFPT

½ð³æ (СÓÐÃûÆø)

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
xueht987: ½ð±Ò+1, ¹ÄÀø½»Á÷£¡ 2012-07-09 08:53:53
»¨ÎÞ´Ì: ½ð±Ò+40, ¡ï¡ï¡ï¡ï¡ï×î¼Ñ´ð°¸ 2012-07-09 10:10:30
-lmkl_blacs_openmpi_lp64
ÕâÒ»¸ö°æ±¾²»¶Ô£¬Ê¹ÓõÄÃ÷Ã÷ÊÇMPICH2£¬¸ÉÂï¸ÄÓÃopenmpiµÄ¡£
Èç¹û²»Óü¯Èº¼ÆË㣬°ÑScaLapackÄÇÒ»¾ä×¢ÊÍÆðÀ´¾Í¿ÉÒÔ¡£
010-8393-9164
2Â¥2012-07-08 23:23:09
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

»¨ÎÞ´Ì

ľ³æ (ÖøÃûдÊÖ)

¶þʦÐÖ

ÒýÓûØÌû:
2Â¥: Originally posted by DFPT at 2012-07-08 23:23:09
-lmkl_blacs_openmpi_lp64
ÕâÒ»¸ö°æ±¾²»¶Ô£¬Ê¹ÓõÄÃ÷Ã÷ÊÇMPICH2£¬¸ÉÂï¸ÄÓÃopenmpiµÄ¡£
Èç¹û²»Óü¯Èº¼ÆË㣬°ÑScaLapackÄÇÒ»¾ä×¢ÊÍÆðÀ´¾Í¿ÉÒÔ¡£

ÎÒ°ÑÕâÒ»ÐÐ×¢ÏúÁË£¬Ã²ËÆ¿ÉÒÔ±àÒëµÄ£¬±àÒëÖ®ºó£¬Ã»Óб¨´í¡£

ScaLapackµÄĬÈÏÓÐ-lmkl_scalapack_lp64 -lmkl_blacs_openmpi_lp64 -lpthread £¬ÎÒ¿´ÁËmpichÏÂÃæÓÐÕâôЩ¿âÎļþ£¬¾Í¼ÓÉÏÈ¥ÁË£¬Ã»ÓÐ˼¿¼

»¹ÏëÇë½Ìһϣ¬Èç¹ûÊǼ¯Èº£¬ÕâÒ»Ðе½µ×Æðʲô×÷ÓÃÄØ£¿ÄÇôÕâÒ»ÐиÃÔõÃ´Ð´ÄØ£¿ÄܰÑÄúµÄÕâÒ»Ðй«²¼Ò»ÏÂô£¿user-GuideÀïÃæ¶ÔÕâ¸öµÄ½âÊÍÌ«ÉÙ£¬Ã»¸ãÃ÷°×¡£

¿´ÄúID£¬±ØÊǸßÊÖ£¬ÍûÖ¸½Ì£¬Ð»Ð»¡£
3Â¥2012-07-09 10:17:20
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ »¨ÎÞ´Ì µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 0703»¯Ñ§336·ÖÇóµ÷¼Á +5 zbzihdhd 2026-03-15 6/300 2026-03-18 04:34 by anny19840123
[¿¼ÑÐ] 281Çóµ÷¼Á£¨0805£© +3 ÑÌÏ«Ò亣 2026-03-16 8/400 2026-03-18 00:47 by ÑÌÏ«Ò亣
[¿¼ÑÐ] ²ÄÁÏר˶306Ó¢Ò»Êý¶þ +8 z1z2z3879 2026-03-16 10/500 2026-03-18 00:01 by ÐÇ¿ÕÐÇÔÂ
[¿¼²©] 26²©Ê¿ÉêÇë +3 1042136743 2026-03-17 3/150 2026-03-17 23:30 by ÇáËɲ»ÉÙËæ
[¿¼ÑÐ] 311Çóµ÷¼Á +9 ¶¬Ê®Èý 2026-03-15 10/500 2026-03-17 22:53 by lbsjt
[¿¼ÑÐ] 08¹¤¿Æ 320×Ü·Ö Çóµ÷¼Á +4 À滨çóÍí·ç 2026-03-17 4/200 2026-03-17 13:38 by houyaoxu
[¿¼ÑÐ] 211±¾£¬11408Ò»Ö¾Ô¸ÖпÆÔº277·Ö£¬ÔøÔÚÖпÆÔº×Ô¶¯»¯Ëùʵϰ +6 Losir 2026-03-12 7/350 2026-03-17 12:09 by danranxie
[¿¼ÑÐ] 278Çóµ÷¼Á +3 Yy7400 2026-03-13 3/150 2026-03-17 08:24 by laoshidan
[¿¼ÑÐ] »úеר˶325£¬Ñ°ÕÒµ÷¼ÁԺУ +3 y9999 2026-03-15 5/250 2026-03-16 19:58 by y9999
[¿¼ÑÐ] 326Çóµ÷¼Á +4 ŵ±´¶û»¯Ñ§½±êéê 2026-03-15 7/350 2026-03-16 17:11 by ŵ±´¶û»¯Ñ§½±êéê
[¿¼ÑÐ] 0703»¯Ñ§µ÷¼Á +6 ÄÝÄÝninicgb 2026-03-15 9/450 2026-03-16 16:40 by houyaoxu
[¿¼ÑÐ] 304Çóµ÷¼Á +3 ÂüÊâ2266 2026-03-14 3/150 2026-03-16 16:39 by houyaoxu
[¿¼ÑÐ] 070305Çóµ÷¼Á +3 mlpqaz03 2026-03-14 4/200 2026-03-15 11:04 by peike
[¿¼ÑÐ] 288Çóµ÷¼Á +4 Ææµã0314 2026-03-14 4/200 2026-03-14 23:04 by JourneyLucky
[¿¼ÑÐ] ±¾¿ÆÄϾ©´óѧһ־Ը´¨´óҩѧ327 +3 ÂóÌï¸ûÕß 2026-03-14 3/150 2026-03-14 20:04 by ÍâÐÇÎÄÃ÷
[¿¼ÑÐ] 290Çóµ÷¼Á +9 ADT 2026-03-11 9/450 2026-03-13 21:55 by JourneyLucky
[¿¼ÑÐ] 315Çóµ÷¼Á +9 СÑòСÑò_ 2026-03-11 10/500 2026-03-13 21:13 by SXNUÀîÀÏʦ
[¿¼ÑÐ] 329Çóµ÷¼Á +3 miaodesi 2026-03-12 4/200 2026-03-13 20:53 by 18595523086
[¿¼ÑÐ] 26µ÷¼Á/²ÄÁÏ¿ÆÑ§Ó빤³Ì/×Ü·Ö295/ÇóÊÕÁô +9 2026µ÷¼ÁÏÀ 2026-03-12 9/450 2026-03-13 20:46 by 18595523086
[¿¼ÑÐ] ²ÄÁÏ301·ÖÇóµ÷¼Á +5 Liyouyumairs 2026-03-12 5/250 2026-03-13 14:42 by JourneyLucky
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û