diff --git a/.travis.yml b/.travis.yml index c31b814..a503f0e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -68,7 +68,7 @@ script: ./build.sh || exit 1; fi; -- | +- | if [[ "$USE_DOCKER" == "TRUE" ]]; then if [[ "$USE_OPENMP" == "TRUE" ]]; then docker run -it -v $(pwd):/root/repo nnvmc/base /bin/bash -c "cd /root/repo/build && make test"; diff --git a/benchmark/run.sh b/benchmark/run.sh index 2ce9906..f220260 100755 --- a/benchmark/run.sh +++ b/benchmark/run.sh @@ -1,6 +1,6 @@ #!/bin/sh -if [ "$1" == "" ]; then +if [ "$1" = "" ]; then echo "Expected the name of the benchmark to run as first argument." else bench=$1 diff --git a/benchmark/run_prof.sh b/benchmark/run_prof.sh index 2c1b8ba..6460068 100755 --- a/benchmark/run_prof.sh +++ b/benchmark/run_prof.sh @@ -1,8 +1,8 @@ #!/bin/sh -if [ "$1" == "" ]; then +if [ "$1" = "" ]; then echo "Expected the name of the benchmark to run as first argument." -elif [ "$2" == "" ]; then +elif [ "$2" = "" ]; then echo "Expected the path of libprofiler.so as second argument." else bench=$1 diff --git a/build.sh b/build.sh index 57bc635..e0335e4 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,7 @@ mkdir -p build && cd build cmake -DCMAKE_CXX_COMPILER="${CXX_COMPILER}" -DUSER_CXX_FLAGS="${CXX_FLAGS}" -DUSE_COVERAGE="${USE_COVERAGE}" -DUSE_OPENMP="${USE_OPENMP}" -DGSL_ROOT_DIR="${GSL_ROOT}" .. -if [ "$1" == "" ]; then +if [ "$1" = "" ]; then make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null) else make -j$1