Skip to content

Commit

Permalink
move layer timing flag out of multinode flag in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
fzou1 committed Jan 2, 2018
1 parent fb26b33 commit 6df7362
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions scripts/build_intelcaffe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,17 @@ function build_caffe_gcc

if [ $is_multinode_ -eq 1 ]; then
echo "USE_MLSL := 1" >> Makefile.config
if [ $is_layer_timing -eq 1 ]; then
echo "CAFFE_PER_LAYER_TIMINGS := 1" >> Makefile.config
fi

mlslvars_sh=`find external/mlsl/ -name mlslvars.sh`
if [ -f $mlslvars_sh ]; then
source $mlslvars_sh
fi
fi

if [ $is_layer_timing -eq 1 ]; then
echo "CAFFE_PER_LAYER_TIMINGS := 1" >> Makefile.config
fi

if [ $debug -eq 1 ]; then
echo "DEBUG := 1" >> Makefile.config
fi
Expand Down Expand Up @@ -100,9 +101,10 @@ function build_caffe_icc
cmake_params="-DCPU_ONLY=1 -DBOOST_ROOT=$boost_root"
if [ $is_multinode_ -eq 1 ]; then
cmake_params+=" -DUSE_MLSL=1"
if [ $is_layer_timing -eq 1 ]; then
cmake_params+=" -DCAFFE_PER_LAYER_TIMINGS=1"
fi
fi

if [ $is_layer_timing -eq 1 ]; then
cmake_params+=" -DCAFFE_PER_LAYER_TIMINGS=1"
fi

if [ $debug -eq 1 ]; then
Expand Down

0 comments on commit 6df7362

Please sign in to comment.