Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- rockpro = (
- rockpro64-1
- rockpro64-2
- rockpro64-3
- rockpro64-4
- rockpro64-5
- rockpro64-6
- rockpro64-7
- rockpro64-8
- rockpro64-9
- rockpro64-10
- rockpro64-11
- rockpro64-12
- rockpro64-13
- rockpro64-14
- rockpro64-15
- rockpro64-16
- rockpro64-17
- rockpro64-18
- rockpro64-19
- rockpro64-20
- rockpro64-21
- )
- ip = (
- "192.168.88.254"
- "192.168.88.243"
- "192.168.88.244"
- "192.168.88.245"
- "192.168.88.246"
- "192.168.88.247"
- "192.168.88.241"
- "192.168.88.231"
- "192.168.88.228"
- "192.168.88.233"
- "192.168.88.234"
- "192.168.88.232"
- "192.168.88.242"
- "192.168.88.237"
- "192.168.88.235"
- "192.168.88.229"
- "192.168.88.230"
- "192.168.88.240"
- "192.168.88.236"
- "192.168.88.239"
- "192.168.88.238"
- )
- #rockpro64-1 = "192.168.88.254"
- #rockpro64-2 = "192.168.88.243"
- #rockpro64-3 = "192.168.88.244"
- #rockpro64-4 = "192.168.88.245"
- #rockpro64-5 = "192.168.88.246"
- #rockpro64-6 = "192.168.88.247"
- #rockpro64-7 = "192.168.88.241"
- #rockpro64-8 = "192.168.88.231"
- #rockpro64-9 = "192.168.88.228"
- #rockpro64-10 = "192.168.88.233"
- #rockpro64-11 = "192.168.88.234"
- #rockpro64-12 = "192.168.88.232"
- #rockpro64-13 = "192.168.88.242"
- #rockpro64-14 = "192.168.88.237"
- #rockpro64-15 = "192.168.88.235"
- #rockpro64-16 = "192.168.88.229"
- #rockpro64-17 = "192.168.88.230"
- #rockpro64-18 = "192.168.88.240"
- #rockpro64-19 = "192.168.88.236"
- #rockpro64-20 = "192.168.88.239"
- #rockpro64-21 = "192.168.88.238"
- #count of edge node
- edgeCount = 2
- if [ -n "$1" ]
- then
- edgeCount = $1
- fi
- #replace configure
- EDGE_ADDR_LIST = "{"
- for ((i=0;i<edgeCount;i++))
- do
- if[i+1 < edgeCount]
- then
- EDGE_ADDR_LIST += "\"$i\","
- else
- EDGE_ADDR_LIST += "\"$i\"}"
- fi
- done
- echo
- >| "#ifndef CONFIGURE_H
- #define CONFIGURE_H
- /*Partitioning paramters*/
- #define FUSED_LAYERS_MAX 16
- #define PARTITIONS_W_MAX 6
- #define PARTITIONS_H_MAX 6
- #define PARTITIONS_MAX 36
- #define THREAD_NUM 1
- #define DATA_REUSE 1
- /*Generate debugging information in log file*/
- #define DEBUG_LOG 1
- /*Debugging information for different components*/
- #define DEBUG_INFERENCE 0
- #define DEBUG_FTP 0
- #define DEBUG_SERIALIZATION 0
- #define DEBUG_DEEP_GATEWAY 0
- #define DEBUG_DEEP_EDGE 0
- /*Print timing and communication size information*/
- #define DEBUG_TIMING 1
- #define DEBUG_COMMU_SIZE 0
- /*Configuration parameters for DistrIoT*/
- #define GATEWAY_PUBLIC_ADDR "10.157.89.51"
- #define GATEWAY_LOCAL_ADDR "192.168.4.1"
- #define EDGE_ADDR_LIST $EDGE_ADDR_LIST
- #define MAX_EDGE_NUM $edgeCount
- #define FRAME_NUM 4
- #endif"
- '/include/configure.h'
- #recompile files deepthings
- make clean_all
- make
- #node data_src
- ssh rockpro[0] "cd /clusterfs/Nastysha/DeepThings; ./deepthings -mode data_src -edge_id 0 -n 5 -m 5 -l 16 &" &
- #nodes non_data_src
- for ((i=1;i<edgeCount;i++))
- do
- ssh rockpro[i] "cd /clusterfs/Nastysha/DeepThings; ./deepthings -mode non_data_src -edge_id $i -n 5 -m 5 -l 16 &" &
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement