Skip to content

Commit 3fa5dff

Browse files
committed
codefactor suggestions
1 parent 3069f1a commit 3fa5dff

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ script:
6868
./build.sh || exit 1;
6969
fi;
7070
71-
- |
71+
- |
7272
if [[ "$USE_DOCKER" == "TRUE" ]]; then
7373
if [[ "$USE_OPENMP" == "TRUE" ]]; then
7474
docker run -it -v $(pwd):/root/repo nnvmc/base /bin/bash -c "cd /root/repo/build && make test";

benchmark/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
if [ "$1" == "" ]; then
3+
if [ "$1" = "" ]; then
44
echo "Expected the name of the benchmark to run as first argument."
55
else
66
bench=$1

benchmark/run_prof.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/sh
22

3-
if [ "$1" == "" ]; then
3+
if [ "$1" = "" ]; then
44
echo "Expected the name of the benchmark to run as first argument."
5-
elif [ "$2" == "" ]; then
5+
elif [ "$2" = "" ]; then
66
echo "Expected the path of libprofiler.so as second argument."
77
else
88
bench=$1

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
mkdir -p build && cd build
55
cmake -DCMAKE_CXX_COMPILER="${CXX_COMPILER}" -DUSER_CXX_FLAGS="${CXX_FLAGS}" -DUSE_COVERAGE="${USE_COVERAGE}" -DUSE_OPENMP="${USE_OPENMP}" -DGSL_ROOT_DIR="${GSL_ROOT}" ..
66

7-
if [ "$1" == "" ]; then
7+
if [ "$1" = "" ]; then
88
make -j$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
99
else
1010
make -j$1

0 commit comments

Comments
 (0)