Ring Allreduce implmentation in Spark with Barrier Scheduling experiment
This repo is for the CSC2222 term project “Survey and Improvement of Distributed Machine Learning On Spark”
Type in command sbt assembly
in root folder to generate deployable jar
bash run.sh yes(if need recomplie jar file) $classname $core_number $iteration_number
bash run.sh yes GD_RingAllReduce 8 5
bash run.sh yes(if need recomplie jar file) $classname $core_number
bash run.sh yes GD_RingAllReduce 8
Type in command sbt assembly
in root folder to generate deployable jar
2.run Spark RingAllReduceDC with local mode m cores
<SPARK_HOME>/bin/spark-submit --class com.ringallreduce.RingAllReduce --master spark://<SPARK_MASTER>:7077 ./target/scala-2.11/spark-ringallreduce-assembly-1.0.jar m
For this two programs you will get the same final result with similar runtime performance
<SPARK_HOME>/bin/spark-submit --class com.ringallreduce.RingAllReduceDC --master spark://<SPARK_MASTER>:7077 ./target/scala-2.11/spark-ringallreduce-assembly-1.0.jar m