-
Notifications
You must be signed in to change notification settings - Fork 1
/
run.sh
executable file
·81 lines (70 loc) · 1.65 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/bash -li
#
###############################################################################
#
# This set of scripts compiles HPX and provides a set of modulefiles that can
# be loaded. All dependencies that are needed to compile and run a HPX version
# will be installed.
#
# Run run.sh --help for more information
#
###############################################################################
BASE_PATH=`dirname $(readlink -e $0)`
echo "HPX will be installed to $BASE_PATH/packages/hpx."
echo "Module files will be placed in $BASE_PATH/modulefiles."
HOSTS=
for host in `find $BASE_PATH -maxdepth 1 -type d`
do
if [ -e ${host}/info.sh ]
then
HOSTS="${host} ${HOSTS}"
fi
done
echo $hosts
if [ x"$1" == x"--help" ]
then
echo "Available hosts:"
fi
for host in $HOSTS
do
source ${host}/info.sh
if [ x"$1" == x"--help" ]
then
echo " - ${NAME}"
fi
if [ x"${VALID}" == x"true" ]
then
current_host=${NAME}
HOST_PATH=${host}
fi
done
if [ x"$1" == x"--help" ]
then
echo ""
fi
if [ x"${current_host}" != x"" ]
then
echo "The script is running on $current_host"
else
echo "hostname \"$(hostname)\" is not supported."
exit 1
fi
if [ x"$1" == x"--help" ]
then
exit 1
fi
. $BASE_PATH/misc/modules.sh
. $BASE_PATH/misc/hwloc.sh
. $BASE_PATH/misc/jemalloc.sh
. $BASE_PATH/misc/boost.sh
. $BASE_PATH/misc/lua.sh
. $BASE_PATH/misc/active_harmony.sh
. $BASE_PATH/misc/hpx.sh
. $BASE_PATH/misc/hpxlua.sh
. $HOST_PATH/install.sh
# Running scripts for Babbage
#if hostname | grep -q '^bint'
#then
# . $BASE_PATH/run.sh
# exit $?
#fi