From 00cd08a13b2c59012f59c0fc1fddc10404d229a3 Mon Sep 17 00:00:00 2001 From: Daniel Peter Date: Wed, 20 Dec 2023 22:19:05 +0100 Subject: [PATCH] updates tests --- .github/workflows/CI.yml | 65 ++++++++++++++++++++++++++++++++-------- .travis.yml | 20 +++++++++---- flags.guess | 3 +- 3 files changed, 69 insertions(+), 19 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 39459f2a9..c8739fa8a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -176,8 +176,12 @@ 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: | @@ -185,22 +189,54 @@ jobs: 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 @@ -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: | @@ -218,7 +255,8 @@ jobs: make clean - name: configure - run: ./configure FC=ifort CC=icc + run: | + ./configure FC=ifort CC=icc - name: make run: | @@ -226,7 +264,8 @@ jobs: 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: | @@ -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: diff --git a/.travis.yml b/.travis.yml index a04c7f9b9..4597972e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/flags.guess b/flags.guess index 500698bc8..481556afe 100644 --- a/flags.guess +++ b/flags.guess @@ -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