Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
luomai committed May 6, 2019
1 parent 959dd83 commit 94742e4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
6 changes: 2 additions & 4 deletions scripts/benchmarks/resnet-50.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,12 @@ OPTS="-server -XX:+UseConcMarkSweepGC -XX:NewRatio=2 -XX:SurvivorRatio=16 -Xms48
CLASS="uk.ac.imperial.lsds.crossbow.ResNetv1"
CLASSFILE="${TESTS}/`echo ${CLASS} | tr '.' '/'`.class"

#resultdir="results/"
resultdir="/cache/train_dir"
resultdir="results/"
[ ! -d ${resultdir} ] && mkdir -p ${resultdir}

crossbowDirExists ${resultdir}

# datadir="$CROSSBOW_HOME/data/imagenet/"
datadir="/cache/data_dir/"
datadir="$CROSSBOW_HOME/data/imagenet/"
crossbowDirExists ${datadir}

layers=50
Expand Down
16 changes: 11 additions & 5 deletions scripts/huawei/train.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@

CROSSBOW_HOME=/crossbow

python $CROSSBOW_HOME/scripts/huawei/download_data.py
cd $CROSSBOW_HOME \
&& git pull \
&& mvn package \
&& cd clib-multigpu \
&& ./genmakefile.sh \
&& make -j $(nproc) \
&& cd ../ \
&& ./scripts/build.sh

# mv /home/work/user-job-dir/Crossbow-scripts/imagenet-test.metadata $CROSSBOW_HOME/data/imagenet/imagenet-test.metadata
# mv /home/work/user-job-dir/Crossbow-scripts/imagenet-train.metadata $CROSSBOW_HOME/data/imagenet/imagenet-train.metadata
python $CROSSBOW_HOME/scripts/huawei/download_data.py

mv /home/work/user-job-dir/Crossbow-scripts/imagenet-test.metadata /cache/data_dir/
mv /home/work/user-job-dir/Crossbow-scripts/imagenet-train.metadata /cache/data_dir/
mv /home/work/user-job-dir/Crossbow-scripts/imagenet-test.metadata $CROSSBOW_HOME/data/imagenet/imagenet-test.metadata
mv /home/work/user-job-dir/Crossbow-scripts/imagenet-train.metadata $CROSSBOW_HOME/data/imagenet/imagenet-train.metadata

bash /home/work/user-job-dir/Crossbow-scripts/resnet-50.sh

Expand Down

0 comments on commit 94742e4

Please sign in to comment.