mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 16:24:18 +08:00
build: restore packaging for ubuntu 20.04/22.04
Related-To: NEO-11423 Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3c53ccc855
commit
d09c149bc2
132
scripts/packaging/l0_gpu_driver/build_l0_gpu_driver_deb.sh
Executable file
132
scripts/packaging/l0_gpu_driver/build_l0_gpu_driver_deb.sh
Executable file
@@ -0,0 +1,132 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#
|
||||
# Copyright (C) 2021-2024 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
set -ex
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
REPO_DIR="$( cd "$( dirname "${DIR}/../../../../" )" && pwd )"
|
||||
|
||||
BUILD_DIR="${REPO_DIR}/../build_l0_gpu_driver"
|
||||
NEO_SKIP_UNIT_TESTS=${NEO_SKIP_UNIT_TESTS:-FALSE}
|
||||
NEO_DISABLE_BUILTINS_COMPILATION=${NEO_DISABLE_BUILTINS_COMPILATION:-FALSE}
|
||||
SPEC_FILE="${SPEC_FILE:-${OS_TYPE}}"
|
||||
|
||||
BRANCH_SUFFIX="$( cat ${REPO_DIR}/.branch )"
|
||||
|
||||
ENABLE_L0_GPU_DRIVER="${ENABLE_L0_GPU_DRIVER:-1}"
|
||||
if [ "${ENABLE_L0_GPU_DRIVER}" == "0" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
LOG_CCACHE_STATS="${LOG_CCACHE_STATS:-0}"
|
||||
|
||||
export BUILD_ID="${BUILD_ID:-1}"
|
||||
export CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:-Release}"
|
||||
|
||||
source "${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/functions.sh"
|
||||
source "${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/l0_gpu_driver/l0_gpu_driver.sh"
|
||||
|
||||
get_api_version # API_VERSION-API_VERSION_SRC and API_DEB_MODEL_LINK
|
||||
get_l0_gpu_driver_version # NEO_L0_VERSION_MAJOR.NEO_L0_VERSION_MINOR.NEO_L0_VERSION_PATCH.NEO_L0_VERSION_HOTFIX
|
||||
|
||||
if [ -z "${BRANCH_SUFFIX}" ]; then
|
||||
VERSION="${NEO_L0_VERSION_MAJOR}.${NEO_L0_VERSION_MINOR}.${NEO_L0_VERSION_PATCH}-${NEO_L0_VERSION_HOTFIX}${API_DEB_MODEL_LINK}"
|
||||
else
|
||||
VERSION="${NEO_L0_VERSION_MAJOR}.${NEO_L0_VERSION_MINOR}.${NEO_L0_VERSION_PATCH}${API_VERSION}-${NEO_L0_VERSION_HOTFIX}${API_VERSION_SRC}${API_DEB_MODEL_LINK}"
|
||||
fi
|
||||
|
||||
PKG_VERSION=${VERSION}
|
||||
|
||||
if [ "${CMAKE_BUILD_TYPE}" != "Release" ]; then
|
||||
PKG_VERSION="${PKG_VERSION}+$(echo "$CMAKE_BUILD_TYPE" | tr '[:upper:]' '[:lower:]')1"
|
||||
fi
|
||||
|
||||
rm -rf $BUILD_DIR
|
||||
mkdir -p $BUILD_DIR/debian
|
||||
|
||||
COPYRIGHT="${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/l0_gpu_driver/${SPEC_FILE}/copyright"
|
||||
CONTROL="${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/l0_gpu_driver/${SPEC_FILE}/control"
|
||||
SHLIBS="${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/l0_gpu_driver/${SPEC_FILE}/shlibs.local"
|
||||
|
||||
cp -pR ${REPO_DIR}/scripts/packaging/l0_gpu_driver/${SPEC_FILE}/debian/* $BUILD_DIR/debian/
|
||||
cp $COPYRIGHT $BUILD_DIR/debian/
|
||||
cp $CONTROL $BUILD_DIR/debian/
|
||||
if [ -f "${SHLIBS}" ]; then
|
||||
cp $SHLIBS $BUILD_DIR/debian/
|
||||
fi
|
||||
|
||||
LEVEL_ZERO_DEVEL_NAME=${LEVEL_ZERO_DEVEL_NAME:-level-zero-devel}
|
||||
|
||||
LEVEL_ZERO_DEVEL_VERSION=$(apt-cache policy ${LEVEL_ZERO_DEVEL_NAME} | grep Installed | cut -f2- -d ':' | xargs)
|
||||
if [ ! -z "${LEVEL_ZERO_DEVEL_VERSION}" ]; then
|
||||
perl -pi -e "s/^ level-zero-devel(?=,|$)/ ${LEVEL_ZERO_DEVEL_NAME} (=$LEVEL_ZERO_DEVEL_VERSION)/" "$BUILD_DIR/debian/control"
|
||||
fi
|
||||
|
||||
if [ -z "${BRANCH_SUFFIX}" ]; then
|
||||
GMM_VERSION=$(apt-cache policy libigdgmm12 | grep Installed | cut -f2- -d ':' | xargs)
|
||||
if [ ! -z "${GMM_VERSION}" ]; then
|
||||
perl -pi -e "s/^ libigdgmm12(?=,|$)/ libigdgmm12 (>=$GMM_VERSION)/" "$BUILD_DIR/debian/control"
|
||||
fi
|
||||
GMM_DEVEL_VERSION=$(apt-cache policy libigdgmm-dev | grep Installed | cut -f2- -d ':' | xargs)
|
||||
if [ ! -z "${GMM_DEVEL_VERSION}" ]; then
|
||||
perl -pi -e "s/^ libigdgmm-dev(?=,|$)/ libigdgmm-dev (>=$GMM_DEVEL_VERSION)/" "$BUILD_DIR/debian/control"
|
||||
fi
|
||||
|
||||
IGC_VERSION=$(apt-cache policy intel-igc-core | grep Installed | cut -f2- -d ':' | xargs)
|
||||
if [ ! -z "${IGC_VERSION}" ]; then
|
||||
perl -pi -e "s/^ intel-igc-core(?=,|$)/ intel-igc-core (=$IGC_VERSION)/" "$BUILD_DIR/debian/control"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Update rules file with new version
|
||||
perl -pi -e "s/^ver = .*/ver = $NEO_L0_VERSION_PATCH/" $BUILD_DIR/debian/rules
|
||||
perl -pi -e "s/^ver_hf = .*/ver_hf = $NEO_L0_VERSION_HOTFIX/" $BUILD_DIR/debian/rules
|
||||
|
||||
#needs a top level CMAKE file
|
||||
cat << EOF | tee $BUILD_DIR/CMakeLists.txt
|
||||
cmake_minimum_required (VERSION 3.13.0 FATAL_ERROR)
|
||||
|
||||
project(neo)
|
||||
|
||||
add_subdirectory($REPO_DIR neo)
|
||||
EOF
|
||||
|
||||
(
|
||||
cd $BUILD_DIR
|
||||
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
|
||||
ccache -z
|
||||
fi
|
||||
export DEB_BUILD_OPTIONS="nodocs notest nocheck"
|
||||
export DH_VERBOSE=1
|
||||
if [ "${CMAKE_BUILD_TYPE}" != "Release" ]; then
|
||||
export DH_INTERNAL_BUILDFLAGS=1
|
||||
fi
|
||||
if [ "${ENABLE_ULT}" == "0" ]; then
|
||||
NEO_SKIP_UNIT_TESTS="TRUE"
|
||||
fi
|
||||
if [ "${TARGET_ARCH}" == "aarch64" ]; then
|
||||
NEO_SKIP_UNIT_TESTS="TRUE"
|
||||
export NEO_DISABLE_BUILTINS_COMPILATION="TRUE"
|
||||
fi
|
||||
export NEO_DISABLE_BUILTINS_COMPILATION
|
||||
export NEO_SKIP_UNIT_TESTS
|
||||
|
||||
dch -v ${PKG_VERSION} -m "build $PKG_VERSION"
|
||||
ulimit -n 65535 || true
|
||||
dpkg-buildpackage -j`nproc --all` -us -uc -b -rfakeroot
|
||||
sudo dpkg -i --force-depends ../*.deb
|
||||
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
|
||||
ccache -s
|
||||
ccache -s | grep 'cache hit rate' | cut -d ' ' -f 4- | xargs -I{} echo LevelZero GPU Driver {} >> $REPO_DIR/../output/logs/ccache.log
|
||||
fi
|
||||
)
|
||||
|
||||
mkdir -p ${REPO_DIR}/../output/dbgsym
|
||||
|
||||
mv ${REPO_DIR}/../*.deb ${REPO_DIR}/../output/
|
||||
find ${REPO_DIR}/.. -maxdepth 1 -name \*.ddeb -type f -print0 | xargs -0r mv -t ${REPO_DIR}/../output/dbgsym/
|
||||
33
scripts/packaging/l0_gpu_driver/ubuntu_20.04/control
Normal file
33
scripts/packaging/l0_gpu_driver/ubuntu_20.04/control
Normal file
@@ -0,0 +1,33 @@
|
||||
Source: intel-compute-runtime
|
||||
Section: libs
|
||||
Priority: optional
|
||||
Maintainer: Intel Graphics Team <linux-graphics@intel.com>
|
||||
XSBC-Original-Maintainer: Debian OpenCL Maintainers <pkg-opencl-devel@lists.alioth.debian.org>
|
||||
Build-Depends: debhelper (>= 11),
|
||||
cmake,
|
||||
level-zero-devel,
|
||||
intel-igc-opencl-devel,
|
||||
libigdgmm-dev,
|
||||
pkg-config
|
||||
Standards-Version: 4.3.0
|
||||
Homepage: https://github.com/oneapi-src/level-zero
|
||||
|
||||
Package: intel-level-zero-gpu
|
||||
Architecture: amd64 arm64
|
||||
Depends:
|
||||
${shlibs:Depends},
|
||||
${misc:Depends},
|
||||
intel-igc-core,
|
||||
libigdgmm12
|
||||
Description: Intel(R) Graphics Compute Runtime for oneAPI Level Zero.
|
||||
Level Zero is the primary low-level interface for language and runtime
|
||||
libraries. Level Zero offers fine-grain control over accelerators
|
||||
capabilities, delivering a simplified and low-latency interface to
|
||||
hardware, and efficiently exposing hardware capabilities to applications.
|
||||
|
||||
Package: intel-level-zero-gpu-devel
|
||||
Architecture: amd64 arm64
|
||||
Depends:
|
||||
${shlibs:Depends},
|
||||
${misc:Depends},
|
||||
Description: Intel(R) Graphics Compute Runtime for oneAPI Level Zero - development headers
|
||||
32
scripts/packaging/l0_gpu_driver/ubuntu_20.04/copyright
Normal file
32
scripts/packaging/l0_gpu_driver/ubuntu_20.04/copyright
Normal file
@@ -0,0 +1,32 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: level-zero
|
||||
Source: https://github.com/oneapi-src/level-zero
|
||||
|
||||
Files: third_party/opencl_headers/*
|
||||
third_party/opengl_headers/GL/glext.h
|
||||
Copyright: 2008-2021 The Khronos Group Inc.
|
||||
2008-2021 Intel Corporation
|
||||
License: MIT
|
||||
|
||||
Files: *
|
||||
Copyright: 2018-2021 Intel Corporation
|
||||
License: MIT
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
.
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -0,0 +1,10 @@
|
||||
intel-compute-runtime (1.0) unstable; urgency=medium
|
||||
|
||||
* Level Zero GPU Driver implemented based on v1.0 L0 Specification
|
||||
|
||||
-- Neil Spruit <neil.r.spruit@intel.com> Fri, 7 Aug 2020 12:26:37 +0300
|
||||
intel-compute-runtime (0.4.0) unstable; urgency=medium
|
||||
|
||||
* Ubuntu package init
|
||||
|
||||
-- Pavel Androniychuk <pavel.androniychuk@intel.com> Fri, 14 Feb 2020 12:26:37 +0300
|
||||
@@ -0,0 +1 @@
|
||||
11
|
||||
@@ -0,0 +1 @@
|
||||
usr/include/level_zero/zet_intel_gpu_debug.h
|
||||
@@ -0,0 +1 @@
|
||||
usr/lib/*/libze_intel_gpu.so.*
|
||||
50
scripts/packaging/l0_gpu_driver/ubuntu_20.04/debian/rules
Executable file
50
scripts/packaging/l0_gpu_driver/ubuntu_20.04/debian/rules
Executable file
@@ -0,0 +1,50 @@
|
||||
#!/usr/bin/make -f
|
||||
ver = xxx
|
||||
ver_hf = 0
|
||||
|
||||
%:
|
||||
dh $@ --builddir build/ --buildsystem=cmake+ninja
|
||||
|
||||
NEO_DISABLE_BUILTINS_COMPILATION ?= FALSE
|
||||
RELEASE_WITH_REGKEYS ?= FALSE
|
||||
IGDRCL_FORCE_USE_LIBVA ?= FALSE
|
||||
NEO_SKIP_UNIT_TESTS ?= FALSE
|
||||
NEO_ENABLE_i915_PRELIM_DETECTION ?= TRUE
|
||||
NEO_ENABLE_XE_EU_DEBUG_SUPPORT ?= FALSE
|
||||
NEO_FORCE_USE_AUB_STREAM ?= TRUE
|
||||
|
||||
override_dh_auto_configure:
|
||||
dh_auto_configure -- ${NEO_BUILD_EXTRA_OPTS} \
|
||||
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
|
||||
-DNEO_VERSION_BUILD=$(ver) \
|
||||
-DNEO_VERSION_HOTFIX=$(ver_hf) \
|
||||
-DNEO_SKIP_UNIT_TESTS=${NEO_SKIP_UNIT_TESTS} \
|
||||
-DNEO_ENABLE_i915_PRELIM_DETECTION=${NEO_ENABLE_i915_PRELIM_DETECTION} \
|
||||
-DNEO_ENABLE_XE_EU_DEBUG_SUPPORT=${NEO_ENABLE_XE_EU_DEBUG_SUPPORT} \
|
||||
-DNEO_DISABLE_BUILTINS_COMPILATION=${NEO_DISABLE_BUILTINS_COMPILATION} \
|
||||
-DNEO_BUILD_WITH_OCL=FALSE \
|
||||
-DRELEASE_WITH_REGKEYS=${RELEASE_WITH_REGKEYS} \
|
||||
-DIGDRCL_FORCE_USE_LIBVA=${IGDRCL_FORCE_USE_LIBVA} \
|
||||
-DNEO_FORCE_USE_AUB_STREAM=${NEO_FORCE_USE_AUB_STREAM} \
|
||||
-DL0_INSTALL_UDEV_RULES=1 \
|
||||
-DUDEV_RULES_DIR=/etc/udev/rules.d/ \
|
||||
-Wno-dev
|
||||
|
||||
override_dh_auto_build:
|
||||
${BUILD_PREFIX} dh_auto_build
|
||||
|
||||
override_dh_install:
|
||||
rm -rf debian/intel-level-zero-gpu/etc/
|
||||
rm -rf debian/intel-level-zero-gpu/usr/lib/${DEB_TARGET_MULTIARCH}/intel-opencl/
|
||||
rm -rf debian/intel-level-zero-gpu/usr/bin/
|
||||
rm -rf debian/intel-level-zero-gpu/usr/include/ocloc_api.h
|
||||
rm -rf debian/intel-level-zero-gpu/usr/lib/${DEB_TARGET_MULTIARCH}/libocloc.so
|
||||
rm -rvf debian/intel-level-zero-gpu/usr/lib/debug
|
||||
dh_install
|
||||
if [ -d "${NEO_NINJA_DUMP}" ]; then find -name .ninja_\* -type f -exec cp -v {} ${NEO_NINJA_DUMP}/ \;; fi
|
||||
|
||||
override_dh_builddeb:
|
||||
dh_builddeb -- -Zxz
|
||||
|
||||
override_dh_auto_test:
|
||||
echo "ULTs already executed"
|
||||
@@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
||||
@@ -0,0 +1,2 @@
|
||||
libigdgmm 11 intel-gmmlib
|
||||
libigdgmm 12 libigdgmm12
|
||||
131
scripts/packaging/opencl/build_opencl_deb.sh
Executable file
131
scripts/packaging/opencl/build_opencl_deb.sh
Executable file
@@ -0,0 +1,131 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#
|
||||
# Copyright (C) 2021-2024 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
set -ex
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
REPO_DIR="$( cd "$( dirname "${DIR}/../../../../" )" && pwd )"
|
||||
|
||||
BUILD_DIR="${REPO_DIR}/../build_opencl"
|
||||
NEO_SKIP_UNIT_TESTS=${NEO_SKIP_UNIT_TESTS:-FALSE}
|
||||
NEO_SKIP_AUB_TESTS_RUN=${NEO_SKIP_AUB_TESTS_RUN:-TRUE}
|
||||
NEO_DISABLE_BUILTINS_COMPILATION=${NEO_DISABLE_BUILTINS_COMPILATION:-FALSE}
|
||||
SPEC_FILE="${SPEC_FILE:-${OS_TYPE}}"
|
||||
|
||||
BRANCH_SUFFIX="$( cat ${REPO_DIR}/.branch )"
|
||||
|
||||
ENABLE_OPENCL="${ENABLE_OPENCL:-1}"
|
||||
if [ "${ENABLE_OPENCL}" == "0" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
LOG_CCACHE_STATS="${LOG_CCACHE_STATS:-0}"
|
||||
|
||||
export BUILD_ID="${BUILD_ID:-1}"
|
||||
export CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:-Release}"
|
||||
export NEO_SKIP_AUB_TESTS_RUN="${NEO_SKIP_AUB_TESTS_RUN:-TRUE}"
|
||||
|
||||
source "${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/functions.sh"
|
||||
source "${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/opencl/opencl.sh"
|
||||
|
||||
get_api_version # API_VERSION-API_VERSION_SRC and API_DEB_MODEL_LINK
|
||||
get_opencl_version # NEO_OCL_VERSION_MAJOR.NEO_OCL_VERSION_MINOR.NEO_OCL_VERSION_BUILD
|
||||
|
||||
export NEO_OCL_VERSION_MAJOR
|
||||
export NEO_OCL_VERSION_MINOR
|
||||
export NEO_OCL_VERSION_BUILD
|
||||
|
||||
if [ -z "${BRANCH_SUFFIX}" ]; then
|
||||
VERSION="${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_OCL_VERSION_BUILD}${API_DEB_MODEL_LINK}"
|
||||
else
|
||||
VERSION="1:${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_OCL_VERSION_BUILD}${API_VERSION}-${NEO_OCL_VERSION_HOTFIX}${API_VERSION_SRC}${API_DEB_MODEL_LINK}"
|
||||
fi
|
||||
|
||||
PKG_VERSION=${VERSION}
|
||||
|
||||
if [ "${CMAKE_BUILD_TYPE}" != "Release" ]; then
|
||||
PKG_VERSION="${PKG_VERSION}+$(echo "$CMAKE_BUILD_TYPE" | tr '[:upper:]' '[:lower:]')1"
|
||||
fi
|
||||
|
||||
rm -rf $BUILD_DIR
|
||||
mkdir -p $BUILD_DIR/debian
|
||||
|
||||
COPYRIGHT="${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/opencl/${SPEC_FILE}/copyright"
|
||||
CONTROL="${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/opencl/${SPEC_FILE}/control"
|
||||
SHLIBS="${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/opencl/${SPEC_FILE}/shlibs.local"
|
||||
|
||||
cp -pR ${REPO_DIR}/scripts/packaging/opencl/${SPEC_FILE}/debian/* $BUILD_DIR/debian/
|
||||
cp $COPYRIGHT $BUILD_DIR/debian/
|
||||
cp $CONTROL $BUILD_DIR/debian/
|
||||
if [ -f "${SHLIBS}" ]; then
|
||||
cp $SHLIBS $BUILD_DIR/debian/
|
||||
fi
|
||||
|
||||
if [ -z "${BRANCH_SUFFIX}" ]; then
|
||||
GMM_VERSION=$(apt-cache policy libigdgmm12 | grep Installed | cut -f2- -d ':' | xargs)
|
||||
if [ ! -z "${GMM_VERSION}" ]; then
|
||||
perl -pi -e "s/^ libigdgmm12(?=,|$)/ libigdgmm12 (>=$GMM_VERSION)/" "$BUILD_DIR/debian/control"
|
||||
fi
|
||||
GMM_DEVEL_VERSION=$(apt-cache policy libigdgmm-dev | grep Installed | cut -f2- -d ':' | xargs)
|
||||
if [ ! -z "${GMM_DEVEL_VERSION}" ]; then
|
||||
perl -pi -e "s/^ libigdgmm-dev(?=,|$)/ libigdgmm-dev (>=$GMM_DEVEL_VERSION)/" "$BUILD_DIR/debian/control"
|
||||
fi
|
||||
|
||||
IGC_VERSION=$(apt-cache policy intel-igc-opencl | grep Installed | cut -f2- -d ':' | xargs)
|
||||
if [ ! -z "${IGC_VERSION}" ]; then
|
||||
perl -pi -e "s/^ intel-igc-opencl(?=,|$)/ intel-igc-opencl (=$IGC_VERSION)/" "$BUILD_DIR/debian/control"
|
||||
fi
|
||||
IGC_DEVEL_VERSION=$(apt-cache policy intel-igc-opencl-devel | grep Installed | cut -f2- -d ':' | xargs)
|
||||
if [ ! -z "${IGC_DEVEL_VERSION}" ]; then
|
||||
perl -pi -e "s/^ intel-igc-opencl-devel(?=,|$)/ intel-igc-opencl-devel (=$IGC_DEVEL_VERSION)/" "$BUILD_DIR/debian/control"
|
||||
fi
|
||||
fi
|
||||
|
||||
#needs a top level CMAKE file
|
||||
cat << EOF | tee $BUILD_DIR/CMakeLists.txt
|
||||
cmake_minimum_required (VERSION 3.13.0 FATAL_ERROR)
|
||||
|
||||
project(neo)
|
||||
|
||||
add_subdirectory($REPO_DIR neo)
|
||||
EOF
|
||||
|
||||
(
|
||||
cd $BUILD_DIR
|
||||
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
|
||||
ccache -z
|
||||
fi
|
||||
export DEB_BUILD_OPTIONS="nodocs notest nocheck"
|
||||
export DH_VERBOSE=1
|
||||
if [ "${CMAKE_BUILD_TYPE}" != "Release" ]; then
|
||||
export DH_INTERNAL_BUILDFLAGS=1
|
||||
fi
|
||||
if [ "${ENABLE_ULT}" == "0" ]; then
|
||||
NEO_SKIP_UNIT_TESTS="TRUE"
|
||||
fi
|
||||
if [ "${TARGET_ARCH}" == "aarch64" ]; then
|
||||
NEO_SKIP_UNIT_TESTS="TRUE"
|
||||
export NEO_DISABLE_BUILTINS_COMPILATION="TRUE"
|
||||
fi
|
||||
export NEO_DISABLE_BUILTINS_COMPILATION
|
||||
export NEO_SKIP_UNIT_TESTS
|
||||
|
||||
dch -v ${PKG_VERSION} -m "build $PKG_VERSION" -b
|
||||
ulimit -n 65535 || true
|
||||
dpkg-buildpackage -j`nproc --all` -us -uc -b -rfakeroot
|
||||
sudo dpkg -i --force-depends ../*.deb
|
||||
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
|
||||
ccache -s
|
||||
ccache -s | grep 'cache hit rate' | cut -d ' ' -f 4- | xargs -I{} echo OpenCL {} >> $REPO_DIR/../output/logs/ccache.log
|
||||
fi
|
||||
)
|
||||
|
||||
mkdir -p ${REPO_DIR}/../output/dbgsym
|
||||
|
||||
mv ${REPO_DIR}/../*.deb ${REPO_DIR}/../output/
|
||||
find ${REPO_DIR}/.. -maxdepth 1 -name \*.ddeb -type f -print0 | xargs -0r mv -t ${REPO_DIR}/../output/dbgsym/
|
||||
32
scripts/packaging/opencl/ubuntu_20.04/control
Normal file
32
scripts/packaging/opencl/ubuntu_20.04/control
Normal file
@@ -0,0 +1,32 @@
|
||||
Source: intel-compute-runtime
|
||||
Section: libs
|
||||
Priority: optional
|
||||
Maintainer: Intel Graphics Team <linux-graphics@intel.com>
|
||||
XSBC-Original-Maintainer: Debian OpenCL Maintainers <pkg-opencl-devel@lists.alioth.debian.org>
|
||||
Build-Depends: debhelper (>= 11),
|
||||
cmake,
|
||||
intel-igc-opencl-devel,
|
||||
libigdgmm-dev,
|
||||
# libva-dev,
|
||||
pkg-config
|
||||
Standards-Version: 4.3.0
|
||||
Homepage: https://github.com/intel/compute-runtime
|
||||
|
||||
Package: intel-opencl-icd
|
||||
Architecture: amd64 arm64
|
||||
Depends:
|
||||
${shlibs:Depends},
|
||||
${misc:Depends},
|
||||
intel-igc-opencl,
|
||||
libigdgmm12,
|
||||
ocl-icd-libopencl1,
|
||||
Breaks:
|
||||
intel-opencl
|
||||
Replaces:
|
||||
intel-opencl
|
||||
Provides:
|
||||
opencl-icd
|
||||
Description: Intel graphics compute runtime for OpenCL
|
||||
The Intel(R) Graphics Compute Runtime for OpenCL(TM) is a open source
|
||||
project to converge Intel's development efforts on OpenCL(TM) compute
|
||||
stacks supporting the GEN graphics hardware architecture.
|
||||
114
scripts/packaging/opencl/ubuntu_20.04/copyright
Normal file
114
scripts/packaging/opencl/ubuntu_20.04/copyright
Normal file
@@ -0,0 +1,114 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: compute-runtime
|
||||
Source: https://github.com/intel/compute-runtime
|
||||
|
||||
Files: *
|
||||
Copyright: 2018-2020 Intel Corporation
|
||||
License: MIT
|
||||
|
||||
Files: third_party/gtest/*
|
||||
Copyright: 2005-2008 Google Inc.
|
||||
License: BSD-3-clause
|
||||
|
||||
Files: third_party/opencl_headers/*
|
||||
third_party/opengl_headers/GL/glext.h
|
||||
Copyright: 2008-2015 The Khronos Group Inc.
|
||||
2008-2020 Intel Corporation
|
||||
License: MIT
|
||||
|
||||
Files: third_party/opengl_headers/GL/gl.h
|
||||
Copyright: 1991-2000 Silicon Graphics, Inc.
|
||||
License: SGI
|
||||
|
||||
Files: third_party/source_level_debugger/*
|
||||
Copyright: 2014-2016 Intel Corporation
|
||||
License: BSD-3-clause
|
||||
|
||||
Files: third_party/uapi/*
|
||||
Copyright: 1999 Precision Insight, Inc.
|
||||
2000 VA Linux Systems, Inc.
|
||||
2007 Dave Airlie <airlied@linux.ie>
|
||||
2007 Jakob Bornecrantz <wallbraker@gmail.com>
|
||||
2008 Red Hat Inc.
|
||||
2003-2008 Tungsten Graphics, Inc.
|
||||
2007-2008 Intel Corporation
|
||||
License: MIT
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2019 Timo Aaltonen <tjaalton@debian.org>
|
||||
License: MIT
|
||||
|
||||
License: MIT
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
.
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
License: BSD-3-clause
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
.
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in
|
||||
the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of Intel Corporation nor the names of its
|
||||
contributors may be used to endorse or promote products derived
|
||||
from this software without specific prior written permission.
|
||||
.
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
License: SGI
|
||||
License Applicability. Except to the extent portions of this file are
|
||||
made subject to an alternative license as permitted in the SGI Free
|
||||
Software License B, Version 1.1 (the "License"), the contents of this
|
||||
file are subject only to the provisions of the License. You may not use
|
||||
this file except in compliance with the License. You may obtain a copy
|
||||
of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
|
||||
Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
|
||||
.
|
||||
http://oss.sgi.com/projects/FreeB
|
||||
.
|
||||
Note that, as provided in the License, the Software is distributed on an
|
||||
"AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
|
||||
DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
|
||||
CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
|
||||
PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
|
||||
.
|
||||
Original Code. The Original Code is: OpenGL Sample Implementation,
|
||||
Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
|
||||
Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
|
||||
Copyright in any portions created by third parties is as indicated
|
||||
elsewhere herein. All Rights Reserved.
|
||||
.
|
||||
Additional Notice Provisions: This software was created using the
|
||||
OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
|
||||
not been independently verified as being compliant with the OpenGL(R)
|
||||
version 1.2.1 Specification.
|
||||
5
scripts/packaging/opencl/ubuntu_20.04/debian/changelog
Normal file
5
scripts/packaging/opencl/ubuntu_20.04/debian/changelog
Normal file
@@ -0,0 +1,5 @@
|
||||
intel-compute-runtime (19.29.13530-1) unstable; urgency=medium
|
||||
|
||||
* Initial release (Closes: #926706)
|
||||
|
||||
-- Timo Aaltonen <tjaalton@debian.org> Thu, 01 Aug 2019 12:26:37 +0300
|
||||
1
scripts/packaging/opencl/ubuntu_20.04/debian/compat
Normal file
1
scripts/packaging/opencl/ubuntu_20.04/debian/compat
Normal file
@@ -0,0 +1 @@
|
||||
11
|
||||
44
scripts/packaging/opencl/ubuntu_20.04/debian/rules
Executable file
44
scripts/packaging/opencl/ubuntu_20.04/debian/rules
Executable file
@@ -0,0 +1,44 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@ --builddir build/ --buildsystem=cmake+ninja
|
||||
|
||||
NEO_DISABLE_BUILTINS_COMPILATION ?= FALSE
|
||||
RELEASE_WITH_REGKEYS ?= FALSE
|
||||
IGDRCL_FORCE_USE_LIBVA ?= FALSE
|
||||
NEO_SKIP_UNIT_TESTS ?= FALSE
|
||||
NEO_SKIP_AUB_TESTS_RUN ?= TRUE
|
||||
NEO_ENABLE_i915_PRELIM_DETECTION ?= TRUE
|
||||
NEO_ENABLE_XE_EU_DEBUG_SUPPORT ?= FALSE
|
||||
NEO_FORCE_USE_AUB_STREAM ?= TRUE
|
||||
|
||||
override_dh_auto_configure:
|
||||
dh_auto_configure -- ${NEO_BUILD_EXTRA_OPTS} \
|
||||
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
|
||||
-DNEO_OCL_VERSION_MAJOR=${NEO_OCL_VERSION_MAJOR} \
|
||||
-DNEO_OCL_VERSION_MINOR=${NEO_OCL_VERSION_MINOR} \
|
||||
-DNEO_VERSION_BUILD=${NEO_OCL_VERSION_BUILD} \
|
||||
-DNEO_SKIP_AUB_TESTS_RUN=${NEO_SKIP_AUB_TESTS_RUN} \
|
||||
-DNEO_SKIP_UNIT_TESTS=${NEO_SKIP_UNIT_TESTS} \
|
||||
-DNEO_ENABLE_i915_PRELIM_DETECTION=${NEO_ENABLE_i915_PRELIM_DETECTION} \
|
||||
-DNEO_ENABLE_XE_EU_DEBUG_SUPPORT=${NEO_ENABLE_XE_EU_DEBUG_SUPPORT} \
|
||||
-DNEO_DISABLE_BUILTINS_COMPILATION=${NEO_DISABLE_BUILTINS_COMPILATION} \
|
||||
-DBUILD_WITH_L0=FALSE \
|
||||
-DRELEASE_WITH_REGKEYS=${RELEASE_WITH_REGKEYS} \
|
||||
-DIGDRCL_FORCE_USE_LIBVA=${IGDRCL_FORCE_USE_LIBVA} \
|
||||
-DNEO_FORCE_USE_AUB_STREAM=${NEO_FORCE_USE_AUB_STREAM} \
|
||||
-Wno-dev
|
||||
|
||||
override_dh_auto_build:
|
||||
${BUILD_PREFIX} dh_auto_build
|
||||
|
||||
override_dh_install:
|
||||
rm -rvf debian/intel-opencl-icd/usr/lib/debug
|
||||
dh_install
|
||||
if [ -d "${NEO_NINJA_DUMP}" ]; then find -name .ninja_\* -type f -exec cp -v {} ${NEO_NINJA_DUMP}/ \;; fi
|
||||
|
||||
override_dh_builddeb:
|
||||
dh_builddeb -- -Zxz
|
||||
|
||||
override_dh_auto_test:
|
||||
echo "ULTs already executed"
|
||||
@@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
||||
2
scripts/packaging/opencl/ubuntu_20.04/shlibs.local
Normal file
2
scripts/packaging/opencl/ubuntu_20.04/shlibs.local
Normal file
@@ -0,0 +1,2 @@
|
||||
libigdgmm 11 intel-gmmlib
|
||||
libigdgmm 12 libigdgmm12
|
||||
Reference in New Issue
Block a user