From e5581e6ded77a6321b237aafefed07b3901e3849 Mon Sep 17 00:00:00 2001 From: Shaojun Liu <61072813+liu-shaojun@users.noreply.github.com> Date: Thu, 5 Sep 2024 17:06:07 +0800 Subject: [PATCH] Select the Appropriate APT Repository Based on CPU Type (#12023) --- docs/mddocs/Quickstart/install_linux_gpu.md | 54 +++++++++++++++------ 1 file changed, 38 insertions(+), 16 deletions(-) diff --git a/docs/mddocs/Quickstart/install_linux_gpu.md b/docs/mddocs/Quickstart/install_linux_gpu.md index 88574d8d..6a5ea4f6 100644 --- a/docs/mddocs/Quickstart/install_linux_gpu.md +++ b/docs/mddocs/Quickstart/install_linux_gpu.md @@ -19,14 +19,25 @@ IPEX-LLM currently supports the Ubuntu 20.04 operating system and later, and sup #### For Linux kernel 6.2 -* Install wget, gpg-agent - ```bash - sudo apt-get install -y gpg-agent wget - wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | \ - sudo gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg - echo "deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy client" | \ - sudo tee /etc/apt/sources.list.d/intel-gpu-jammy.list - ``` +* Choose one option below depending on your CPU type: + + 1. **Option 1**: For `Intel Core CPU` with multiple A770 Arc GPUs. Use the following repository: + ```bash + sudo apt-get install -y gpg-agent wget + wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | \ + sudo gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg + echo "deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy client" | \ + sudo tee /etc/apt/sources.list.d/intel-gpu-jammy.list + ``` + + 2. **Option 2**: For `Intel Xeon-W/SP CPU` with multiple A770 Arc GPUs. Use this repository for better performance: + ```bash + wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | \ + sudo gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics.gpg + echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy/lts/2350 unified" | \ + sudo tee /etc/apt/sources.list.d/intel-gpu-jammy.list + sudo apt update + ``` @@ -71,14 +82,25 @@ IPEX-LLM currently supports the Ubuntu 20.04 operating system and later, and sup #### For Linux kernel 6.5 -* Install wget, gpg-agent - ```bash - sudo apt-get install -y gpg-agent wget - wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | \ - sudo gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg - echo "deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy client" | \ - sudo tee /etc/apt/sources.list.d/intel-gpu-jammy.list - ``` +* Choose one option below depending on your CPU type: + + 1. **Option 1**: For `Intel Core CPU` with multiple A770 Arc GPUs. Use the following repository: + ```bash + sudo apt-get install -y gpg-agent wget + wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | \ + sudo gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg + echo "deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy client" | \ + sudo tee /etc/apt/sources.list.d/intel-gpu-jammy.list + ``` + + 2. **Option 2**: For `Intel Xeon-W/SP CPU` with multiple A770 Arc GPUs. Use this repository for better performance: + ```bash + wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | \ + sudo gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics.gpg + echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy/lts/2350 unified" | \ + sudo tee /etc/apt/sources.list.d/intel-gpu-jammy.list + sudo apt update + ```