-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-deps.sh
executable file
·23 lines (18 loc) · 1.24 KB
/
install-deps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
sudo apt install -y php-cli php-xml build-essential xterm p7zip-full nasm yasm libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev freeglut3-dev libssl-dev openssl php-cli php-xml autoconf mesa-utils vulkan-tools unzip apt-file cmake ninja-build gawk bison qtbase5-dev qt5-qmake libfftw3-dev fftw-dev freeglut3-dev python3-pip python3-yaml gfortran libopenmpi-dev openmpi-bin libmpich-dev opencl-headers ocl-icd-libopencl1 clinfo ocl-icd-opencl-dev
# Installing a non-optimized version for the dav1d benchmark
# Shouldn't be an issue since a build tool shouldn't be involved in the measurement
if [-f meson_1.0.1-5ubuntu1_all.deb];
then
echo "File meson_1.0.1-5ubuntu1_all.deb found, not resinstalling"
else
wget https://people.canonical.com/~mckeesh/meson_1.0.1-5ubuntu1_all.deb
fi
sudo dpkg -i meson_1.0.1-5ubuntu1_all.deb
# Running any PTS command creates ~/.phoronix-test-suite
./pts-source/phoronix-test-suite list-available-tests
# Copy our custom test suites to the Phoronix Test Suite dir
cp -r phoronix-custom-suites/* $HOME/.phoronix-test-suite/test-suites/local/
cp ./config/user-config.xml $HOME/.phoronix-test-suite/
# Enables the mixbench test
sudo ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/libOpenCL.so