siesta在Linux运行,[转载]siesta并行编译! 在废柴164机器上

1:到Src目录下 ./configure 确定你的mpi可以用!

然后修改arch.make

arch.make 修改之后的:

#

# This file is part of the SIESTA package.

#

# Copyright (c) Fundacion General Universidad Autonoma de

Madrid:

# E.Artacho, J.Gale, A.Garcia, J.Junquera, P.Ordejon,

D.Sanchez-Portal

# and J.M.Soler, 1996-2006.

#

# Use of this software constitutes agreement with the full

conditions

# given in the SIESTA license, as signed by all legitimate

users.

#

.SUFFIXES:

.SUFFIXES: .f .F .o .a .f90 .F90

SIESTA_ARCH=x86_64-unknown-linux-gnu--unknown

FPP=

FPP_OUTPUT=

FC=f95

RANLIB=ranlib

SYS=nag

SP_KIND=4

DP_KIND=8

KINDS=$(SP_KIND) $(DP_KIND)

FFLAGS=-g -O2

FPPFLAGS= -DFC_HAVE_FLUSH -DFC_HAVE_ABORT

LDFLAGS=

ARFLAGS_EXTRA=

FCFLAGS_fixed_f=

FCFLAGS_free_f90=

FPPFLAGS_fixed_F=

FPPFLAGS_free_F90=

BLAS_LIBS=libblas.a

LAPACK_LIBS=dc_lapack.a liblapack.a

BLACS_LIBS=

SCALAPACK_LIBS=

COMP_LIBS=dc_lapack.a liblapack.a libblas.a

NETCDF_LIBS=

NETCDF_INTERFACE= #(删除这里的`@NETCDF_INTERFACE)

LIBS=$(SCALAPACK_LIBS) $(BLACS_LIBS) $(LAPACK_LIBS) $(BLAS_LIBS)

$(NETCDF_LIBS)

#SIESTA needs an F90 interface to MPI

#This will give you SIESTA's own implementation

#If your compiler vendor offers an alternative, you may

change

#to it here.

MPI_INTERFACE=libmpi_f90.a #(为了并行在这里添加libmpi_f90.a)

MPI_INCLUDE=/opt/mpich2/gnu/include/ #(在这里添加这个的目录,没有添加之前,make不能产生libmpi_f90.a,添加之后,就产生了。不懂)#Dependency rules are created by autoconf according to

whether

#discrete preprocessing is necessary or not.

.F.o:

$(FC) -c $(FFLAGS) $(INCFLAGS) $(FPPFLAGS)

$(FPPFLAGS_fixed_F) $<

.F90.o:

$(FC) -c $(FFLAGS) $(INCFLAGS) $(FPPFLAGS) $(FPPFLAGS_free_F90)

$<

.f.o:

$(FC) -c $(FFLAGS) $(INCFLAGS) $(FCFLAGS_fixed_f) $<

.f90.o:

$(FC) -c $(FFLAGS) $(INCFLAGS)

$(FCFLAGS_free_f90) $<

3.在make!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值