| 24小時熱門版塊排行榜 |
| 5 | 1/1 | 返回列表 |
| 查看: 3324 | 回復: 17 | |||
| 本帖產生 1 個 1ST強帖 ,點擊這里進行查看 | |||
| 當前只顯示滿足指定條件的回帖,點擊這里查看本話題的所有回帖 | |||
[交流]
【求助】安裝siesta2.0.2時如何編譯arch.make??
|
|||
|
汗,又遇到問題了,特請善良的好心的蟲蟲指點~~~~ 前面編譯MKL 和ifort都成功了 后來又安裝了openmpi,可是,如果我不做并行計算,這個MPI不安裝也行吧,安裝了也沒壞處吧? 俺是菜鳥啊,大俠們多多體諒啊~~ 安裝SIESTA2.0.2時,我的命令是這樣的; 先 tar -zxvf siesta-2.0.2.tgz 解壓縮 然后cd Src 然后cp Sys/intel-mkl.make arch.make 就是把Sys的intel-mkl.make文件拷貝到Src下,然后改名為arch.make吧 之后,是不是要修改arch.make呢 命令是vi arch.make么?這個命令不太符合XP下的編輯習慣,有沒有適合XP編輯下的命令呢?? 然后,編譯arch.make文件后,是不是輸入$make就可以了? 下面是我的原始arch.make文件,沒有做任何修改的 我應該改哪些參數呢? 我看了別人編譯的一些例子,用紅字標記的應該是要改的吧,怎么改呢?還有,貌似我的arch.make好像不完善? 求高人指點,小女子感激不盡! ![]() 我的系統(tǒng)是ubantu9.04 MKL是10.3.2.137 ifort是2011.2.137 openmpi是1.4.2 ------------------------------------------ # # 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. # SIESTA_ARCH=intel-mkl# # Intel fortran compiler for linux with mkl optimized blas and lapack # # Be sure to experiment with different optimization options. # You have quite a number of combinations to try... # FC=ifc # FFLAGS= -w -mp -tpp5 -O3 FFLAGS_DEBUG= -g LDFLAGS=-Vaxlib COMP_LIBS= RANLIB=echo # NETCDF_LIBS= NETCDF_INTERFACE= DEFS_CDF= # MPI_INTERFACE= MPI_INCLUDE= DEFS_MPI= # GUIDE=/opt/intel/mkl/lib/32/libguide.a LAPACK=/opt/intel/mkl/lib/32/libmkl_lapack.a BLAS=/opt/intel/mkl/lib/32/libmkl_p3.a #G2C=/usr/lib/gcc-lib/i386-redhat-linux/2.96/libg2c.a LIBS=$(LAPACK) $(BLAS) $(G2C) $(GUIDE) -lpthread SYS=bsdDEFS= $(DEFS_CDF) $(DEFS_MPI) # .F.o: $(FC) -c $(FFLAGS) $(INCFLAGS) $(DEFS) $< .f.o: $(FC) -c $(FFLAGS) $(INCFLAGS) $< .F90.o: $(FC) -c $(FFLAGS) $(INCFLAGS) $(DEFS) $< .f90.o: $(FC) -c $(FFLAGS) $(INCFLAGS) $< # [ Last edited by mayim2008 on 2011-4-6 at 22:01 ] |
» 搶金幣啦!回帖就可以得到:
+2/124
+1/87
+2/76
+2/66
+1/41
+3/39
+1/37
+1/33
+1/33
+1/32
+3/25
+1/18
+1/11
+1/11
+1/9
+1/6
+1/5
+1/5
+1/1
+1/1
|
你好,我今天去測試了 ifort編譯是成功的,出現了Command line error: no files specified; for help type "ifort -help" 然后,我又修改了: BLAS=/home/juan/intel/mkl/lib/ia32/libmkl_blas95.a GUIDE文件名始終找不到,不知道為什么 MAKE之后出現: ifort:command line remark #10010 : option" -Vaxlib" is deprecated and will beremoved in a future release. see "-help deprecated" ifort:error #10236:File not found '/home/juan/intel/mkl/lib/ia32/libguide.a" make: ***[siesta] error 1 怎么回事呢? GUIDE文件名就是沒看到啊 |
|
我沒有安裝過siesta,不了解有什么特別注意的地方,說下我知道的 首先,用不慣vi 你可以使用 gedit arch.make 來編輯它 至于文件中需要修改的地方 GUIDE=/opt/intel/mkl/lib/32/libguide.a LAPACK=/opt/intel/mkl/lib/32/libmkl_lapack.a BLAS=/opt/intel/mkl/lib/32/libmkl_p3.a 這些是數學庫的路徑,應該設置成你系統(tǒng)的情況,也就是說找到libmkl_p3.a,libmkl_lapack.a,libguide.a 在哪,把正確的路徑添加到這里。 另外FC=ifc 這個是你的fortran編譯器命令,現在intel的命令應該是ifort吧 MPI_... 相關行的是設置并行的,如果你不打算并行計算可以忽略 你可以試著執(zhí)行下編譯,看有什么提示 編譯的命令應該是make,不過也可能需要加入選項,比如make -all之類的。你可以看下程序的主文件夾下有沒有Readme,或者打開Makefile文件看文件最開始有沒有相關的提示 |
|
我也是用的mkl編譯的。只不過我用的是64位的,當然也有對應的32位的。可以類比一下。 # # 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- . # # 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-REHL-5.4 FPP= FPP_OUTPUT= FC=mpif90 RANLIB=ranlib SYS=nag SP_KIND=4 DP_KIND=8 KINDS=$(SP_KIND) $(DP_KIND) FFLAGS= -O2 -i-static FFLAGS_DEBUG= -g LDFLAGS=-Vaxlib FPPFLAGS= -DFC_HAVE_FLUSH -DFC_HAVE_ABORT -DMPI ARFLAGS_EXTRA= FCFLAGS_fixed_f= FCFLAGS_free_f90= FPPFLAGS_fixed_F= FPPFLAGS_free_F90= BLAS_LIBS=-L/home/zhanggp/intel/mkl/10.0.2.018/lib/em64t -lmkl_solver_lp64 -lmkl_intel_lp64 -lguide LAPACK_LIBS=-L/home/zhanggp/intel/mkl/10.0.2.018/lib/em64t -lmkl_sequential -lmkl_core BLACS_LIBS=-L/home/zhanggp/intel/mkl/10.0.2.018/lib/em64t -lmkl_blacs_openmpi_lp64 SCALAPACK_LIBS=-L/home/zhanggp/intel/mkl/10.0.2.018/lib/em64t -lmkl_scalapack_lp64 COMP_LIBS= NETCDF_LIBS= 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 MPI_INCLUDE=/home/zhanggp/software/openmpi-1.2.6/include #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) $< |
|
你好,今天去編譯了一下,修改了如下參數, FC=ifort LAPACK=/home/juan/intel/mkl/lib/ia32/libmkl_lapack.a 另,沒有l(wèi)ibmkl_p3.a這個文件啊,只有l(wèi)ibmkl_p4.so文件 也找不到libguide.a文件 make后 出現了: Compilation architecture to be used: intel-mkl If this is not what you want, create the right arch.make file using the models in Sys Hit ^C to abort... ==> Incorporating information about present compilation (compiler and flags) make[1]: Entering directory `/home/syzx/TEM/siesta-2.0.2/Src' ifort -c -w -mp -tpp5 -O3 compinfo.F90 make[1]: ifort: Command not found make[1]: *** [compinfo.o] Error 127 make[1]: Leaving directory `/home/syzx/TEM/siesta-2.0.2/Src' make: *** [version] Error 2 ---------------------------------------------- |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 311(085601)求調劑 +11 | liziyeyeye 2026-03-28 | 12/600 |
|
|---|---|---|---|---|
|
[考研] 271求調劑 +8 | 勒布朗@ 2026-03-31 | 10/500 |
|
|
[考研] 考研調劑 +5 | Amber00 2026-03-31 | 5/250 |
|
|
[考研] 315求調劑 +6 | akie... 2026-03-28 | 7/350 |
|
|
[考研] 272求調劑,接受跨專業(yè)調劑! +3 | 閑魚盧 2026-03-31 | 3/150 |
|
|
[考研] 287求調劑 +17 | land xuxu 2026-03-26 | 17/850 |
|
|
[考研] 總分322求生物學/生化與分子/生物信息學相關調劑 +6 | 星沉uu 2026-03-26 | 7/350 |
|
|
[考研] 材料與化工調劑一志愿大連海事085600,349 +6 | 吃的不少 2026-03-30 | 6/300 |
|
|
[考研] 一志愿鄭大材料工程290求調劑 +12 | Youth_ 2026-03-30 | 12/600 |
|
|
[考研] 370求調劑 +3 | 080700調劑 2026-03-30 | 3/150 |
|
|
[考研] 調劑 +4 | GK72 2026-03-30 | 4/200 |
|
|
[考研]
|
gr哈哈哈 2026-03-28 | 3/150 |
|
|
[考研] 304求調劑 +6 | 曼殊2266 2026-03-27 | 6/300 |
|
|
[考研] 292求調劑 +14 | 鵝鵝鵝額額額額?/a> 2026-03-25 | 15/750 |
|
|
[考研] 275求調劑 +10 | jjjjjjjjjjl 2026-03-27 | 10/500 |
|
|
[考研] 314求調劑 +3 | 溪云珂 2026-03-26 | 3/150 |
|
|
[碩博家園] 北京林業(yè)大學碩導招生廣告 +6 | kongweilin 2026-03-26 | 8/400 |
|
|
[考研] 321求調劑 +6 | wasdssaa 2026-03-26 | 6/300 |
|
|
[考研] 081200-11408-276學碩求調劑 +3 | 崔wj 2026-03-26 | 3/150 |
|
|
[考研] 347求調劑 +4 | L when 2026-03-25 | 4/200 |
|