travis: run regression test (limited due to hardware available) + test with ppc64le (#117)

build: add linux-ppc64le target.

There appears to be a regression on the target localized to epoch section optimization. I will need to investigate further.
awsm
Daniel Black 6 years ago committed by Samy Al Bahra
parent 1c2469358e
commit 27c5f6f05f

@ -1,5 +1,9 @@
# sudo required as tests set cpu affinity
sudo: false
os: os:
- linux - linux
- linux-ppc64le
- osx - osx
language: language:
@ -9,4 +13,28 @@ compiler:
- gcc - gcc
- clang - clang
script: ./tools/ci-build.sh matrix:
exclude:
- os: osx
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
packages:
- gcc-8
- clang-6.0
script:
- >
if [[ $TRAVIS_OS_NAME == linux ]]; then
case "$CC" in
gcc) export CC=gcc-8 ;;
clang) export CC=clang-6.0 ;;
esac
fi
- ${CC} --version
- export CFLAGS="-DITERATE=400 -DPAIRS_S=100 -DITERATIONS=24"
- ./tools/ci-build.sh --cores=4
- make check

@ -285,7 +285,10 @@ aff_iterate(struct affinity *acb)
CPU_ZERO(&s); CPU_ZERO(&s);
CPU_SET(c % CORES, &s); CPU_SET(c % CORES, &s);
return sched_setaffinity(gettid(), sizeof(s), &s); if (sched_setaffinity(gettid(), sizeof(s), &s) != 0)
perror("WARNING: Could not affine thread");
return 0;
} }
CK_CC_UNUSED static int CK_CC_UNUSED static int
@ -297,7 +300,10 @@ aff_iterate_core(struct affinity *acb, unsigned int *core)
CPU_ZERO(&s); CPU_ZERO(&s);
CPU_SET((*core) % CORES, &s); CPU_SET((*core) % CORES, &s);
return sched_setaffinity(gettid(), sizeof(s), &s); if (sched_setaffinity(gettid(), sizeof(s), &s) != 0)
perror("WARNING: Could not affine thread");
return 0;
} }
#elif defined(__MACH__) #elif defined(__MACH__)
CK_CC_UNUSED static int CK_CC_UNUSED static int

@ -4,6 +4,6 @@
############################################################################## ##############################################################################
set -x set -x
./configure ./configure $@
make -j make -j

Loading…
Cancel
Save