-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·54 lines (38 loc) · 2.36 KB
/
install.sh
File metadata and controls
executable file
·54 lines (38 loc) · 2.36 KB
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
#!/bin/bash -e
#Installs TANGO Programming Model and Runtime Abstraction layer
src_path=$(cd $(dirname $0) && pwd)
prefix=$1
shift 1
if [ -z "$prefix" ]; then
echo " Installation prefix not specified"
exit 1
fi
#if [ -d "${prefix}" ]; then
# rm -rf ${prefix}
#fi
if [ -z "${PM_BUILD}" ] || [ "${PM_BUILD}" == "ONLY_COMPSS" ] || [ "${PM_BUILD}" == "ALL" ]; then
# Build COMPSs
echo " Building COMPSs at ${prefix}/TANGO_ProgrammingModel/COMPSs from ${src_path}/COMPSs/"
mkdir -p ${prefix}/TANGO_ProgrammingModel/COMPSs
cd ${src_path}/COMPSs/builders
echo "./buildlocal -P $* ${prefix}/TANGO_ProgrammingModel/COMPSs "
./buildlocal -P $* ${prefix}/TANGO_ProgrammingModel/COMPSs
echo " COMPSs built! "
fi
if [ -z "${PM_BUILD}" ] || [ "${PM_BUILD}" == "ONLY_OMPSS" ] || [ "${PM_BUILD}" == "ALL" ]; then
echo " Building OmpSs at ${prefix}/TANGO_ProgrammingModel/OmpSs from ${src_path}/OmpSs/"
mkdir -p ${prefix}/TANGO_ProgrammingModel/OmpSs
mkdir -p ${prefix}/TANGO_ProgrammingModel/OmpSs/nanox
cd ${src_path}/OmpSs/nanox
if [ -d "${prefix}/TANGO_ProgrammingModel/COMPSs/Dependencies/extrae/lib" ]; then
echo "in $PWD running: autoreconf -fiv; autoreconf -fiv && ./configure --prefix=${prefix}/TANGO_ProgrammingModel/OmpSs/nanox --with-extrae=${prefix}/TANGO_ProgrammingModel/COMPSs/Dependencies/extrae/ && make && make install"
autoreconf -i && autoreconf -fiv; autoreconf -fiv && ./configure --prefix=${prefix}/TANGO_ProgrammingModel/OmpSs/nanox --with-extrae=${prefix}/TANGO_ProgrammingModel/COMPSs/Dependencies/extrae/ && make -j2 && make install clean
else
echo "in $PWD running: autoreconf -fiv; autoreconf -fiv && ./configure --prefix=${prefix}/TANGO_ProgrammingModel/OmpSs/nanox && make && make install"
autoreconf -i && autoreconf -fiv; autoreconf -fiv && ./configure --prefix=${prefix}/TANGO_ProgrammingModel/OmpSs/nanox && make -j2 && make install clean
fi
mkdir -p ${prefix}/TANGO_ProgrammingModel/OmpSs/mcxx
cd ${src_path}/OmpSs/mcxx
echo "autoreconf -fiv && ./configure --prefix=${prefix}/TANGO_ProgrammingModel/OmpSs/mcxx --enable-ompss --with-nanox=${prefix}/TANGO_ProgrammingModel/OmpSs/nanox/ && make && make install"
autoreconf -i && autoreconf -fiv; autoreconf -fiv && ./configure --prefix=${prefix}/TANGO_ProgrammingModel/OmpSs/mcxx --enable-ompss --with-nanox=${prefix}/TANGO_ProgrammingModel/OmpSs/nanox/ && make && make install clean
fi