Skip to content

Commit

Permalink
ci: enable tau check
Browse files Browse the repository at this point in the history
  • Loading branch information
vicentebolea committed Oct 17, 2023
1 parent 65390e3 commit 4980f81
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/everything.yml
Original file line number Diff line number Diff line change
Expand Up @@ -448,18 +448,19 @@ jobs:
strategy:
fail-fast: false
matrix:
code: [lammps]
code: [lammps, tau]
include:
- code: lammps
repo: pnorbert/lammps
ref: fix-deprecated-adios-init

- code: tau
defaults:
run:
shell: bash -c "docker exec adios2-ci bash --login -e $(echo {0} | sed 's|/home/runner/work|/__w|g')"

steps:
- uses: actions/checkout@v4
if: ${{ matrix.repo != '' }}
with:
repository: ${{ matrix.repo }}
ref: ${{ matrix.ref }}
Expand Down
8 changes: 8 additions & 0 deletions testing/contract/tau/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

set -x
set -e

source $(dirname $(readlink -f ${BASH_SOURCE}))/setup.sh

cmake --build ${build_dir} -j8
13 changes: 13 additions & 0 deletions testing/contract/tau/config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -x
set -e

source $(dirname $(readlink -f ${BASH_SOURCE}))/setup.sh

mkdir -p ${build_dir}
cd ${build_dir}

cmake \
-DCMAKE_INSTALL_PREFIX=${install_dir} \
${source_dir}
6 changes: 6 additions & 0 deletions testing/contract/tau/depends.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -x
set -e

sudo /opt/spack/bin/spack install -v tau ~fortran ~papi ~pdt ~otf2
8 changes: 8 additions & 0 deletions testing/contract/tau/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

set -x
set -e

source $(dirname $(readlink -f ${BASH_SOURCE}))/setup.sh

cmake --install ${build_dir}
11 changes: 11 additions & 0 deletions testing/contract/tau/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
source_dir="/opt/adios2/source/examples/basics/variablesShapes"
build_dir=$(readlink -f ${PWD})/build
install_dir=$(readlink -f ${PWD})/install
test_dir=$(readlink -f ${PWD})/test

echo "source_dir = \"${source_dir}\""
echo "build_dir = \"${build_dir}\""
echo "install_dir = \"${install_dir}\""
echo "test_dir = \"${test_dir}\""

module load tau
19 changes: 19 additions & 0 deletions testing/contract/tau/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

set -x
set -e

source $(dirname $(readlink -f ${BASH_SOURCE}))/setup.sh

mkdir -p ${test_dir}
cd ${test_dir}

TAU=$(spack location -i tau)/bin/tau_exec

mpiexec -np 2 ${TAU} ${install_dir}/bin/adios2_basics_variablesShapes

[ ! -f profile.0.0.0 ] || [ ! -s profile.0.0.0 ] && { echo "Error: file profile.0.0.0 not found or empty"; exit 1; }
[ ! -f profile.1.0.0 ] || [ ! -s profile.1.0.0 ] && { echo "Error: file profile.1.0.0 not found or empty"; exit 1; }

cat profile.0.0.0
cat profile.1.0.0

0 comments on commit 4980f81

Please sign in to comment.