Refactor osv build scripts

Correctly set and export variables
Add sles_15.3

Related-To: NEO-5854
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
This commit is contained in:
Pawel Cieslak
2021-08-18 10:15:28 +00:00
committed by Compute-Runtime-Automation
parent 6fba8d6138
commit e5d5c23606
15 changed files with 321 additions and 77 deletions

View File

@ -9,8 +9,8 @@
set -ex
get_api_version() {
API_VERSION="0"
API_VERSION_SRC="master"
API_VERSION="${API_VERSION:-0}"
API_VERSION_SRC="${API_VERSION_SRC:-master}"
API_DEB_MODEL_LINK=""
API_RPM_MODEL_LINK=""
if [ "${COMPONENT_MODEL}" != "ci" ]; then

View File

@ -23,9 +23,8 @@ fi
LOG_CCACHE_STATS="${LOG_CCACHE_STATS:-0}"
BUILD_ID="${BUILD_ID:-1}"
CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:-Release}"
DO_NOT_RUN_AUB_TESTS="${DO_NOT_RUN_AUB_TESTS:-FALSE}"
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"

View File

@ -10,42 +10,35 @@ set -ex
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
REPO_DIR="$( cd "$( dirname "${DIR}/../../../../" )" && pwd )"
BUILD_DIR="${REPO_DIR}/../build_l0_gpu_driver"
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}"
BUILD_SRPM="${BUILD_SRPM:-1}"
BUILD_RPM="${BUILD_RPM:-1}"
BUILD_NUMBER="${BUILD_NUMBER:-1}"
BUILD_VERSION="${BUILD_VERSION:-dev-build}"
CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:-Release}"
USE_SOURCE_LEVEL_ZERO="${USE_SOURCE_LEVEL_ZERO:-1}"
export PACKAGING_DIR="$REPO_DIR/scripts/packaging/l0_gpu_driver/${OS_TYPE}"
export SPEC_SRC="$PACKAGING_DIR/SPECS/l0_gpu_driver.spec"
export SPEC="$BUILD_DIR/SPECS/l0_gpu_driver.spec"
export COPYRIGHT="${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/l0_gpu_driver/${OS_TYPE}/copyright"
BRANCH_TYPE=`cat ${REPO_DIR}/.branch`
[ -z "$BRANCH_TYPE" ] && BRANCH_TYPE='master'
export BUILD_ID="${BUILD_ID:-1}"
export CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:-Release}"
(
if [ "${BUILD_SRPM}" == "1" ]; then
BRANCH_SUFFIX="$( cat ${REPO_DIR}/.branch )"
PACKAGING_DIR="$REPO_DIR/scripts/packaging/l0_gpu_driver/${OS_TYPE}"
SPEC_SRC="$PACKAGING_DIR/SPECS/l0_gpu_driver.spec"
SPEC="$BUILD_DIR/SPECS/l0_gpu_driver.spec"
COPYRIGHT="${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/l0_gpu_driver/${OS_TYPE}/copyright"
build_args=()
if [ "${CMAKE_BUILD_TYPE}" == "Debug" ]; then
export CFLAGS=" "
export CXXFLAGS=" "
export FFLAGS=" "
build_args+=(--define 'name_suffix -debug')
build_args+=(--define 'is_debug 1')
fi
source "${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/functions.sh"
@ -74,7 +67,10 @@ if [ "${BUILD_SRPM}" == "1" ]; then
perl -pi -e "s/^%global ver .*/%global ver ${VERSION}/" $SPEC
perl -pi -e "s/^%global rel .*/%global rel ${RELEASE}/" $SPEC
perl -pi -e "s/^%global build_id .*/%global build_id ${NEO_L0_VERSION_PATCH}/" $SPEC
perl -pi -e "s,^%global neo_source_dir .*,%global neo_source_dir ${REPO_DIR}," $SPEC
if [ "${USE_SOURCE_LEVEL_ZERO}" == "1" ]; then
perl -pi -e "s,^%global neo_source_dir .*,%global neo_source_dir ${REPO_DIR}," $SPEC
fi
rpmbuild --define "_topdir $BUILD_DIR" -bs $SPEC --define 'build_type ${CMAKE_BUILD_TYPE}' "${build_args[@]}"
mkdir -p ${REPO_DIR}/../output/SRPMS
@ -84,6 +80,8 @@ fi
)
if [ "${BUILD_RPM}" == "1" ]; then
LOG_CCACHE_STATS="${LOG_CCACHE_STATS:-0}"
rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}

View File

@ -4,6 +4,12 @@
%global build_id xxx
%global neo_source_dir %{nil}
%if "%{neo_source_dir}" != ""
%global neo_build_extra_opts -DNEO_SOURCE_DIR=%neo_source_dir
%else
%global neo_build_extra_opts %{nil}
%endif
%define _source_payload w5T16.xzdio
%define _binary_payload w5T16.xzdio
@ -41,13 +47,12 @@ exposing hardware capabilities to applications.
%build
mkdir build
cd build
cmake .. \
%cmake .. %neo_build_extra_opts \
-DNEO_VERSION_BUILD=%{build_id} \
-DCMAKE_BUILD_TYPE=Release \
-DSKIP_UNIT_TESTS=1 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DL0_INSTALL_UDEV_RULES=1 \
-DNEO_SOURCE_DIR=%neo_source_dir \
-DUDEV_RULES_DIR=/etc/udev/rules.d/
%make_build

View File

@ -13,6 +13,12 @@
%define build_type Release
%endif
%if "%{neo_source_dir}" != ""
%global neo_build_extra_opts -DNEO_SOURCE_DIR=%neo_source_dir
%else
%global neo_build_extra_opts %{nil}
%endif
%define _source_payload w5T16.xzdio
%define _binary_payload w5T16.xzdio
@ -45,27 +51,13 @@ 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.
%if 0%{?is_debug}
%package -n intel-level-zero-gpu%{?name_suffix}
Summary: Intel(R) GPU Driver for oneAPI Level Zero.
Conflicts: intel-level-zero-gpu
%description -n intel-level-zero-gpu%{?name_suffix}
Runtime library providing the ability to use Intel GPUs with the oneAPI Level
Zero programming interface.
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.
%endif
%define debug_package %{nil}
%debug_package
%prep
%autosetup -p1 -n compute-runtime-%{version}
%build
%cmake .. \
%cmake .. %neo_build_extra_opts \
-DNEO_VERSION_BUILD=%{build_id} \
-DCMAKE_BUILD_TYPE=%{build_type} \
-DCMAKE_INSTALL_PREFIX=/usr \
@ -73,7 +65,6 @@ exposing hardware capabilities to applications.
-DRELEASE_WITH_REGKEYS=TRUE \
-DL0_INSTALL_UDEV_RULES=1 \
-DUDEV_RULES_DIR=/etc/udev/rules.d/ \
-DNEO_SOURCE_DIR=%neo_source_dir \
-Wno-dev
%make_build

View File

@ -0,0 +1,102 @@
# spec file for package intel-level-zero-gpu
#it's changed by external script
%global ver xxx
%global rel xxx
%global build_id xxx
%global neo_source_dir %{nil}
%define gmmlib_sover 11
%define igc_sover 1
%if !0%{?build_type:1}
%define build_type Release
%endif
%if "%{neo_source_dir}" != ""
%global neo_build_extra_opts -DNEO_SOURCE_DIR=%neo_source_dir
%else
%global neo_build_extra_opts %{nil}
%endif
%define _source_payload w5T16.xzdio
%define _binary_payload w5T16.xzdio
Name: intel-level-zero-gpu
Version: %{ver}
Release: %{rel}%{?dist}
Summary: Intel(R) GPU Driver for oneAPI Level Zero.
Group: System Environment/Libraries
License: MIT
URL: https://github.com/intel/compute-runtime
Source0: %{url}/archive/%{version}/compute-runtime-%{version}.tar.xz
Source1: copyright
ExclusiveArch: x86_64
BuildRequires: cmake make gcc-c++
#BuildRequires: libva-devel
BuildRequires: libigdgmm%{?name_suffix}-devel
BuildRequires: libigdfcl%{?name_suffix}-devel
Requires: libigc%{igc_sover}%{?name_suffix}
Requires: libigdfcl%{igc_sover}%{?name_suffix}
Requires: libigdgmm%{gmmlib_sover}%{?name_suffix}
%description
Runtime library providing the ability to use Intel GPUs with the oneAPI Level
Zero programming interface.
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.
%debug_package
%prep
%autosetup -p1 -n compute-runtime-%{version}
%build
%cmake .. %neo_build_extra_opts \
-DNEO_VERSION_BUILD=%{build_id} \
-DCMAKE_BUILD_TYPE=%{build_type} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSKIP_UNIT_TESTS=TRUE \
-DRELEASE_WITH_REGKEYS=TRUE \
-DL0_INSTALL_UDEV_RULES=1 \
-DUDEV_RULES_DIR=/etc/udev/rules.d/ \
-Wno-dev
%make_build
%install
cd build
%make_install
#Remove OpenCL files before installing
rm -rf %{buildroot}%{_libdir}/intel-opencl/
rm -rf %{buildroot}%{_sysconfdir}/OpenCL/
rm -rf %{buildroot}%{_bindir}/ocloc
rm -rf %{buildroot}%{_libdir}/libocloc.so
rm -rf %{buildroot}%{_includedir}/ocloc_api.h
#Remove debug files
rm -f %{buildroot}/%{_libdir}/intel-opencl/libigdrcl.so.debug
rm -f %{buildroot}/%{_libdir}/libocloc.so.debug
rm -rf %{buildroot}/usr/lib/debug/
#insert license into package
mkdir -p %{buildroot}/usr/share/doc/intel-level-zero-gpu%{?name_suffix}/
cp -pR %{_sourcedir}/copyright %{buildroot}/usr/share/doc/intel-level-zero-gpu%{?name_suffix}/.
%files -n intel-level-zero-gpu%{?name_suffix}
%defattr(-,root,root)
%{_libdir}/libze_intel_gpu.so.*
%{_sharedstatedir}/libze_intel_gpu/pci_bind_status_file
%{_sharedstatedir}/libze_intel_gpu/wedged_file
%{_sysconfdir}/udev/rules.d/99-drm_ze_intel_gpu.rules
/usr/share/doc/intel-level-zero-gpu%{?name_suffix}/copyright
%config(noreplace)
%doc
%changelog
* Mon Sep 13 2021 Compute-Runtime-Automation <compute-runtime@intel.com>
- Initial spec file for SLES 15.3

View File

@ -0,0 +1,23 @@
---
MIT License
Copyright (c) 2018-2021 Intel Corporation
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.

View File

@ -7,7 +7,6 @@ ver = xxx
override_dh_auto_configure:
dh_auto_configure -- ${NEO_BUILD_EXTRA_OPTS} \
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
-DBUILD_TYPE=${BUILD_TYPE} \
-DNEO_VERSION_BUILD=$(ver) \
-DSKIP_UNIT_TESTS=${SKIP_UNIT_TESTS} \
-DRELEASE_WITH_REGKEYS=1 \

View File

@ -7,7 +7,6 @@ ver = xxx
override_dh_auto_configure:
dh_auto_configure -- ${NEO_BUILD_EXTRA_OPTS} \
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
-DBUILD_TYPE=${BUILD_TYPE} \
-DNEO_VERSION_BUILD=$(ver) \
-DSKIP_UNIT_TESTS=${SKIP_UNIT_TESTS} \
-DRELEASE_WITH_REGKEYS=1 \

View File

@ -23,9 +23,9 @@ fi
LOG_CCACHE_STATS="${LOG_CCACHE_STATS:-0}"
BUILD_ID="${BUILD_ID:-1}"
CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:-Release}"
DO_NOT_RUN_AUB_TESTS="${DO_NOT_RUN_AUB_TESTS:-FALSE}"
export BUILD_ID="${BUILD_ID:-1}"
export CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:-Release}"
export DO_NOT_RUN_AUB_TESTS="${DO_NOT_RUN_AUB_TESTS:-FALSE}"
source "${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/functions.sh"
source "${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/opencl/opencl.sh"
@ -33,6 +33,10 @@ 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
VERSION="${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_OCL_VERSION_BUILD}.${API_VERSION}-${API_VERSION_SRC}${API_DEB_MODEL_LINK}"
PKG_VERSION=${VERSION}

View File

@ -10,42 +10,33 @@ set -ex
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
REPO_DIR="$( cd "$( dirname "${DIR}/../../../../" )" && pwd )"
BUILD_DIR="${REPO_DIR}/../build_opencl"
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}"
BUILD_SRPM="${BUILD_SRPM:-1}"
BUILD_RPM="${BUILD_RPM:-1}"
BUILD_NUMBER="${BUILD_NUMBER:-1}"
BUILD_VERSION="${BUILD_VERSION:-dev-build}"
CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:-Release}"
export PACKAGING_DIR="$REPO_DIR/scripts/packaging/opencl/${OS_TYPE}"
export SPEC_SRC="$PACKAGING_DIR/SPECS/opencl.spec"
export SPEC="$BUILD_DIR/SPECS/opencl.spec"
export COPYRIGHT="${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/opencl/${OS_TYPE}/copyright"
BRANCH_TYPE=`cat ${REPO_DIR}/.branch`
[ -z "$BRANCH_TYPE" ] && BRANCH_TYPE='master'
export BUILD_ID="${BUILD_ID:-1}"
export CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:-Release}"
(
if [ "${BUILD_SRPM}" == "1" ]; then
BRANCH_SUFFIX="$( cat ${REPO_DIR}/.branch )"
PACKAGING_DIR="$REPO_DIR/scripts/packaging/opencl/${OS_TYPE}"
SPEC_SRC="$PACKAGING_DIR/SPECS/opencl.spec"
SPEC="$BUILD_DIR/SPECS/opencl.spec"
COPYRIGHT="${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/opencl/${OS_TYPE}/copyright"
build_args=()
if [ "${CMAKE_BUILD_TYPE}" == "Debug" ]; then
export CFLAGS=" "
export CXXFLAGS=" "
export FFLAGS=" "
build_args+=(--define 'name_suffix -debug')
build_args+=(--define 'is_debug 1')
fi
source "${REPO_DIR}/scripts/packaging/${BRANCH_SUFFIX}/functions.sh"
@ -82,6 +73,8 @@ fi
)
if [ "${BUILD_RPM}" == "1" ]; then
LOG_CCACHE_STATS="${LOG_CCACHE_STATS:-0}"
rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}

View File

@ -42,7 +42,7 @@ Intel(R) Graphics Compute Runtime for OpenCL(TM) is a open source project to con
mkdir build
cd build
cmake .. \
-DNEO_VERSION_BUILD=$(ver) \
-DNEO_VERSION_BUILD=%{ver} \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_WITH_L0=0 \
-DSKIP_UNIT_TESTS=1 \

View File

@ -39,22 +39,11 @@ 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.
%if 0%{?is_debug}
%package -n intel-opencl%{?name_suffix}
Summary: Intel(R) Graphics Compute Runtime for OpenCL(TM)
Conflicts: intel-opencl
%description -n intel-opencl%{?name_suffix}
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.
%endif
%package -n intel-ocloc%{?name_suffix}
Summary: ocloc package for opencl
%description -n intel-ocloc%{?name_suffix}
%define debug_package %{nil}
%debug_package
%prep
%autosetup -p1 -n compute-runtime-%{version}
@ -62,7 +51,7 @@ Summary: ocloc package for opencl
%build
%cmake .. \
-DCMAKE_BUILD_TYPE=%{build_type} \
-DNEO_VERSION_BUILD=$(ver) \
-DNEO_VERSION_BUILD=%{ver} \
-DBUILD_WITH_L0=0 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSKIP_UNIT_TESTS=1 \

View File

@ -0,0 +1,91 @@
# spec file for package intel-opencl
#it's changed by external script
%global rel i1
%global ver xxx
%define gmmlib_sover 11
%define igc_sover 1
%if !0%{?build_type:1}
%define build_type Release
%endif
%define _source_payload w5T16.xzdio
%define _binary_payload w5T16.xzdio
Name: intel-opencl
Epoch: 1
Version: %{ver}
Release: %{rel}%{?dist}
Summary: Intel(R) Graphics Compute Runtime for OpenCL(TM)
License: MIT
Group: System Environment/Libraries
Url: https://github.com/intel/compute-runtime
Source0: %{url}/archive/%{version}/compute-runtime-%{version}.tar.xz
Source1: copyright
ExclusiveArch: x86_64
BuildRequires: cmake make gcc-c++
#BuildRequires: libva-devel
BuildRequires: libigdgmm%{?name_suffix}-devel
BuildRequires: libigdfcl%{?name_suffix}-devel
Requires: libigc%{igc_sover}%{?name_suffix}
Requires: libigdfcl%{igc_sover}%{?name_suffix}
Requires: libigdgmm%{gmmlib_sover}%{?name_suffix}
%description
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.
%package -n intel-ocloc%{?name_suffix}
Summary: ocloc package for opencl
%description -n intel-ocloc%{?name_suffix}
%debug_package
%prep
%autosetup -p1 -n compute-runtime-%{version}
%build
%cmake .. \
-DCMAKE_BUILD_TYPE=%{build_type} \
-DNEO_VERSION_BUILD=%{ver} \
-DBUILD_WITH_L0=0 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSKIP_UNIT_TESTS=1 \
-DRELEASE_WITH_REGKEYS=1 \
-Wno-dev
%make_build
%install
cd build
%make_install
chmod +x %{buildroot}/%{_libdir}/intel-opencl/libigdrcl.so
rm -f %{buildroot}/%{_libdir}/intel-opencl/libigdrcl.so.debug
rm -f %{buildroot}/%{_libdir}/libocloc.so.debug
rm -rf %{buildroot}/usr/lib/debug/
#insert license into package
mkdir -p %{buildroot}/usr/share/doc/intel-opencl%{?name_suffix}/
cp -pR %{_sourcedir}/copyright %{buildroot}/usr/share/doc/intel-opencl%{?name_suffix}/.
mkdir -p %{buildroot}/usr/share/doc/intel-ocloc%{?name_suffix}/
cp -pR %{_sourcedir}/copyright %{buildroot}/usr/share/doc/intel-ocloc%{?name_suffix}/.
%files -n intel-opencl%{?name_suffix}
%defattr(-,root,root)
%{_sysconfdir}/OpenCL
%{_libdir}/intel-opencl/libigdrcl.so
/usr/share/doc/intel-opencl%{?name_suffix}/copyright
%files -n intel-ocloc%{?name_suffix}
%defattr(-,root,root)
%{_bindir}/ocloc
%{_libdir}/libocloc.so
%{_includedir}/ocloc_api.h
/usr/share/doc/intel-ocloc%{?name_suffix}/copyright
%changelog
* Mon Sep 13 2021 Compute-Runtime-Automation <compute-runtime@intel.com>
- Initial spec file for SLES 15.3

View File

@ -0,0 +1,51 @@
---
MIT License
Copyright (c) 2018-2021 Intel Corporation
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.
---
Copyright (c) 2008-2015 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are 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 Materials.
MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS
KHRONOS STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS
SPECIFICATIONS AND HEADER INFORMATION ARE LOCATED AT
https://www.khronos.org/registry/
THE MATERIALS ARE 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
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.