2018-07-28 01:05:09 +08:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2018-09-18 15:11:08 +08:00
|
|
|
# Copyright (C) 2018 Intel Corporation
|
2018-07-28 01:05:09 +08:00
|
|
|
#
|
2018-09-18 15:11:08 +08:00
|
|
|
# SPDX-License-Identifier: MIT
|
2018-07-28 01:05:09 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
cd /root
|
2018-11-16 17:41:57 +08:00
|
|
|
IGC_VER="`grep igc_version_required neo/scripts/fedora.spec.in | grep global | awk '{print $3}'`-1"
|
|
|
|
GMM_VER="`grep gmmlib_version_required neo/scripts/fedora.spec.in | grep global | awk '{print $3}'`-1"
|
|
|
|
|
|
|
|
echo "IGC_VER=${IGC_VER}"
|
|
|
|
echo "GMM_VER=${GMM_VER}"
|
2018-07-28 01:05:09 +08:00
|
|
|
|
|
|
|
install_libs() {
|
2018-09-25 23:25:40 +08:00
|
|
|
wget https://launchpad.net/~ocl-dev/+archive/ubuntu/intel-opencl/+files/$1
|
2018-07-28 01:05:09 +08:00
|
|
|
ar -x $1
|
|
|
|
tar -xJf data.tar.xz
|
|
|
|
rm -f data.tar.xz $1
|
|
|
|
}
|
|
|
|
|
2018-09-25 23:25:40 +08:00
|
|
|
install_libs intel-opencl-clang_4.0.16-1~ppa1~bionic1_amd64.deb
|
2018-07-31 22:36:11 +08:00
|
|
|
install_libs intel-igc-core_${IGC_VER}~ppa1~bionic1_amd64.deb
|
|
|
|
install_libs intel-igc-opencl-dev_${IGC_VER}~ppa1~bionic1_amd64.deb
|
|
|
|
install_libs intel-igc-opencl_${IGC_VER}~ppa1~bionic1_amd64.deb
|
2018-11-16 17:41:57 +08:00
|
|
|
install_libs intel-gmmlib_${GMM_VER}~ppa1~bionic1_amd64.deb
|
|
|
|
install_libs intel-gmmlib-dev_${GMM_VER}~ppa1~bionic1_amd64.deb
|
2018-07-28 01:05:09 +08:00
|
|
|
|
|
|
|
cp -ar usr /
|
2018-11-16 17:41:57 +08:00
|
|
|
ln -sf /usr/lib/x86_64-linux-gnu/*.so* /usr/lib64
|
2018-07-28 01:05:09 +08:00
|
|
|
ln -s /usr/lib/x86_64-linux-gnu/pkgconfig/*.pc /usr/lib64/pkgconfig
|
|
|
|
mkdir /root/build
|