29 lines
690 B
Bash
Executable File
29 lines
690 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Copyright (C) 2018 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
IGC_VER=18.38.907-1
|
|
|
|
cd /root
|
|
|
|
install_libs() {
|
|
wget https://launchpad.net/~ocl-dev/+archive/ubuntu/intel-opencl/+files/$1
|
|
ar -x $1
|
|
tar -xJf data.tar.xz
|
|
rm -f data.tar.xz $1
|
|
}
|
|
|
|
install_libs intel-opencl-clang_4.0.16-1~ppa1~bionic1_amd64.deb
|
|
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
|
|
|
|
cp -ar usr /
|
|
ln -sf /usr/lib/x86_64-linux-gnu/*.so /usr/lib64
|
|
ln -s /usr/lib/x86_64-linux-gnu/pkgconfig/*.pc /usr/lib64/pkgconfig
|
|
mkdir /root/build
|
|
|