Skip to content

Commit 228102e

Browse files
committed
Nbody6++GPU-Dec2019-bugfix. Mainly fixed a problem in hrplot.F. See Rainer's email at 2020 July 8th or 9th for detail.
1 parent 1c537fa commit 228102e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+3782
-492
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# make install
77
#
88

9-
RESULT = nbody6++.sse.gpu.mpi
9+
RESULT = nbody6++.avx
1010
INSTALLDIR = /usr/local
1111
EXTRATOOLS = nb6++dumpb2a libinitial.so libnb6out3.so nb6++snapshot
1212
ifeq ("x", "x $(EXTRATOOLS)")

config.status

+21-21
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ $config_files
417417
418418
Report bugs to <[email protected]>."
419419

420-
ac_cs_config="'--with-par=b1m' '--enable-simd=sse' '--enable-mcmodel=large'"
420+
ac_cs_config="'--disable-mpi' '--disable-gpu' '--with-par=128k'"
421421
ac_cs_version="\
422422
Nbody6++ config.status 1.0
423423
configured by ./configure, generated by GNU Autoconf 2.69,
@@ -427,9 +427,9 @@ Copyright (C) 2012 Free Software Foundation, Inc.
427427
This config.status script is free software; the Free Software Foundation
428428
gives unlimited permission to copy, distribute and modify it."
429429

430-
ac_pwd='/p/home/jusers/spurzem2/jusuf/Nbody/Nbody6++GPU-Dec2019-bugfix'
430+
ac_pwd='/work/Tux1/spurzem/Nbody/Nbody6++GPU-Dec2019'
431431
srcdir='.'
432-
AWK='gawk'
432+
AWK=''
433433
test -n "$AWK" || AWK=awk
434434
# The default lists apply if the user does not specify any file.
435435
ac_need_defaults=:
@@ -496,7 +496,7 @@ if $ac_cs_silent; then
496496
fi
497497

498498
if $ac_cs_recheck; then
499-
set X /bin/sh './configure' '--with-par=b1m' '--enable-simd=sse' '--enable-mcmodel=large' $ac_configure_extra_args --no-create --no-recursion
499+
set X /bin/sh './configure' '--disable-mpi' '--disable-gpu' '--with-par=128k' $ac_configure_extra_args --no-create --no-recursion
500500
shift
501501
$as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
502502
CONFIG_SHELL='/bin/sh'
@@ -585,18 +585,18 @@ fi
585585
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
586586
cat >>"$ac_tmp/subs1.awk" <<\_ACAWK &&
587587
S["LTLIBOBJS"]=""
588-
S["MMAX"]="2048"
588+
S["MMAX"]="1024"
589589
S["LMAX"]="600"
590-
S["KMAX"]="512000"
591-
S["NMAX"]="1510720"
590+
S["KMAX"]="65536"
591+
S["NMAX"]="131072"
592592
S["EXTRARESULT"]=""
593-
S["EXTRAOBJ"]=" $(CUDA_OBJECTS) ${IRRSSE_OBJECTS}"
594-
S["EXTRASRC"]=" $(GPU_FSOURCES) $(MPI_FSOURCES)"
595-
S["RESULT"]=".sse.gpu.mpi"
596-
S["CUFLAGS"]=" -O3 -D CUDA_5 -I /p/software/jusuf/stages/2019a/software/CUDA/10.1.105/samples/common/inc"
597-
S["AWK"]="gawk"
598-
S["SED"]="/usr/bin/sed"
599-
S["NVCC"]="nvcc"
593+
S["EXTRAOBJ"]=" ${AVX_OBJECTS}"
594+
S["EXTRASRC"]=" $(GPU_FSOURCES)"
595+
S["RESULT"]=".avx"
596+
S["CUFLAGS"]=""
597+
S["AWK"]=""
598+
S["SED"]=""
599+
S["NVCC"]=""
600600
S["LIBOBJS"]=""
601601
S["EGREP"]="/usr/bin/grep -E"
602602
S["CXXCPP"]="g++ -E"
@@ -607,19 +607,19 @@ S["CFLAGS"]="-g -O2"
607607
S["CC"]="gcc"
608608
S["ac_ct_CXX"]="g++"
609609
S["CPPFLAGS"]=""
610-
S["CXXFLAGS"]=" -O3 -fopenmp -I../include -march=native -fPIC -mcmodel=large -msse ${OMP_FLAGS}"
610+
S["CXXFLAGS"]=" -O3 -fopenmp -I../include -march=native -fPIC -mcmodel=medium -mavx ${OMP_FLAGS}"
611611
S["CXX"]="g++"
612612
S["OPENMP_FCFLAGS"]="-fopenmp"
613613
S["OBJEXT"]="o"
614614
S["EXEEXT"]=""
615615
S["ac_ct_FC"]="gfortran"
616-
S["LDFLAGS"]=" -L"
617-
S["FCFLAGS"]=" -O3 -fPIC -mcmodel=large -fopenmp -I../include $(GPU_FLAGS) $(MPI_FLAGS) ${SIMD_FLAGS} ${OMP_FLAGS}"
618-
S["FC"]="mpif77"
616+
S["LDFLAGS"]=""
617+
S["FCFLAGS"]=" -I../extra_inc/nompi -O3 -fPIC -mcmodel=medium -fopenmp -I../include ${SIMD_FLAGS} $(GPU_FLAGS) ${OMP_FLAGS}"
618+
S["FC"]="gfortran"
619619
S["target_alias"]=""
620620
S["host_alias"]=""
621621
S["build_alias"]=""
622-
S["LIBS"]=" -lstdc++ -lcudart"
622+
S["LIBS"]=" -lstdc++"
623623
S["ECHO_T"]=""
624624
S["ECHO_N"]="-n"
625625
S["ECHO_C"]=""
@@ -629,7 +629,7 @@ S["DEFS"]="-DPACKAGE_NAME=\\\"Nbody6++\\\" -DPACKAGE_TARNAME=\\\"nbody6--\\\" -D
629629
"E_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMSET=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1"
630630
S["mandir"]="${datarootdir}/man"
631631
S["localedir"]="${datarootdir}/locale"
632-
S["libdir"]="${exec_prefix}/lib"
632+
S["libdir"]="${exec_prefix}/lib64"
633633
S["psdir"]="${docdir}"
634634
S["pdfdir"]="${docdir}"
635635
S["dvidir"]="${docdir}"
@@ -643,7 +643,7 @@ S["sharedstatedir"]="${prefix}/com"
643643
S["sysconfdir"]="${prefix}/etc"
644644
S["datadir"]="${datarootdir}"
645645
S["datarootdir"]="${prefix}/share"
646-
S["libexecdir"]="${exec_prefix}/libexec"
646+
S["libexecdir"]="${exec_prefix}/lib"
647647
S["sbindir"]="${exec_prefix}/sbin"
648648
S["bindir"]="${exec_prefix}/bin"
649649
S["program_transform_name"]="s,x,x,"

0 commit comments

Comments
 (0)