diff --git a/scripts/install_dependencies/install_NEO_OCL_driver.sh b/scripts/install_dependencies/install_NEO_OCL_driver.sh index 4ad21135bb40dc..445c92798f80eb 100755 --- a/scripts/install_dependencies/install_NEO_OCL_driver.sh +++ b/scripts/install_dependencies/install_NEO_OCL_driver.sh @@ -15,13 +15,11 @@ # EXIT_FAILURE=1 EXIT_WRONG_ARG=2 -CENTOS_MINOR= RHEL_VERSION= UBUNTU_VERSION= DISTRO= SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]-$0}" )" >/dev/null 2>&1 && pwd )" -INSTALL_DRIVER_VERSION='19.41.14441' -AVAILABLE_DRIVERS=("19.41.14441" "20.35.17767" "21.29.20389") +INSTALL_DRIVER_VERSION='unknown' print_help() @@ -32,10 +30,6 @@ Download and installs the Intel® Graphics Compute Runtime for oneAPI Level Zero Available options: -y Replace the currently installed driver with the newer version. - -a, --auto Auto-mode for detecting best driver for current OS and hardware. - -d, --install_driver Manually select driver version to one of available to install drivers. - Default value: $INSTALL_DRIVER_VERSION - Available to install drivers: ${AVAILABLE_DRIVERS[*]} --no_numa Skip installing NUMA packages. (off) -h, --help Display this help and exit" echo "$usage" @@ -46,14 +40,7 @@ do key="$1" case $key in -d|--install_driver) - user_chosen_driver="$2" - if [[ " ${AVAILABLE_DRIVERS[*]} " =~ " ${user_chosen_driver} " ]]; then - INSTALL_DRIVER_VERSION=$user_chosen_driver - else - echo "ERROR: unable to install the driver ${user_chosen_driver}." - echo "Available values: ${AVAILABLE_DRIVERS[*]}" - exit $EXIT_WRONG_ARG - fi + echo "WARNING: This option is deprecated. Recommended driver for current platform will be installed." shift shift ;; @@ -62,7 +49,7 @@ do shift ;; -a|--auto) - auto_mode=true + echo "WARNING: This option is deprecated. Recommended driver for current platform will be installed." shift ;; --no_numa) @@ -87,14 +74,9 @@ _install_prerequisites_redhat() echo "Note: if yum becomes non-responsive, try aborting the script and run:" echo " sudo -E $0" echo - - if [[ "$INSTALL_DRIVER_VERSION" == "21.29.20389" ]]; then - CMDS=("dnf install -y 'dnf-command(config-manager)'" - "dnf config-manager --add-repo \ - https://repositories.intel.com/graphics/rhel/${RHEL_VERSION}/intel-graphics.repo") - else - CMDS=("yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && yum install -y ocl-icd") - fi + CMDS=("dnf install -y 'dnf-command(config-manager)'" + "dnf config-manager --add-repo \ + https://repositories.intel.com/graphics/rhel/${RHEL_VERSION}/intel-graphics.repo") for cmd in "${CMDS[@]}"; do echo "$cmd" @@ -108,55 +90,14 @@ _install_prerequisites_redhat() done } -_install_prerequisites_centos() +_install_prerequisites_ubuntu() { - # yum doesn't accept timeout in seconds as parameter - echo - echo "Note: if yum becomes non-responsive, try aborting the script and run:" - echo " sudo -E $0" - echo - if [ "$no_numa" == true ]; then - CMDS=("yum install -y epel-release" - "yum -y install ocl-icd ocl-icd-devel") - else - CMDS=("yum install -y epel-release" - "yum -y install numactl-libs numactl ocl-icd ocl-icd-devel") - fi - - for cmd in "${CMDS[@]}"; do - echo "$cmd" - eval "$cmd" - if [[ $? -ne 0 ]]; then - echo "ERROR: failed to run $cmd" >&2 - echo "Problem (or disk space)?" >&2 - echo ". Verify that you have enough disk space, and run the script again." >&2 - exit $EXIT_FAILURE - fi - done - -} - -_install_prerequisites_ubuntu() -{ - if [[ "$INSTALL_DRIVER_VERSION" == "21.29.20389" ]]; then - codename='focal' - if [[ "$UBUNTU_VERSION" == "18.04" ]]; then - codename='bionic' - fi CMDS=("apt-get -y update" - "apt-get -y install gpg-agent software-properties-common" - "curl -L -O https://repositories.intel.com/graphics/intel-graphics.key && apt-key add ./intel-graphics.key" - "apt-add-repository \ - 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu ${codename} main'") + "apt-get -y install --no-install-recommends ocl-icd-libopencl1") else - if [ "$no_numa" == true ]; then - CMDS=("apt-get -y update" - "apt-get -y install --no-install-recommends ocl-icd-libopencl1") - else - CMDS=("apt-get -y update" - "apt-get -y install --no-install-recommends libnuma1 ocl-icd-libopencl1") - fi + CMDS=("apt-get -y update" + "apt-get -y install --no-install-recommends libnuma1 ocl-icd-libopencl1") fi for cmd in "${CMDS[@]}"; do @@ -174,25 +115,18 @@ _install_prerequisites_ubuntu() install_prerequisites() { - echo "Installing prerequisites..." - if [[ $DISTRO == "centos" ]]; then - _install_prerequisites_centos - elif [[ $DISTRO == "redhat" ]]; then + echo 'Installing prerequisites...' + if [[ $DISTRO == "redhat" ]]; then _install_prerequisites_redhat elif [[ $DISTRO == "ubuntu" ]]; then _install_prerequisites_ubuntu else - echo Unknown OS + echo 'WARNING::install_prerequisites: Unknown OS' fi } _deploy_rpm() { - # On a CentOS 7.2 machine with Intel Parallel Composer XE 2017 - # installed we got conflicts when trying to deploy these rpms. - # If that happens to you too, try again with: - # IGFX_RPM_FLAGS="--force" sudo -E ./install_NEO_OCL_driver.sh install - # cmd="rpm $IGFX_RPM_FLAGS -ivh --nodeps --force $1" echo "$cmd" eval "$cmd" @@ -205,81 +139,38 @@ _deploy_deb() eval "$cmd" } -_install_user_mode_centos() -{ - if [[ "$INSTALL_DRIVER_VERSION" == "21.29.20389" ]]; then - CMDS=("dnf install --refresh -y intel-opencl-21.29.20389-i593.el8.x86_64 \ - intel-media-21.2.2-i593.el8.x86_64 \ - level-zero-1.4.1-i593.el8.x86_64 \ - intel-level-zero-gpu-1.1.20389-i593.el8.x86_64 \ - intel-igc-opencl-1.0.7862-i593.el8.x86_64 \ - intel-igc-core-1.0.7862-i593.el8.x86_64 \ - intel-ocloc-21.29.20389-i593.el8.x86_64 \ - intel-gmmlib-21.2.1-i593.el8.x86_64 \ - ocl-icd-2.2.12-1.el8.x86_64") - - for cmd in "${CMDS[@]}"; do - echo "$cmd" - eval "$cmd" - if [[ $? -ne 0 ]]; then - echo "ERROR: failed to run $cmd" >&2 - echo "Problem (or disk space)?" >&2 - echo " sudo -E $0" >&2 - echo "Verify that you have enough disk space, and run the script again." >&2 - exit $EXIT_FAILURE - fi - done - else - _deploy_rpm "intel*.rpm" +_install_user_mode_redhat() +{ + CMDS=("dnf install --refresh -y intel-igc-opencl-1.0.9441-i643.el8.x86_64 \ + intel-media-21.4.1-i643.el8.x86_64 \ + level-zero-1.6.2-i643.el8.x86_64 \ + intel-level-zero-gpu-1.2.21786-i643.el8.x86_64 \ + intel-opencl-21.49.21786-i643.el8.x86_64 \ + intel-igc-core-1.0.9441-i643.el8.x86_64 \ + intel-ocloc-21.49.21786-i643.el8.x86_64 \ + ocl-icd-2.2.12-1.el8.x86_64 \ + intel-gmmlib-21.3.3-i643.el8.x86_64") + + for cmd in "${CMDS[@]}"; do + echo "$cmd" + eval "$cmd" if [[ $? -ne 0 ]]; then - echo "ERROR: failed to install rpms $cmd error" >&2 - echo "Make sure you have enough disk space or fix the problem manually and try again." >&2 + echo "ERROR: failed to run $cmd" >&2 + echo "Problem (or disk space)?" >&2 + echo " sudo -E $0" >&2 + echo "Verify that you have enough disk space, and run the script again." >&2 exit $EXIT_FAILURE fi - fi + done } _install_user_mode_ubuntu() { - if [[ "$INSTALL_DRIVER_VERSION" == "21.29.20389" ]]; then - if [[ "$UBUNTU_VERSION" == "18.04" ]]; then - CMDS=("apt-get update" - "apt-get -y install --no-install-recommends intel-opencl=21.29.20389 \ - intel-level-zero-gpu=1.1.20389 \ - level-zero=1.4.1 \ - intel-ocloc=21.29.20389 \ - intel-gmmlib=21.2.1 \ - intel-igc-core=1.0.7862 \ - ocl-icd-libopencl1 \ - intel-igc-opencl=1.0.7862") - elif [[ "$UBUNTU_VERSION" == "20.04" ]]; then - CMDS=("apt-get update" - "apt-get -y install --no-install-recommends intel-opencl-icd=21.29.20389+i593~u20.04 \ - intel-level-zero-gpu=1.1.20389+i593~u20.04 \ - level-zero=1.4.1+i593~u20.04 \ - libigdgmm11=21.2.1+i593~u20.04 \ - libigc1=1.0.7862+i593~u20.04 \ - intel-media-va-driver-non-free=21.2.2+i593~u20.04 \ - libmfx1=21.2.2+i593~u20.04") - fi - for cmd in "${CMDS[@]}"; do - echo "$cmd" - eval "$cmd" - if [[ $? -ne 0 ]]; then - echo "ERROR: failed to run $cmd" >&2 - echo "Problem (or disk space)?" >&2 - echo " sudo -E $0" >&2 - echo "Verify that you have enough disk space, and run the script again." >&2 - exit $EXIT_FAILURE - fi - done - else - _deploy_deb "intel*.deb" - if [[ $? -ne 0 ]]; then - echo "ERROR: failed to install debs $cmd error" >&2 - echo "Make sure you have enough disk space or fix the problem manually and try again." >&2 - exit $EXIT_FAILURE - fi + _deploy_deb "intel*.deb" + if [[ $? -ne 0 ]]; then + echo "ERROR: failed to install debs $cmd error" >&2 + echo "Make sure you have enough disk space or fix the problem manually and try again." >&2 + exit $EXIT_FAILURE fi } @@ -288,8 +179,8 @@ install_user_mode() { echo "Installing user mode driver..." - if [[ $DISTRO == "centos" || $DISTRO == "redhat" ]]; then - _install_user_mode_centos + if [[ $DISTRO == "redhat" ]]; then + _install_user_mode_redhat else _install_user_mode_ubuntu fi @@ -299,7 +190,7 @@ install_user_mode() rm -rf "$SCRIPT_DIR/neo" } -_uninstall_user_mode_centos() +_uninstall_user_mode_redhat() { echo Looking for previously installed user-mode driver... PACKAGES=("intel-opencl" @@ -353,130 +244,58 @@ _uninstall_user_mode_ubuntu() uninstall_user_mode() { - if [[ $DISTRO == "centos" || $DISTRO == "redhat" ]]; then - _uninstall_user_mode_centos + if [[ $DISTRO == "redhat" ]]; then + _uninstall_user_mode_redhat else _uninstall_user_mode_ubuntu fi } -_is_package_installed() -{ - if [[ $DISTRO == "centos" || $DISTRO == "redhat" ]]; then - cmd="rpm -qa | grep $1" - else - cmd="dpkg-query -W -f='${binary:Package}\n' $pkg" - fi - echo "$cmd" - eval "$cmd" -} - - _download_packages_ubuntu() { case $INSTALL_DRIVER_VERSION in - "19.41.14441") - curl -L -O https://github.com/intel/compute-runtime/releases/download/19.41.14441/intel-gmmlib_19.3.2_amd64.deb - curl -L -O https://github.com/intel/compute-runtime/releases/download/19.41.14441/intel-igc-core_1.0.2597_amd64.deb - curl -L -O https://github.com/intel/compute-runtime/releases/download/19.41.14441/intel-igc-opencl_1.0.2597_amd64.deb - curl -L -O https://github.com/intel/compute-runtime/releases/download/19.41.14441/intel-opencl_19.41.14441_amd64.deb - curl -L -O https://github.com/intel/compute-runtime/releases/download/19.41.14441/intel-ocloc_19.41.14441_amd64.deb - ;; - "20.35.17767") - curl -L -O https://github.com/intel/compute-runtime/releases/download/20.35.17767/intel-gmmlib_20.2.4_amd64.deb - curl -L -O https://github.com/intel/compute-runtime/releases/download/20.35.17767/intel-igc-core_1.0.4756_amd64.deb - curl -L -O https://github.com/intel/compute-runtime/releases/download/20.35.17767/intel-igc-opencl_1.0.4756_amd64.deb - curl -L -O https://github.com/intel/compute-runtime/releases/download/20.35.17767/intel-opencl_20.35.17767_amd64.deb - curl -L -O https://github.com/intel/compute-runtime/releases/download/20.35.17767/intel-ocloc_20.35.17767_amd64.deb - curl -L -O https://github.com/intel/compute-runtime/releases/download/20.35.17767/intel-level-zero-gpu_1.0.17767_amd64.deb - ;; - "21.29.20389") - return 0 - ;; - *) - echo "ERROR: Unrecognized driver ${INSTALL_DRIVER_VERSION}." - echo "Available values: ${AVAILABLE_DRIVERS[*]}" - exit $EXIT_WRONG_ARG - esac -} - -_download_packages_centos() -{ - - case $INSTALL_DRIVER_VERSION in - "19.41.14441") - curl -L --output intel-igc-core-1.0.2597-1.el7.x86_64.rpm https://sourceforge.net/projects/intel-compute-runtime/files/19.41.14441/centos-7/intel-igc-core-1.0.2597-1.el7.x86_64.rpm/download - curl -L --output intel-opencl-19.41.14441-1.el7.x86_64.rpm https://sourceforge.net/projects/intel-compute-runtime/files/19.41.14441/centos-7/intel-opencl-19.41.14441-1.el7.x86_64.rpm/download - curl -L --output intel-igc-opencl-devel-1.0.2597-1.el7.x86_64.rpm https://sourceforge.net/projects/intel-compute-runtime/files/19.41.14441/centos-7/intel-igc-opencl-devel-1.0.2597-1.el7.x86_64.rpm/download - curl -L --output intel-igc-opencl-1.0.2597-1.el7.x86_64.rpm https://sourceforge.net/projects/intel-compute-runtime/files/19.41.14441/centos-7/intel-igc-opencl-1.0.2597-1.el7.x86_64.rpm/download - curl -L --output intel-gmmlib-19.3.2-1.el7.x86_64.rpm https://sourceforge.net/projects/intel-compute-runtime/files/19.41.14441/centos-7/intel-gmmlib-19.3.2-1.el7.x86_64.rpm/download - curl -L --output intel-gmmlib-devel-19.3.2-1.el7.x86_64.rpm https://sourceforge.net/projects/intel-compute-runtime/files/19.41.14441/centos-7/intel-gmmlib-devel-19.3.2-1.el7.x86_64.rpm/download + "21.38.21026") + curl -L -O https://github.com/intel/compute-runtime/releases/download/21.38.21026/intel-gmmlib_21.2.1_amd64.deb + curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.8708/intel-igc-core_1.0.8708_amd64.deb + curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.8708/intel-igc-opencl_1.0.8708_amd64.deb + curl -L -O https://github.com/intel/compute-runtime/releases/download/21.38.21026/intel-opencl_21.38.21026_amd64.deb + curl -L -O https://github.com/intel/compute-runtime/releases/download/21.38.21026/intel-ocloc_21.38.21026_amd64.deb + curl -L -O https://github.com/intel/compute-runtime/releases/download/21.38.21026/intel-level-zero-gpu_1.2.21026_amd64.deb ;; - "20.35.17767") - curl -L --output intel-opencl-20.35.17767-1.el7.x86_64.rpm https://sourceforge.net/projects/intel-compute-runtime/files/20.35.17767/centos-7/intel-opencl-20.35.17767-1.el7.x86_64.rpm/download - curl -L --output level-zero-1.0.0-1.el7.x86_64.rpm https://sourceforge.net/projects/intel-compute-runtime/files/20.35.17767/centos-7/level-zero-1.0.0-1.el7.x86_64.rpm/download - curl -L --output level-zero-devel-1.0.0-1.el7.x86_64.rpm https://sourceforge.net/projects/intel-compute-runtime/files/20.35.17767/centos-7/level-zero-devel-1.0.0-1.el7.x86_64.rpm/download - curl -L --output intel-igc-opencl-1.0.4756-1.el7.x86_64.rpm https://sourceforge.net/projects/intel-compute-runtime/files/20.35.17767/centos-7/intel-igc-opencl-1.0.4756-1.el7.x86_64.rpm/download - curl -L --output intel-igc-opencl-devel-1.0.4756-1.el7.x86_64.rpm https://sourceforge.net/projects/intel-compute-runtime/files/20.35.17767/centos-7/intel-igc-opencl-devel-1.0.4756-1.el7.x86_64.rpm/download - curl -L --output intel-igc-core-1.0.4756-1.el7.x86_64.rpm https://sourceforge.net/projects/intel-compute-runtime/files/20.35.17767/centos-7/intel-igc-core-1.0.4756-1.el7.x86_64.rpm/download - curl -L --output intel-gmmlib-20.2.4-1.el7.x86_64.rpm https://sourceforge.net/projects/intel-compute-runtime/files/20.35.17767/centos-7/intel-gmmlib-20.2.4-1.el7.x86_64.rpm/download - curl -L --output intel-gmmlib-devel-20.2.4-1.el7.x86_64.rpm https://sourceforge.net/projects/intel-compute-runtime/files/20.35.17767/centos-7/intel-gmmlib-devel-20.2.4-1.el7.x86_64.rpm/download - ;; - "21.29.20389") - return 0 + "21.48.21782") + curl -L -O https://github.com/intel/compute-runtime/releases/download/21.48.21782/intel-gmmlib_21.3.3_amd64.deb + curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.9441/intel-igc-core_1.0.9441_amd64.deb + curl -L -O https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.9441/intel-igc-opencl_1.0.9441_amd64.deb + curl -L -O https://github.com/intel/compute-runtime/releases/download/21.48.21782/intel-opencl-icd_21.48.21782_amd64.deb + curl -L -O https://github.com/intel/compute-runtime/releases/download/21.48.21782/intel-level-zero-gpu_1.2.21782_amd64.deb ;; *) echo "ERROR: Unrecognized driver ${INSTALL_DRIVER_VERSION}." - echo "Available values: ${AVAILABLE_DRIVERS[*]}" exit $EXIT_WRONG_ARG esac } - _verify_checksum_ubuntu() { case $INSTALL_DRIVER_VERSION in - "19.41.14441") - curl -L -O https://github.com/intel/compute-runtime/releases/download/19.41.14441/ww41.sum - sha256sum -c ww41.sum - ;; - "20.35.17767") - curl -L -O https://github.com/intel/compute-runtime/releases/download/20.35.17767/ww35.sum - sha256sum -c ww35.sum + "21.38.21026") + curl -L -O https://github.com/intel/compute-runtime/releases/download/21.38.21026/ww38.sum + sha256sum -c ww38.sum ;; - "21.29.20389") - return 0 + "21.48.21782") + curl -L -O https://github.com/intel/compute-runtime/releases/download/21.48.21782/ww48.sum + sha256sum -c ww48.sum ;; *) echo "ERROR: Unrecognized driver ${INSTALL_DRIVER_VERSION}." - echo "Available values: ${AVAILABLE_DRIVERS[*]}" exit $EXIT_WRONG_ARG esac } -_verify_checksum_centos() -{ - case $INSTALL_DRIVER_VERSION in - "19.41.14441") - sha1sum -c "$SCRIPT_DIR/neo_centos_19.41.14441.sum" - ;; - "20.35.17767") - sha1sum -c "$SCRIPT_DIR/neo_centos_20.35.17767.sum" - ;; - "21.29.20389") - return 0 - ;; - *) - echo "ERROR: Unrecognized driver ${INSTALL_DRIVER_VERSION}." - echo "Available values: ${AVAILABLE_DRIVERS[*]}" - exit $EXIT_WRONG_ARG - esac -} - verify_checksum() { - if [[ $DISTRO == "centos" || $DISTRO == "redhat" ]]; then - _verify_checksum_centos + if [[ $DISTRO == "redhat" ]]; then + return 0 else _verify_checksum_ubuntu fi @@ -487,8 +306,8 @@ download_packages() mkdir -p "$SCRIPT_DIR/neo" cd "$SCRIPT_DIR/neo" || exit - if [[ $DISTRO == "centos" || $DISTRO == "redhat" ]]; then - _download_packages_centos + if [[ $DISTRO == "redhat" ]]; then + return 0 else _download_packages_ubuntu fi @@ -520,8 +339,7 @@ summary() echo "If you use 8th Generation Intel® Core™ processor, add:" echo " i915.alpha_support=1" echo " to the 4.14 kernel command line, in order to enable OpenCL functionality for this platform." - echo - + echo } check_root_access() @@ -552,34 +370,24 @@ add_user_to_video_group() _check_distro_version() { - if [[ $DISTRO == centos ]]; then - if [[ "$INSTALL_DRIVER_VERSION" == "21.29.20389" ]]; then - echo "ERROR: This runtime can be installed only on Ubuntu 18.04, Ubuntu 20.04 or RHEL 8.3-8.4" >&2 - echo "More info https://dgpu-docs.intel.com/releases/releases-20210720.html" >&2 - echo "Installation of Intel® Graphics Compute Runtime for oneAPI Level Zero and OpenCL™ Driver" - exit $EXIT_FAILURE - else - CENTOS_MINOR=$(sed 's/CentOS Linux release 7\.\([[:digit:]]\+\).\+/\1/' /etc/centos-release) - if [[ $? -ne 0 ]]; then - echo "ERROR: failed to obtain CentOS version minor." >&2 - echo "This script is supported only on CentOS 7 and above." >&2 - exit $EXIT_FAILURE - fi - fi - elif [[ $DISTRO == redhat ]]; then - RHEL_MINOR_VERSION_SUPPORTED="[0-9]" - if [[ "$INSTALL_DRIVER_VERSION" == "21.29.20389" ]]; then - RHEL_MINOR_VERSION_SUPPORTED="[3-4]" - fi + if [[ $DISTRO == redhat ]]; then + RHEL_MINOR_VERSION_SUPPORTED="[3-4]" RHEL_VERSION=$(grep -m1 'VERSION_ID' /etc/os-release | grep -Eo "8.${RHEL_MINOR_VERSION_SUPPORTED}") if [[ $? -ne 0 ]]; then - echo "Warning: This runtime can be installed only on RHEL 8" >&2 + echo "Warning: This runtime can be installed only on RHEL 8.3 or RHEL 8.4" + echo "More info https://dgpu-docs.intel.com/releases/releases-20211130.html" >&2 echo "Installation of Intel® Graphics Compute Runtime for oneAPI Level Zero and OpenCL™ Driver interrupted" exit $EXIT_FAILURE + else + INSTALL_DRIVER_VERSION='21.49.21786' fi elif [[ $DISTRO == ubuntu ]]; then UBUNTU_VERSION=$(grep -m1 'VERSION_ID' /etc/os-release | grep -Eo "[0-9]{2}.[0-9]{2}") - if [[ $UBUNTU_VERSION != '18.04' && $UBUNTU_VERSION != '20.04' ]]; then + if [[ $UBUNTU_VERSION == '18.04' ]]; then + INSTALL_DRIVER_VERSION='21.38.21026' + elif [[ $UBUNTU_VERSION == '20.04' ]]; then + INSTALL_DRIVER_VERSION='21.48.21782' + else echo "Warning: This runtime can be installed only on Ubuntu 18.04 or Ubuntu 20.04." echo "More info https://github.com/intel/compute-runtime/releases" >&2 echo "Installation of Intel® Graphics Compute Runtime for oneAPI Level Zero and OpenCL™ Driver interrupted" @@ -590,9 +398,7 @@ _check_distro_version() distro_init() { - if [[ -f /etc/centos-release ]]; then - DISTRO="centos" - elif [[ -f /etc/redhat-release ]]; then + if [[ -f /etc/redhat-release ]]; then DISTRO="redhat" elif [[ -f /etc/lsb-release ]]; then DISTRO="ubuntu" @@ -619,41 +425,10 @@ check_agreement() done } -check_specific_generation() -{ - echo "Checking processor generation..." - typeset -A specific_generation - specific_generation['20.35.17767']="i[357]-1[01][0-9]{2,4}N?G[147R]E?" - specific_generation['21.29.20389']="i[3579]-12[0-9]{3}[A-Z]{0,2}" - typeset -A proc_description - proc_description['20.35.17767']="10th generation Intel® Core™ processor (formerly Ice Lake) or 11th generation Intel® Core™ processor (formerly Tiger Lake)." - proc_description['21.29.20389']="12th generation Intel® Core™ processor (formerly Alder Lake)." - for driver in "${!specific_generation[@]}"; do - detected_generation=$(grep -m1 'model name' /proc/cpuinfo | grep -E "${specific_generation[${driver}]}") - if [[ ! -z "$detected_generation" && "$INSTALL_DRIVER_VERSION" != "${driver}" ]]; then - echo "$(basename "$0"): Detected ${proc_description[${driver}]}" - echo "Driver version ${driver} is going to be installed to fully utilize hardware features and performance." - if [ "$auto_mode" == true ]; then - INSTALL_DRIVER_VERSION=$driver - return 0 - else - while true; do - read -p "You are still able to use the version ${INSTALL_DRIVER_VERSION}. Use this driver? (y/n) [n] " yn - yn=${yn:=n} - case $yn in - [Yy]*) return 0 ;; - [Nn]*) INSTALL_DRIVER_VERSION=$driver && return 0 ;; - esac - done - fi - fi - done -} - check_current_driver() { echo "Checking current driver version..." - if [[ $DISTRO == centos || $DISTRO == redhat ]]; then + if [[ $DISTRO == redhat ]]; then gfx_version=$(yum info intel-opencl | grep Version) elif [[ $DISTRO == ubuntu ]]; then gfx_version=$(dpkg-query --showformat='${Version}' --show intel-opencl) @@ -663,9 +438,6 @@ check_current_driver() fi gfx_version="$(echo -e "${gfx_version}" | grep -Eo "[0-9]{2,3}\.[0-9]{2,3}\.[0-9]{3,6}")" - if [[ -z "$user_chosen_driver" ]]; then - check_specific_generation - fi # install NEO OCL driver if the current driver version < INSTALL_DRIVER_VERSION if [[ ! -z $gfx_version && "$(printf '%s\n' "$INSTALL_DRIVER_VERSION" "$gfx_version" | sort -V | head -n 1)" = "$INSTALL_DRIVER_VERSION" ]]; then diff --git a/scripts/install_dependencies/neo_centos_19.41.14441.sum b/scripts/install_dependencies/neo_centos_19.41.14441.sum deleted file mode 100644 index 91f18cf2ae4243..00000000000000 --- a/scripts/install_dependencies/neo_centos_19.41.14441.sum +++ /dev/null @@ -1,6 +0,0 @@ -bf6557a68c6960bc06eee0b30fe69bc3d7a397f4 intel-igc-core-1.0.2597-1.el7.x86_64.rpm -263c45bb9a68c0ab3c11e93e4747ced0a254faa9 intel-opencl-19.41.14441-1.el7.x86_64.rpm -825fdb033619a915788091cfa7ff3bb5064f2104 intel-igc-opencl-devel-1.0.2597-1.el7.x86_64.rpm -48fb9f76544b5f91c7730319a8f138396363cfa7 intel-igc-opencl-1.0.2597-1.el7.x86_64.rpm -4e55937917e4f8dbe72d28ba457c5db4b2df3f0b intel-gmmlib-19.3.2-1.el7.x86_64.rpm -2ab9d593f41a074039640ae08dbf83f5c9e7f199 intel-gmmlib-devel-19.3.2-1.el7.x86_64.rpm \ No newline at end of file diff --git a/scripts/install_dependencies/neo_centos_20.35.17767.sum b/scripts/install_dependencies/neo_centos_20.35.17767.sum deleted file mode 100644 index c45f5b88fa3227..00000000000000 --- a/scripts/install_dependencies/neo_centos_20.35.17767.sum +++ /dev/null @@ -1,8 +0,0 @@ -788b50f5863de8e7cbc57161b84b2ece3b53b6f1 intel-opencl-20.35.17767-1.el7.x86_64.rpm -8911903f1f239ffbb44df45a52fff984792c34f3 level-zero-1.0.0-1.el7.x86_64.rpm -2221b991603220399e2d4f2f35f264a821e3c58e level-zero-devel-1.0.0-1.el7.x86_64.rpm -60bf7cda89b455c996ebb4ed3216eaeb233e590f intel-igc-opencl-1.0.4756-1.el7.x86_64.rpm -56ce16749f14fd972e91cabd24e6277d144076ee intel-igc-opencl-devel-1.0.4756-1.el7.x86_64.rpm -eda3b0a38b6d1e96413551cf84e675316bca4134 intel-igc-core-1.0.4756-1.el7.x86_64.rpm -d9fbc3f38fb2e069d7ccd0a23aef0746c34d5468 intel-gmmlib-20.2.4-1.el7.x86_64.rpm -20bcedde32611489cf63e429eabd40c2197886b4 intel-gmmlib-devel-20.2.4-1.el7.x86_64.rpm \ No newline at end of file