| 2 | 1/1 | 返回列表 |
| 查看: 628 | 回復(fù): 1 | |||
vallen銀蟲 (正式寫手)
|
[交流]
Dalton的安裝流程是怎樣的 已有1人參與
|
|
我按手冊(cè)上的 步驟安裝后 測試 怎么出錯(cuò)呢 是不是需要設(shè)置什么東西? |
鐵桿木蟲 (正式寫手)
|
我現(xiàn)在可以給你發(fā)個(gè)dalton管理員發(fā)的,但我不負(fù)責(zé)解答,我現(xiàn)在看到它就煩; Response to: [dalton-users] Re: dalton compiling with openmpi-1.4.2 (quartarolo@unical.it) Date: Sun, 03 Apr 2011 08:48:59 +0200 From: Jan Mach?ek <jmach@iic.cas.cz> Content-Type: multipart/mixed; boundary="------------000304070309030601060303" Subject: [dalton-users] Re: dalton compiling with openmpi-1.4.2 Dne 30.3.2011 22:49, quartarolo@unical.it p?e: > Dear Dalton users, > first of all, I'm grateful for the answers (of Hans,Jeff,Jan and Juan) > to my problem (better late than never). > I also added to FFlags in Makefile.config the option > -fsecond-underscore (see > the discussion at > https://listearkiv.uio.no/listea ... o.no&msgNo=1058 > and related posts), > > But after recompiling, I still get the following error: > sirius/libsirius.a(sirtra.o): In function `nxth2d_': > sirtra.F .text+0x6c2): undefined reference to `n_nxth2d_'> ... I am sorry for replying again with a delay. I have chronic problems organising my time; due to them I use Dalton just sporadically and have not compiled its new installation for quite a long time. I nevertheless have managed to compile Dalton on a relatively recent hardware using relatively recent open source tools. I attach the two versions of Makefile.config, one for the serial version, the other for the paralel one. Compiling first with the paralel Makefile.config, then with the serial one I have got both binaries along each other (the dalton.x binary produced with the paralel settings depends on mpi libraries, but the serial compilation does not overwrite the dalpar.x binary). Due to the age of Dalton 2.0, I had to edit the generated Makefile.conf by hand. The basic principle is: Say godbye to F77. Since the time of the Dalton 2.0 release, gcc has abandoned g77 in favor of gfortran, a more modern F90 compiler; among other things, underscoring conventions have changed. Usually, removing options referencing g77, f77 or f2c, as well as those referencing underscoring directly, adjusts the code to gfortran well. In my Makefile.config files, there are some settings specific to my system, more or less arbitrary or, perhaps, even some wrong choices that did not manifest by a fatal crash. Definitely the -march=native option in compiler flags is architecture dependent, as well as entirely optional; native should work for all architectures, but only with recent gcc, I am not sure since what version. Good luck compiling. Jan Mach?ek ARCH = linux # # CPPFLAGS = -DVAR_GFORTRAN -DSYS_LINUX -DVAR_MFDS -D'INSTALL_WRKMEM=128000000' -D'INSTALL_MMWORK=128000000' -D_FILE_OFFSET_BITS=64 -DVAR_MPI -DGFORTRAN=432 -DIMPLICIT_NONE -DINSTALL_BASDIR='"/home/jmach/src/dalton-2.0-cam/basis/"' F77 = mpif90 CC = mpicc LOADER = mpif90 RM = rm -f FFLAGS = -march=native -O3 -ffast-math -funroll-loops -ftree-vectorize -fno-range-check SAFEFFLAGS = -march=native -O3 -ffast-math -funroll-loops -ftree-vectorize -fno-range-check CFLAGS = -march=native -O3 -ffast-math -funroll-loops -ftree-vectorize -std=c99 -DRESTRICT=restrict -DFUNDERSCORE=1 INCLUDES = -I../include -I/usr/include LIBS = -L/usr/lib64 -llapack -lblas -latlas -lpthread INSTALLDIR = /home/jmach/src/dalton-2.0-cam/bin PDPACK_EXTRAS = linpack.o eispack.o gp_zlapack.o GP_EXTRAS = AR = ar ARFLAGS = rvs # flags for ftnchek on Dalton /hjaaj CHEKFLAGS = -nopure -nopretty -nocommon -nousage -noarray -notruncation -quiet -noargumants -arguments=number -usage=var-unitialized # -usage=var-unitialized:arg-const-modified:arg-alias # -usage=var-unitialized:var-set-unused:arg-unused:arg-const-modified:arg-alias # default : linuxparallel.x SAFE2_FFLAGS = $(FFLAGS) # # Parallel initialization # MPI_INCLUDE_DIR = -I/usr/include MPI_LIB_PATH = -L/usr/lib MPI_LIB = -lmpi # # # Suffix rules # hjaaj Oct 04: .g is a "cheat" suffix, for debugging. # 'make x.g' will create x.o from x.F or x.c with -g debug flag set. # .SUFFIXES : .F .c .o .i .g .s .F.o: $(F77) $(INCLUDES) $(CPPFLAGS) $(FFLAGS) -c $*.F .F.i: $(F77) $(INCLUDES) $(CPPFLAGS) -E $*.F > $*.i .F.g: $(F77) $(INCLUDES) $(CPPFLAGS) $(FFLAGS) -g -c $*.F .F.s: $(F77) $(INCLUDES) $(CPPFLAGS) $(FFLAGS) -S -g -c $*.F .c.o: $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -c $*.c .c.i: $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -E $*.c > $.i .c.g: $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -g -c $*.c .c.s: $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -S -g -c $*.c ARCH = linux # # CPPFLAGS = -DVAR_GFORTRAN -DSYS_LINUX -DVAR_MFDS -D'INSTALL_WRKMEM=128000000' -D'INSTALL_MMWORK=128000000' -D_FILE_OFFSET_BITS=64 -DGFORTRAN=432 -DIMPLICIT_NONE -DINSTALL_BASDIR='"/home/jmach/src/dalton-2.0-cam/basis/"' F77 = gfortran CC = gcc LOADER = gfortran RM = rm -f FFLAGS = -march=native -O3 -ffast-math -funroll-loops -ftree-vectorize -fno-range-check SAFEFFLAGS = -march=native -O3 -ffast-math -funroll-loops -ftree-vectorize -fno-range-check CFLAGS = -march=native -O3 -ffast-math -funroll-loops -ftree-vectorize -std=c99 -DRESTRICT=restrict -DFUNDERSCORE=1 INCLUDES = -I../include LIBS = -L/usr/lib64 -llapack -lblas -latlas -lpthread INSTALLDIR = /home/jmach/src/dalton-2.0-cam/bin PDPACK_EXTRAS = linpack.o eispack.o gp_zlapack.o GP_EXTRAS = AR = ar ARFLAGS = rvs # flags for ftnchek on Dalton /hjaaj CHEKFLAGS = -nopure -nopretty -nocommon -nousage -noarray -notruncation -quiet -noargumants -arguments=number -usage=var-unitialized # -usage=var-unitialized:arg-const-modified:arg-alias # -usage=var-unitialized:var-set-unused:arg-unused:arg-const-modified:arg-alias # default : linux.x SAFE2_FFLAGS = $(FFLAGS) # # Suffix rules # hjaaj Oct 04: .g is a "cheat" suffix, for debugging. # 'make x.g' will create x.o from x.F or x.c with -g debug flag set. # .SUFFIXES : .F .c .o .i .g .s .F.o: $(F77) $(INCLUDES) $(CPPFLAGS) $(FFLAGS) -c $*.F .F.i: $(F77) $(INCLUDES) $(CPPFLAGS) -E $*.F > $*.i .F.g: $(F77) $(INCLUDES) $(CPPFLAGS) $(FFLAGS) -g -c $*.F .F.s: $(F77) $(INCLUDES) $(CPPFLAGS) $(FFLAGS) -S -g -c $*.F .c.o: $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -c $*.c .c.i: $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -E $*.c > $.i .c.g: $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -g -c $*.c .c.s: $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) -S -g -c $*.c |
| 2 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考博] 環(huán)境領(lǐng)域全國重點(diǎn)實(shí)驗(yàn)室招收博士1-2名 +3 | QGZDSYS 2026-03-13 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 材料專碩306英一數(shù)二 +8 | z1z2z3879 2026-03-16 | 10/500 |
|
|
[考研] 311求調(diào)劑 +9 | 冬十三 2026-03-15 | 10/500 |
|
|
[考研] 326求調(diào)劑 +5 | 上岸的小葡 2026-03-15 | 6/300 |
|
|
[考研] 302求調(diào)劑 +9 | 負(fù)心者當(dāng)誅 2026-03-11 | 9/450 |
|
|
[考研] 085601求調(diào)劑 +4 | Du.11 2026-03-16 | 4/200 |
|
|
[考研] 293求調(diào)劑 +6 | 世界首富 2026-03-11 | 6/300 |
|
|
[考研] 332求調(diào)劑 +6 | Zz版 2026-03-13 | 6/300 |
|
|
[考研] 有沒有道鐵/土木的想調(diào)劑南林,給自己招師弟中~ +3 | TqlXswl 2026-03-16 | 7/350 |
|
|
[考研] 274求調(diào)劑 +5 | 時(shí)間點(diǎn) 2026-03-13 | 5/250 |
|
|
[考研] 0703化學(xué)調(diào)劑 +6 | 妮妮ninicgb 2026-03-15 | 9/450 |
|
|
[考研] 26考研一志愿中國石油大學(xué)(華東)305分求調(diào)劑 +3 | 嘉年新程 2026-03-15 | 3/150 |
|
|
[考研] 070305求調(diào)劑 +3 | mlpqaz03 2026-03-14 | 4/200 |
|
|
[考研] 中科大材料與化工319求調(diào)劑 +3 | 孟鑫材料 2026-03-14 | 3/150 |
|
|
[考研] 330求調(diào)劑 +3 | ?醬給調(diào)劑跪了 2026-03-13 | 3/150 |
|
|
[考研] 招收0805(材料)調(diào)劑 +3 | 18595523086 2026-03-13 | 3/150 |
|
|
[考研] 304求調(diào)劑 +6 | Mochaaaa 2026-03-12 | 7/350 |
|
|
[考研] 材料與化工求調(diào)劑一志愿 985 總分 295 +8 | dream…… 2026-03-12 | 8/400 |
|
|
[考研] 一志愿西南交大,材料專碩317求調(diào)劑 +5 | lx8568 2026-03-11 | 5/250 |
|
|
[考研] 0703化學(xué)求調(diào)劑 +7 | 綠豆芹菜湯 2026-03-12 | 7/350 |
|