Skip to content

Commit

Permalink
Merge pull request #1198 from danielpeter/devel
Browse files Browse the repository at this point in the history
updates test workflows; updates version number for version 8.1.0
  • Loading branch information
danielpeter committed Dec 20, 2023
2 parents a8e5908 + 8f6f005 commit dc4b653
Show file tree
Hide file tree
Showing 11 changed files with 92 additions and 31 deletions.
65 changes: 53 additions & 12 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,31 +176,67 @@ jobs:
sudo echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt-get update
echo ""
echo "packages intel oneapi:"
sudo apt-get install -y intel-oneapi-compiler-fortran intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic intel-oneapi-mpi intel-oneapi-mpi-devel
# info
#sudo -E apt-cache pkgnames intel | grep intel-oneapi
#echo ""
echo "installing packages intel oneapi:"
sudo apt-get install -y intel-oneapi-compiler-fortran-2023.2.2 intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic-2023.2.2 intel-oneapi-mpi intel-oneapi-mpi-devel
echo ""
- name: compiler infos
run: |
echo ""
source /opt/intel/oneapi/setvars.sh
echo ""
echo "compiler versions:"
echo "icx --version"
which icx
icx --version
echo ""
echo "icc --version"
which icc
icc --version
echo ""
echo "ifx --version"
which ifx
ifx --version
echo ""
echo "ifort --version"
which ifort
ifort --version
echo ""
echo "mpiifort --version"
which mpiifort
mpiifort --version
echo ""
echo "mpif90 --version"
which mpif90
mpif90 --version
echo ""
# infos
which ifort
which icc
which mpiifort
echo "mpirun:"
which mpirun
echo ""
# intel setup for running tests
echo ""
echo "replacing mpif90 with mpiifort link:"
sudo ln -sf $(which mpiifort) $(which mpif90)
mpif90 --version
echo ""
# debug
#export I_MPI_DEBUG=5,pid,host
#export I_MPI_LIBRARY_KIND=debug
# remove -ftrapuv which leads to issues for running tests
sed -i "s/-ftrapuv//g" flags.guess
# environment setting
export TERM=xterm
# export info
echo "exports:"
export
echo ""
which ifort
which icc
which mpiifort
echo ""
printenv >> $GITHUB_ENV
echo "CXX=icpc" >> $GITHUB_ENV
Expand All @@ -209,7 +245,8 @@ jobs:
echo ""
- name: configure debug
run: ./configure --enable-debug FC=ifort CC=icc
run: |
./configure --enable-debug FC=ifort CC=icc
- name: make debug
run: |
Expand All @@ -218,15 +255,17 @@ jobs:
make clean
- name: configure
run: ./configure FC=ifort CC=icc
run: |
./configure FC=ifort CC=icc
- name: make
run: |
make -j2 all
make clean
- name: configure parallel debug
run: ./configure --enable-debug --with-mpi FC=ifort CC=icc MPIFC=mpiifort MPI_INC="${I_MPI_ROOT}/include"
run: |
./configure --enable-debug --with-mpi FC=ifort CC=icc MPIFC=mpiifort MPI_INC="${I_MPI_ROOT}/include"
- name: make parallel debug
run: |
Expand All @@ -235,16 +274,18 @@ jobs:
make clean
- name: configure parallel
run: ./configure --with-mpi FC=ifort CC=icc MPIFC=mpiifort MPI_INC="${I_MPI_ROOT}/include"
run: |
./configure --with-mpi FC=ifort CC=icc MPIFC=mpiifort MPI_INC="${I_MPI_ROOT}/include"
- name: make parallel
run: |
make -j2 all
make clean
# fails due to MPI issue on virtual nodes
#- name: make tests
# run: make tests
# note: fails with -ftrapuv flag due to MPI issue on virtual nodes
- name: make tests
run: |
make tests
linuxTest_0:
Expand Down
20 changes: 14 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,20 @@ before_install:
#- test -n $CC && unset CC

# updates repository
# in case travis fails randomly due to missing key
- |
travis_retry sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157
travis_retry sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 78BD65473CB3BD13
travis_retry sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 762E3157
travis_retry sudo apt-get update
# (fails currently...)
#- |
# travis_retry sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157
# travis_retry sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 78BD65473CB3BD13
# travis_retry sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 762E3157
# apt explicit update
#- |
# echo "update apt-get"
# travis_retry sudo apt-get update
# echo
addons:
# apt update
apt:
update: true


install:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.0.0
8.1.0
18 changes: 9 additions & 9 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.71 for Specfem 2D 8.0.0.
# Generated by GNU Autoconf 2.71 for Specfem 2D 8.1.0.
#
# Report bugs to <see the wiki>.
#
Expand Down Expand Up @@ -609,8 +609,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='Specfem 2D'
PACKAGE_TARNAME='Specfem2D'
PACKAGE_VERSION='8.0.0'
PACKAGE_STRING='Specfem 2D 8.0.0'
PACKAGE_VERSION='8.1.0'
PACKAGE_STRING='Specfem 2D 8.1.0'
PACKAGE_BUGREPORT='see the wiki'
PACKAGE_URL=''

Expand Down Expand Up @@ -1382,7 +1382,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures Specfem 2D 8.0.0 to adapt to many kinds of systems.
\`configure' configures Specfem 2D 8.1.0 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
Expand Down Expand Up @@ -1448,7 +1448,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of Specfem 2D 8.0.0:";;
short | recursive ) echo "Configuration of Specfem 2D 8.1.0:";;
esac
cat <<\_ACEOF
Expand Down Expand Up @@ -1585,7 +1585,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
Specfem 2D configure 8.0.0
Specfem 2D configure 8.1.0
generated by GNU Autoconf 2.71
Copyright (C) 2021 Free Software Foundation, Inc.
Expand Down Expand Up @@ -1975,7 +1975,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Specfem 2D $as_me 8.0.0, which was
It was created by Specfem 2D $as_me 8.1.0, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ $0$ac_configure_args_raw
Expand Down Expand Up @@ -9379,7 +9379,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by Specfem 2D $as_me 8.0.0, which was
This file was extended by Specfem 2D $as_me 8.1.0, which was
generated by GNU Autoconf 2.71. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -9447,7 +9447,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
Specfem 2D config.status 8.0.0
Specfem 2D config.status 8.1.0
configured by $0, generated by GNU Autoconf 2.71,
with options \\"\$ac_cs_config\\"
Expand Down
1 change: 1 addition & 0 deletions doc/USER_MANUAL/authors.tex
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ \section*{Authors}
Bryant Chow,
Paul Cristini,
Rene Gassmoeller,
Hom Nath Gharti,
Michael Gineste,
Felix Halpaap,
Dimitri Komatitsch,
Expand Down
5 changes: 5 additions & 0 deletions doc/USER_MANUAL/copyright_and_version.tex
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ \chapter*{Copyright}
\noindent
\textbf{\underline{Evolution of the code:}}\newline

version 8.1, Hom Nath Gharti, Daniel Peter, Eduardo Valero Cano, December 2023:\newline
adds support for Q values in tomographic models;
updates GPU support, OpenMP and test workflows;
various code updates and improvements (noise simulations)\newline

version 8.0, Etienne Bachmann, Alexis Bottero, Bryant Chow, Paul Cristini, Rene Gassmoeller, Michael Gineste,
Felix Halpaap, Dimitri Komatitsch, Matthieu Lefebvre, Qiancheng Liu, Qinya Liu, Zhaolun Liu,
David Luet, Ryan Modrak, Christina Morency, Daniel Peter, Eric Rosenkrantz, Herurisa Rusmanugroho,
Expand Down
Binary file modified doc/USER_MANUAL/manual_SPECFEM2D.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/USER_MANUAL/manual_SPECFEM2D.tex
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
\textbf{User Manual}}

\author{\copyright\ CNRS (France) and Princeton University (USA)\\
Version 8.0
Version 8.1
}

% date of last edit
Expand Down
3 changes: 2 additions & 1 deletion flags.guess
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ case $my_FC in
# I/O throughput lingers at 2.5 MB/s, with it it can increase to ~44 MB/s
# However it does not make much of a difference on NFS mounted volumes or with SFS 3.1.1 / Lustre 1.6.7.1
#
# warnings about external function calls can be suppressed by "-warn all,noexternal" for version > 2018
# optimization report: "-vec-report0" is old and will be replaced by "-qopt-report0 -qopt-report-phase=vec" for v >=15.0
DEF_FFLAGS="-xHost -fpe0 -ftz -assume buffered_io -assume byterecl -align sequence -std08 -diag-disable 6477 -implicitnone -gen-interfaces -warn all" # -mcmodel=medium -shared-intel
DEF_FFLAGS="-xHost -fpe0 -ftz -assume buffered_io -assume byterecl -align sequence -std08 -diag-disable 6477 -implicitnone -gen-interfaces -warn all,noexternal" # -mcmodel=medium -shared-intel
OPT_FFLAGS="-O3 -check nobounds"
DEBUG_FFLAGS="-check all -debug -g -O0 -fp-stack-check -traceback -ftrapuv"
# option "-openmp" is soon deprecated and replaced by "-qopenmp" for versions > 17.x
Expand Down
2 changes: 1 addition & 1 deletion m4
Submodule m4 updated 2 files
+49 −0 cit_catch2.m4
+4 −2 cit_python.m4
5 changes: 5 additions & 0 deletions src/specfem2D/specfem2D.F90
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@
! Evolution of the code:
! ---------------------
!
! version 8.1, Hom Nath Gharti, Daniel Peter, Eduardo Valero Cano, December 2023:
! - adds support for Q values in tomographic models
! - updates GPU support, OpenMP and test workflows
! - various code updates and improvements (noise simulations)
!
! version 8.0, Etienne Bachmann, Alexis Bottero, Bryant Chow, Paul Cristini, Rene Gassmoeller, Michael Gineste,
! Felix Halpaap, Dimitri Komatitsch, Matthieu Lefebvre, Qiancheng Liu, Qinya Liu, Zhaolun Liu,
! David Luet, Ryan Modrak, Christina Morency, Daniel Peter, Eric Rosenkrantz, Herurisa Rusmanugroho,
Expand Down

0 comments on commit dc4b653

Please sign in to comment.