forked from PolyArch/gem-forge-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
43 lines (40 loc) · 999 Bytes
/
setup.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
echo "#"
echo "######################## Build Protobuf #########################################"
echo "#"
cd $GEM_FORGE_TOP/lib/protobuf
./autogen.sh
CPPFLAGS=-DGOOGLE_PROTOBUF_NO_RTTI \
CXXFLAGS=-fPIC \
./configure \
--prefix=$GEM_FORGE_TOP/build \
--enable-shared=no \
--with-zlib=yes
make -j $CORES
make install
# Build python files.
cd python
python3 setup.py build
cd ../../..
echo "#"
echo "######################## Build GemForge Transforms ##############################"
echo "#"
cd transform
mkdir -p build
cd build
cmake ..
make -j $CORES
cd ../..
echo "#"
echo "######################## Build DRAMSim3 for GEM5 ####################################"
echo "#"
cd gem5/ext/dramsim3/DRAMsim3
mkdir -p build
cd build
cmake ..
make -j $CORES
cd ../../../../..
echo "#"
echo "######################## Build GemForge GEM5 ####################################"
echo "#"
cd gem5
/usr/bin/scons -j${CORES} build/X86/gem5.opt --default=X86 PROTOCOL=MESI_Three_Level_Stream