Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JENKINS: Set CPU affinity according to executor number. #34

Merged
merged 1 commit into from
Nov 26, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions contrib/test_jenkins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ else
WS_URL=$JOB_URL/ws
fi

# Set CPU affinity to 2 cores, for performance tests
if [ -n "$EXECUTOR_NUMBER" ]
then
AFFINITY="taskset -c $(( 2 * EXECUTOR_NUMBER ))","$(( 2 * EXECUTOR_NUMBER + 1))"
else
AFFINITY=""
fi


rpm_topdir=$WORKSPACE/rpm-dist

make_opt="-j$(($(nproc) - 1))"
Expand All @@ -26,7 +35,7 @@ echo "Making a directory for test build"
mkdir -p build-test
cd build-test

echo "Build w/o IB"
echo "Build without IB verbs"
../contrib/configure-release --without-verbs && make $make_opt

echo "Build release"
Expand All @@ -37,15 +46,14 @@ module load hpcx-gcc
make clean && ../contrib/configure-devel --with-mpi && make $make_opt
module unload hpcx-gcc

echo "Starting gtest"

make -C test/gtest test
echo "Running unit tests"
$AFFINITY make -C test/gtest test

echo "Running valgrind tests"
module load tools/valgrind
make -C test/gtest VALGRIND_EXTRA_ARGS="--xml=yes --xml-file=valgrind.xml" test_valgrind
$AFFINITY make -C test/gtest VALGRIND_EXTRA_ARGS="--xml=yes --xml-file=valgrind.xml" test_valgrind
module unload tools/valgrind


echo "Build with coverity"
module load tools/cov
cov_build_id="cov_build_${BUILD_NUMBER}"
Expand Down