updating mock. It now wraps the calls to sync and reads config from configuration file. I believe it's better not to use the preprocessor directive, i.e. not to put any test code in the engine_tcp. I just call the mock in the test_allreduce file. It's a file purely for testing purposes, so it's fine to use the mock there.
8 lines
139 B
Bash
Executable File
8 lines
139 B
Bash
Executable File
#!/bin/bash
|
|
if [ "$#" -ne 3 ];
|
|
then
|
|
echo "Usage <nslave> <ndata> <config>"
|
|
exit -1
|
|
fi
|
|
../submit_job_tcp.py $1 test_allreduce $2 $3
|