±±¾©Ê¯ÓÍ»¯¹¤Ñ§Ôº2026ÄêÑо¿ÉúÕÐÉú½ÓÊÕµ÷¼Á¹«¸æ
²é¿´: 631  |  »Ø¸´: 1

vallen

Òø³æ (ÕýʽдÊÖ)

[½»Á÷] DaltonµÄ°²×°Á÷³ÌÊÇÔõÑùµÄ ÒÑÓÐ1È˲ÎÓë

ÎÒ°´ÊÖ²áÉ쵀 ²½Öè°²×°ºó ²âÊÔ Ôõô³ö´íÄØ
ÊDz»ÊÇÐèÒªÉèÖÃʲô¶«Î÷£¿
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

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

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

wuy069

Ìú¸Ëľ³æ (ÕýʽдÊÖ)

¡ï
Сľ³æ(½ð±Ò+0.5):¸ø¸öºì°ü£¬Ð»Ð»»ØÌû
ÎÒÏÖÔÚ¿ÉÒÔ¸øÄã·¢¸ödalton¹ÜÀíÔ±·¢µÄ£¬µ«ÎÒ²»¸ºÔð½â´ð£¬ÎÒÏÖÔÚ¿´µ½Ëü¾Í·³£»
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Â¥2011-07-04 18:09:40
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ vallen µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] Êý¶þÓ¢¶þ348Çóµ÷¼Á +3 hxdzj1 2026-04-03 4/200 2026-04-03 17:17 by ÖзÉÔº¿Õ¹ÜѧԺÑ
[¿¼ÑÐ] 338Çóµ÷¼Á +4 êɹ¦? 2026-04-03 4/200 2026-04-03 14:01 by °ÙÁéͯ888
[¿¼ÑÐ] 309Çóµ÷¼Á +4 ÁõÁõÁõ1231 2026-04-02 5/250 2026-04-03 12:04 by 1753564080
[¿¼ÑÐ] Ò»Ö¾Ô¸»ª¶«Àí¹¤´óѧ£¬080500ѧ˶£¬317·Ö£¬Çóµ÷¼Á +13 s1145 2026-03-31 15/750 2026-04-03 11:44 by msi123
[¿¼ÑÐ] 303Çóµ÷¼Á +3 һɫÇåÓð 2026-04-02 4/200 2026-04-03 10:22 by À¶ÔÆË¼Óê
[¿¼ÑÐ] 311Çóµ÷¼ÁÒ»Ö¾Ô¸ºÏ·Ê¹¤Òµ´óѧ +15 Çï¶þÊ®¶þ 2026-03-30 15/750 2026-04-03 10:19 by linyelide
[¿¼ÑÐ] ½»Í¨ÔËÊ俼ÊÔ264·ÖÇ󹤿Ƶ÷¼Á +4 jike777 2026-04-02 4/200 2026-04-02 21:53 by zllcz
[¿¼ÑÐ] 293Çóµ÷¼Á +4 çæçæÀÖ 2026-04-02 4/200 2026-04-02 20:10 by 6781022
[¿¼ÑÐ] µ÷¼Á +3 ºÃºÃ¶ÁÊé¡£ 2026-04-01 6/300 2026-04-02 15:49 by liumengping
[¿¼ÑÐ] Ò»Ö¾Ô¸°²»Õ´óѧ¼ÆËã»ú¿ÆÑ§Óë¼¼Êõѧ˶£¬331·ÖÇóµ÷¼Á +5 ½¯²ýÅôqtj 2026-04-01 5/250 2026-04-02 08:10 by fxue1114
[¿¼ÑÐ] 307·ÖÇóµ÷¼Á +14 (o~o) 2026-03-31 15/750 2026-04-01 20:43 by longlotian
[¿¼ÑÐ] 358Çóµ÷¼Á +3 ÍõÏòÑô»¨ 2026-03-31 3/150 2026-04-01 09:56 by zzchen2000
[¿¼ÑÐ] ¸´ÊÔµ÷¼Á +7 Ë«ÂíβƦÀϰå2 2026-03-31 7/350 2026-03-31 19:49 by Dyhoer
[¿¼ÑÐ] 254²ÄÁÏÓ뻯¹¤Çóµ÷¼Á +3 º²¶¬ÁÖéª 2026-03-30 4/200 2026-03-31 17:53 by yishunmin
[¿¼ÑÐ] Ò»Ö¾Ô¸Äϲý´óѧ324Çóµ÷¼Á +6 hanamiko 2026-03-29 6/300 2026-03-31 16:35 by hypershenger
[¿¼ÑÐ] Ò»Ö¾Ô¸Î÷µç085401ÊýÒ»Ó¢Ò»299Çóµ÷¼Á Áù¼¶521 +4 °®³Ô´óѼÀæ 2026-03-31 4/200 2026-03-31 11:51 by ²«»÷518
[¿¼ÑÐ] 083000»·¾³¿ÆÑ§Ó빤³Ìµ÷¼Á£¬×Ü·Ö281 +4 ³È×Ó£¨Ê¤Ò⣩ 2026-03-30 4/200 2026-03-31 00:44 by Linzejun
[¿¼ÑÐ] Ò»Ö¾Ô¸»ªÖÐʦ·¶»¯Ñ§332·ÖÇóµ÷¼Á +3 Lyy930824@ 2026-03-29 3/150 2026-03-30 20:15 by DHUSHUAI
[¿¼ÑÐ] ±¾¿ÆË«·Ç²ÄÁÏ£¬¿ç¿¼Ò»Ö¾Ô¸»ªµç085801µçÆø£¬283Çóµ÷¼Á£¬ÈκÎרҵ¶¼¿ÉÒÔ +6 ֥ʿѩbaoo 2026-03-28 8/400 2026-03-29 08:16 by ËÉ»¨¸×1201
[¿¼ÑÐ] ҩѧ105500Çóµ÷¼Á +3 Ssun¡£¡£ 2026-03-28 3/150 2026-03-28 11:24 by lxf170613
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û