Skip to content

Commit

Permalink
Add an option to run valgrind on xconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mads256h committed Feb 28, 2024
1 parent 10b98d6 commit bf6b3ad
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install valgrind
run: apt install valgrind

# Run configure with high verbosity and valgrind on xconfig
- name: configure
run: |
mkdir build
cd build
../configure --cripple-atlas-performance -v 2
../configure --cripple-atlas-performance -v 2 --valgrind
13 changes: 10 additions & 3 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ rdbitwidth=0
dylib=0
accel=0 # 1: TI_C66_BM, 2: Xeon Phi
irtarg=0
valgrind=
rtarg=
for arg in "$@"
do
Expand Down Expand Up @@ -203,6 +204,12 @@ do
pass="$pass -Si cripple-perf 1"
handled=1
fi
flag=`echo "$arg" | sed -e "s/--valgrind//"`
if test "$flag" != "$arg"
then
valgrind=valgrind
handled=1
fi
flag=`echo "$arg" | sed -e "s/--force-tids=//"`
if test "$flag" != "$arg"
then
Expand Down Expand Up @@ -482,13 +489,13 @@ cp "$path"/CONFIG/src/atlcomp.txt .
# Build and run xconfig
#
make -f Makefile xconfig
echo ./xconfig -d s "$topdir" -d b "$blddir" "$pass"
echo $valgrind ./xconfig -d s "$topdir" -d b "$blddir" "$pass"
#./xconfig -d s "$topdir" -d b "$blddir" `echo "$pass"`
if test $fulllapack -eq 0
then
echo ./xconfig -d s "$topdir" -d b "$blddir" "$pass" | /bin/sh
echo $valgrind ./xconfig -d s "$topdir" -d b "$blddir" "$pass" | /bin/sh
else
echo ./xconfig -d s "$topdir" -d b "$blddir" "$pass" \
echo $valgrind ./xconfig -d s "$topdir" -d b "$blddir" "$pass" \
-D c -DATL_FULL_LAPACK | /bin/sh
fi
ierr=$?
Expand Down

0 comments on commit bf6b3ad

Please sign in to comment.