Update level_zero on MTL linux (#11085)
* Update level_zero on MTL --------- Co-authored-by: Yuwen Hu <yuwen.hu@intel.com>
This commit is contained in:
		
							parent
							
								
									8fdc8fb197
								
							
						
					
					
						commit
						bf0f904e66
					
				
					 2 changed files with 45 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -204,6 +204,30 @@ IPEX-LLM GPU support on Linux has been verified on:
 | 
			
		|||
 | 
			
		||||
           See `release page <https://dgpu-docs.intel.com/releases/index.html>`_ for latest version.
 | 
			
		||||
 | 
			
		||||
        .. note::
 | 
			
		||||
 | 
			
		||||
           For Intel Core™ Ultra integrated GPU, please make sure level_zero version >= 1.3.28717. The level_zero version can be checked with ``sycl-ls``, and verison will be tagged be ``[ext_oneapi_level_zero:gpu]``.
 | 
			
		||||
            
 | 
			
		||||
           .. code-block::
 | 
			
		||||
 | 
			
		||||
               [opencl:acc:0] Intel(R) FPGA Emulation Platform for OpenCL(TM), Intel(R) FPGA Emulation Device OpenCL 1.2  [2023.16.12.0.12_195853.xmain-hotfix]
 | 
			
		||||
               [opencl:cpu:1] Intel(R) OpenCL, Intel(R) Core(TM) Ultra 5 125H OpenCL 3.0 (Build 0) [2023.16.12.0.12_195853.xmain-hotfix]
 | 
			
		||||
               [opencl:gpu:2] Intel(R) OpenCL Graphics, Intel(R) Arc(TM) Graphics OpenCL 3.0 NEO  [24.09.28717.12]
 | 
			
		||||
               [ext_oneapi_level_zero:gpu:0] Intel(R) Level-Zero, Intel(R) Arc(TM) Graphics 1.3 [1.3.28717]
 | 
			
		||||
 | 
			
		||||
           If you have level_zero version < 1.3.28717, you could update as follows:
 | 
			
		||||
 | 
			
		||||
           .. code-block:: bash
 | 
			
		||||
 | 
			
		||||
               wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.16238.4/intel-igc-core_1.0.16238.4_amd64.deb
 | 
			
		||||
               wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.16238.4/intel-igc-opencl_1.0.16238.4_amd64.deb
 | 
			
		||||
               wget https://github.com/intel/compute-runtime/releases/download/24.09.28717.12/intel-level-zero-gpu-dbgsym_1.3.28717.12_amd64.ddeb
 | 
			
		||||
               wget https://github.com/intel/compute-runtime/releases/download/24.09.28717.12/intel-level-zero-gpu_1.3.28717.12_amd64.deb
 | 
			
		||||
               wget https://github.com/intel/compute-runtime/releases/download/24.09.28717.12/intel-opencl-icd-dbgsym_24.09.28717.12_amd64.ddeb
 | 
			
		||||
               wget https://github.com/intel/compute-runtime/releases/download/24.09.28717.12/intel-opencl-icd_24.09.28717.12_amd64.deb
 | 
			
		||||
               wget https://github.com/intel/compute-runtime/releases/download/24.09.28717.12/libigdgmm12_22.3.17_amd64.deb
 | 
			
		||||
               sudo dpkg -i *.deb
 | 
			
		||||
 | 
			
		||||
      * Step 2: Download and install `Intel® oneAPI Base Toolkit <https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html>`_ with version 2024.0. OneDNN, OneMKL and DPC++ compiler are needed, others are optional.
 | 
			
		||||
 | 
			
		||||
      Intel® oneAPI Base Toolkit 2024.0 installation methods:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -94,15 +94,28 @@ IPEX-LLM currently supports the Ubuntu 20.04 operating system and later, and sup
 | 
			
		|||
    <img src="https://llm-assets.readthedocs.io/en/latest/_images/gawk.png" width=100%; />
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
* Configure permissions
 | 
			
		||||
    ```bash
 | 
			
		||||
    sudo gpasswd -a ${USER} render
 | 
			
		||||
    newgrp render
 | 
			
		||||
#### (Optional) Update Level Zero on Intel Core™ Ultra iGPU
 | 
			
		||||
For Intel Core™ Ultra integrated GPU, please make sure level_zero version >= 1.3.28717. The level_zero version can be checked with `sycl-ls`, and verison will be tagged behind `[ext_oneapi_level_zero:gpu]`.
 | 
			
		||||
 | 
			
		||||
    # Verify the device is working with i915 driver
 | 
			
		||||
    sudo apt-get install -y hwinfo
 | 
			
		||||
    hwinfo --display
 | 
			
		||||
    ```
 | 
			
		||||
Here are the sample output of `sycl-ls`:
 | 
			
		||||
```
 | 
			
		||||
[opencl:acc:0] Intel(R) FPGA Emulation Platform for OpenCL(TM), Intel(R) FPGA Emulation Device OpenCL 1.2  [2023.16.12.0.12_195853.xmain-hotfix]
 | 
			
		||||
[opencl:cpu:1] Intel(R) OpenCL, Intel(R) Core(TM) Ultra 5 125H OpenCL 3.0 (Build 0) [2023.16.12.0.12_195853.xmain-hotfix]
 | 
			
		||||
[opencl:gpu:2] Intel(R) OpenCL Graphics, Intel(R) Arc(TM) Graphics OpenCL 3.0 NEO  [24.09.28717.12]
 | 
			
		||||
[ext_oneapi_level_zero:gpu:0] Intel(R) Level-Zero, Intel(R) Arc(TM) Graphics 1.3 [1.3.28717]
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
If you have level_zero version < 1.3.28717, you could update as follows:
 | 
			
		||||
```bash
 | 
			
		||||
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.16238.4/intel-igc-core_1.0.16238.4_amd64.deb
 | 
			
		||||
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.16238.4/intel-igc-opencl_1.0.16238.4_amd64.deb
 | 
			
		||||
wget https://github.com/intel/compute-runtime/releases/download/24.09.28717.12/intel-level-zero-gpu-dbgsym_1.3.28717.12_amd64.ddeb
 | 
			
		||||
wget https://github.com/intel/compute-runtime/releases/download/24.09.28717.12/intel-level-zero-gpu_1.3.28717.12_amd64.deb
 | 
			
		||||
wget https://github.com/intel/compute-runtime/releases/download/24.09.28717.12/intel-opencl-icd-dbgsym_24.09.28717.12_amd64.ddeb
 | 
			
		||||
wget https://github.com/intel/compute-runtime/releases/download/24.09.28717.12/intel-opencl-icd_24.09.28717.12_amd64.deb
 | 
			
		||||
wget https://github.com/intel/compute-runtime/releases/download/24.09.28717.12/libigdgmm12_22.3.17_amd64.deb
 | 
			
		||||
sudo dpkg -i *.deb
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Install oneAPI 
 | 
			
		||||
  ```
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue