Skip to content

Commit 4677714

Browse files
author
Mridul Jain
committed
Travis setup for python tests
1 parent b269956 commit 4677714

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CAFFE_ON_SPARK ?=$(shell pwd)
1+
export CAFFE_ON_SPARK=$(pwd)
22
cd ${CAFFE_ON_SPARK}/caffe-grid/src/test/resources/
33
spark-submit --master local --driver-library-path "${CAFFE_ON_SPARK}/caffe-grid/target/caffe-grid-0.1-SNAPSHOT-jar-with-dependencies.jar" --driver-class-path "${CAFFE_ON_SPARK}/caffe-grid/target/caffe-grid-0.1-SNAPSHOT-jar-with-dependencies.jar" --conf spark.cores.max=${TOTAL_CORES} --conf spark.task.cpus=${CORES_PER_WORKER} --conf spark.driver.extraLibraryPath="${LD_LIBRARY_PATH}" --conf spark.executorEnv.LD_LIBRARY_PATH="${LD_LIBRARY_PATH}" --py-files ${CAFFE_ON_SPARK}/caffe-grid/target/caffeonsparkpythonapi.zip --files ${CAFFE_ON_SPARK}/data/caffe/_caffe.so,${CAFFE_ON_SPARK}/caffe-grid/src/test/resources/lenet_memory_solver_py.prototxt,${CAFFE_ON_SPARK}/caffe-grid/src/test/resources/lenet_memory_train_test_py.prototxt --jars "${CAFFE_ON_SPARK}/caffe-grid/target/caffe-grid-0.1-SNAPSHOT-jar-with-dependencies.jar" --conf spark.pythonargs="-conf lenet_memory_solver_py.prototxt -model /tmp/lenet.model -features accuracy,ip1,ip2 -label label -output /tmp/output -devices 1 -outputFormat json -clusterSize ${SPARK_WORKER_INSTANCES}" ${CAFFE_ON_SPARK}/caffe-grid/src/test/python/PythonApiTest.py
44
cd ${CAFFE_ON_SPARK}

‎travis_test_install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export CAFFE_ON_SPARK=$(pwd)/CaffeOnSpark
1+
export CAFFE_ON_SPARK=$(pwd)
22
${CAFFE_ON_SPARK}/scripts/local-setup-hadoop.sh
33
export HADOOP_HOME=$(pwd)/hadoop-2.6.4
44
export PATH=${HADOOP_HOME}/bin:${PATH}

0 commit comments

Comments
 (0)