Skip to content

Commit

Permalink
hfl
Browse files Browse the repository at this point in the history
  • Loading branch information
Hsy-Intel authored and RodgerZhu committed Feb 14, 2022
1 parent cf42740 commit 5f807e0
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 37 deletions.
Binary file not shown.
Binary file not shown.
7 changes: 0 additions & 7 deletions cczoo/horizontal_fl/hfl-tensorflow/ps0-python.log

This file was deleted.

9 changes: 1 addition & 8 deletions cczoo/horizontal_fl/hfl-tensorflow/test-sgx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,15 @@ function make_custom_env() {
ROLE=$1
PS_HOSTS=$2
WORKER_HOSTS=$3

if [ "$ROLE" == "make" ]; then
# rm -rf model *.log
make clean && make | make_logfilter
elif [ "$ROLE" == "ps0" ]; then
make_custom_env
taskset -c 0-3 stdbuf -o0 gramine-sgx python -u train.py --task_index=0 --job_name=ps $PS_HOSTS $WORKER_HOSTS 2>&1 | runtime_logfilter | tee -a ps0-gramine-python.log &
if [ "$DEBUG" != "0" ]; then
wait && kill -9 `pgrep -f gramine`
fi
elif [ "$ROLE" == "ps1" ]; then
make_custom_env
taskset -c 4-7 stdbuf -o0 gramine-sgx python -u train.py --task_index=1 --job_name=ps $PS_HOSTS $WORKER_HOSTS 2>&1 | runtime_logfilter | tee -a ps1-gramine-python.log &
if [ "$DEBUG" != "0" ]; then
wait && kill -9 `pgrep -f gramine`
fi

elif [ "$ROLE" == "worker0" ]; then
make_custom_env
taskset -c 8-11 stdbuf -o0 gramine-sgx python -u train.py --task_index=0 --job_name=worker $PS_HOSTS $WORKER_HOSTS 2>&1 | runtime_logfilter | tee -a worker0-gramine-python.log &
Expand Down
3 changes: 0 additions & 3 deletions cczoo/horizontal_fl/hfl-tensorflow/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ WORKER_HOSTS=$3
if [ "$ROLE" == "ps0" ]; then
make_custom_env
taskset -c 0-3 stdbuf -o0 python -u train.py --task_index=0 --job_name=ps 2>&1 $PS_HOSTS $WORKER_HOSTS | tee -a ps0-python.log &
elif [ "$ROLE" == "ps1" ]; then
make_custom_env
taskset -c 4-7 stdbuf -o0 python -u train.py --task_index=1 --job_name=ps 2>&1 $PS_HOSTS $WORKER_HOSTS | tee -a ps1-python.log &
elif [ "$ROLE" == "worker0" ]; then
make_custom_env
taskset -c 8-11 stdbuf -o0 python -u train.py --task_index=0 --job_name=worker $PS_HOSTS $WORKER_HOSTS 2>&1 | tee -a worker0-python.log &
Expand Down
19 changes: 0 additions & 19 deletions cczoo/horizontal_fl/hfl-tensorflow/worker0-python.log

This file was deleted.

0 comments on commit 5f807e0

Please sign in to comment.