Skip to content

Commit 5f807e0

Browse files
Hsy-IntelRodgerZhu
authored andcommitted
hfl
1 parent cf42740 commit 5f807e0

File tree

6 files changed

+1
-37
lines changed

6 files changed

+1
-37
lines changed
Binary file not shown.
Binary file not shown.

cczoo/horizontal_fl/hfl-tensorflow/ps0-python.log

Lines changed: 0 additions & 7 deletions
This file was deleted.

cczoo/horizontal_fl/hfl-tensorflow/test-sgx.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,15 @@ function make_custom_env() {
5050
ROLE=$1
5151
PS_HOSTS=$2
5252
WORKER_HOSTS=$3
53+
5354
if [ "$ROLE" == "make" ]; then
54-
# rm -rf model *.log
5555
make clean && make | make_logfilter
5656
elif [ "$ROLE" == "ps0" ]; then
5757
make_custom_env
5858
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 &
5959
if [ "$DEBUG" != "0" ]; then
6060
wait && kill -9 `pgrep -f gramine`
6161
fi
62-
elif [ "$ROLE" == "ps1" ]; then
63-
make_custom_env
64-
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 &
65-
if [ "$DEBUG" != "0" ]; then
66-
wait && kill -9 `pgrep -f gramine`
67-
fi
68-
6962
elif [ "$ROLE" == "worker0" ]; then
7063
make_custom_env
7164
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 &

cczoo/horizontal_fl/hfl-tensorflow/test.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ WORKER_HOSTS=$3
3939
if [ "$ROLE" == "ps0" ]; then
4040
make_custom_env
4141
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 &
42-
elif [ "$ROLE" == "ps1" ]; then
43-
make_custom_env
44-
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 &
4542
elif [ "$ROLE" == "worker0" ]; then
4643
make_custom_env
4744
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 &

cczoo/horizontal_fl/hfl-tensorflow/worker0-python.log

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)