Skip to content

Commit

Permalink
codefactor suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ithanil committed Feb 24, 2019
1 parent 3069f1a commit 3fa5dff
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion benchmark/run.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions benchmark/run_prof.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3fa5dff

Please sign in to comment.