35 lines
929 B
Bash
Executable File
35 lines
929 B
Bash
Executable File
#!/bin/sh
|
|
dpdk_dir="/dpdk"
|
|
root="$(dirname "$0")/.."
|
|
servers="skylake3.rcs.uwaterloo.ca" # skylake5.rcs.uwaterloo.ca skylake6.rcs.uwaterloo.ca skylake7.rcs.uwaterloo.ca skylake8.rcs.uwaterloo.ca"
|
|
rsync_flags="-az"
|
|
ssh_args="-o StrictHostKeyChecking=no -p77"
|
|
|
|
user=$1
|
|
|
|
|
|
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 \"rm -rf $dpdk_dir; mkdir -p $dpdk_dir; cd $dpdk_dir; git clone https://git.quacker.org/d/numam-dpdk; cd numam-dpdk; git checkout releases-13.0; 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 |