parent
5a463d9886
commit
523f2780af
|
|
@ -150,8 +150,47 @@ elif [ -f /etc/redhat-release ] || grep -q "rhel" /etc/os-release ; then
|
|||
python3-devel \
|
||||
`# samples and tools` \
|
||||
zlib-devel \
|
||||
gflags-devel \
|
||||
libva-devel
|
||||
gflags-devel
|
||||
elif [ -f /etc/os-release ] && grep -q "SUSE" /etc/os-release ; then
|
||||
zypper refresh
|
||||
zypper install -y \
|
||||
file \
|
||||
`# build tools` \
|
||||
cmake \
|
||||
ccache \
|
||||
ninja \
|
||||
scons \
|
||||
gcc \
|
||||
gcc-c++ \
|
||||
make \
|
||||
`# to determine openvino version via git` \
|
||||
git \
|
||||
git-lfs \
|
||||
`# to build and check pip packages` \
|
||||
patchelf \
|
||||
fdupes \
|
||||
`# to build and check rpm packages` \
|
||||
rpm-build \
|
||||
rpmlint \
|
||||
`# check bash scripts for correctness` \
|
||||
ShellCheck \
|
||||
`# main openvino dependencies` \
|
||||
tbb-devel \
|
||||
pugixml-devel \
|
||||
`# GPU plugin dependency` \
|
||||
libva-devel \
|
||||
`# OpenCL for GPU` \
|
||||
ocl-icd-devel \
|
||||
opencl-cpp-headers \
|
||||
opencl-headers \
|
||||
`# python API` \
|
||||
python39-pip \
|
||||
python39-setuptools \
|
||||
python39-devel \
|
||||
`# samples and tools` \
|
||||
zlib-devel \
|
||||
gflags-devel-static \
|
||||
nlohmann_json-devel
|
||||
elif [ -f /etc/os-release ] && grep -q "raspbian" /etc/os-release; then
|
||||
# Raspbian
|
||||
apt update
|
||||
|
|
@ -187,8 +226,10 @@ if [ ! "$(printf '%s\n' "$required_cmake_ver" "$current_cmake_ver" | sort -V | h
|
|||
|
||||
if command -v apt-get &> /dev/null; then
|
||||
apt-get install -y --no-install-recommends wget
|
||||
else
|
||||
elif command -v yum &> /dev/null; then
|
||||
yum install -y wget
|
||||
elif command -v zypper &> /dev/null; then
|
||||
zypper in -y wget
|
||||
fi
|
||||
|
||||
cmake_install_bin="cmake-${installed_cmake_ver}-linux-${arch}.sh"
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ if [ "$os" == "auto" ] ; then
|
|||
case $os in
|
||||
centos7|centos8|rhel8|rhel9.1|\
|
||||
almalinux8.7|amzn2|\
|
||||
opensuse-leap15.3| \
|
||||
fedora34|fedora35|fedora36|fedora37|fedora38|\
|
||||
raspbian9|debian9|ubuntu18.04|\
|
||||
raspbian10|debian10|ubuntu20.04|ubuntu20.10|ubuntu21.04|\
|
||||
|
|
@ -282,6 +283,11 @@ elif [ "$os" == "centos7" ] || [ "$os" == "centos8" ] ||
|
|||
pkgs_dev+=(https://download-ib01.fedoraproject.org/pub/epel/9/Everything/$arch/Packages/g/gflags-devel-2.2.2-9.el9.$arch.rpm)
|
||||
extra_repos+=(https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm)
|
||||
fi
|
||||
elif [ "$os" == "opensuse-leap15.3" ] ; then
|
||||
pkgs_core=(libtbb2 libtbbmalloc2 libpugixml1)
|
||||
pkgs_gpu=()
|
||||
pkgs_python=(python39-base python39 python39-venv python39-pip)
|
||||
pkgs_dev=(cmake pkg-config gcc-c++ gcc gflags-devel-static zlib-devel nlohmann_json-devel make curl sudo)
|
||||
else
|
||||
echo "Internal script error: invalid OS (${os}) after check (package selection)" >&2
|
||||
exit 3
|
||||
|
|
@ -346,6 +352,14 @@ elif [ "$os" == "centos7" ] || [ "$os" == "centos8" ] ||
|
|||
|
||||
yum install $iopt ${pkgs[@]}
|
||||
|
||||
elif [ "$os" == "opensuse-leap15.3" ] ; then
|
||||
|
||||
[ -z "$interactive" ] && iopt="-y"
|
||||
[ -n "$dry" ] && iopt="--dry-run"
|
||||
[ -n "$keepcache" ] && zypper clean --all
|
||||
|
||||
zypper ref && zypper in --auto-agree-with-licenses --no-recommends "$iopt" "${pkgs[@]}"
|
||||
|
||||
else
|
||||
echo "Internal script error: invalid OS (${os}) after check (package installation)" >&2
|
||||
exit 3
|
||||
|
|
|
|||
|
|
@ -211,6 +211,10 @@ clEnqueueMemFillINTEL_fn)(
|
|||
|
||||
#define CL_DEVICE_UUID_KHR 0x106A
|
||||
|
||||
#endif // cl_khr_device_uuid
|
||||
|
||||
#ifndef OV_GPU_USE_OPENCL_HPP
|
||||
|
||||
// for C++ wrappers
|
||||
using uuid_array = std::array<cl_uchar, CL_UUID_SIZE_KHR>;
|
||||
|
||||
|
|
@ -220,7 +224,7 @@ CL_HPP_DECLARE_PARAM_TRAITS_(cl_device_info, CL_DEVICE_UUID_KHR, uuid_array)
|
|||
} // namespace detail
|
||||
} // namespace cl
|
||||
|
||||
#endif // cl_khr_device_uuid
|
||||
#endif // OV_GPU_USE_OPENCL_HPP
|
||||
|
||||
/***************************************************************
|
||||
* cl_intel_device_attribute_query
|
||||
|
|
|
|||
Loading…
Reference in New Issue