job.sh 414 字节
Newer Older
X
xiexionghang 已提交
1 2 3 4 5 6 7 8
#!/bin/bash
WORKDIR=`pwd`

echo "current:"$WORKDIR

mpirun -npernode 1 mv package/* ./

export LIBRARY_PATH=$WORKDIR/python/lib:$LIBRARY_PATH
L
linan17 已提交
9
export HADOOP_HOME="${WORKDIR}/hadoop-client/hadoop"
X
xiexionghang 已提交
10 11 12

ulimit -c unlimited

L
linan17 已提交
13
mpirun -npernode 1 sh clear_ssd.sh
X
xiexionghang 已提交
14 15 16 17 18 19
mpirun -npernode 2 -timestamp-output -tag-output python/bin/python -u trainer_online.py

if [[ $? -ne 0 ]]; then
    echo "Failed to run mpi!" 1>&2
    exit 1
fi