37 lines
942 B
Bash
Executable File
37 lines
942 B
Bash
Executable File
#!/bin/sh
|
|
dpdk_dir="/dpdk"
|
|
root="$(dirname "$0")/.."
|
|
servers="skylake2.rcs.uwaterloo.ca skylake3.rcs.uwaterloo.ca skylake6.rcs.uwaterloo.ca skylake7.rcs.uwaterloo.ca skylake8.rcs.uwaterloo.ca"
|
|
rsync_flags="-vchr"
|
|
ssh_args="-o StrictHostKeyChecking=no -p77"
|
|
|
|
user=$1
|
|
|
|
iface="ixl0"
|
|
|
|
|
|
if [ -z $user ]
|
|
then
|
|
user=$(whoami)
|
|
fi
|
|
|
|
echo "USER: $user"
|
|
|
|
compile() {
|
|
# separate these functions because we might change kernel (reboot) without needing to recompile
|
|
echo "====================$1===================="
|
|
#ssh $(echo $ssh_args $user@$1) "sudo reboot"
|
|
ssh $(echo $ssh_args $user@$1) "sudo sh -c \"mkdir -p $dpdk_dir; cd $dpdk_dir; git clone https://git.quacker.org/d/numam-dpdk; cd numam-dpdk; git reset --hard; git clean -f; rm -rf build; meson -Denable_kmods=true build; cd build; ninja install\""
|
|
wait
|
|
echo "$1 Done."
|
|
echo ""
|
|
}
|
|
|
|
i=0
|
|
for server in $servers
|
|
do
|
|
i=$(expr $i + 1)
|
|
compile "$server" &
|
|
done
|
|
|
|
wait |