User Tools

Site Tools


ubuntu:gpu:amd_gpu:setup:setup_using_the_amd_installer_script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:gpu:amd_gpu:setup:setup_using_the_amd_installer_script [2023/06/07 18:27] peterubuntu:gpu:amd_gpu:setup:setup_using_the_amd_installer_script [2024/09/07 22:13] (current) peter
Line 8: Line 8:
 ---- ----
  
-===== Download & Install the AMD Installer Script =====+===== Download the AMD Installer Script =====
  
 <WRAP info> <WRAP info>
Line 18: Line 18:
 sudo apt update sudo apt update
 wget https://repo.radeon.com/amdgpu-install/22.40.5/ubuntu/jammy/amdgpu-install_5.4.50405-1_all.deb wget https://repo.radeon.com/amdgpu-install/22.40.5/ubuntu/jammy/amdgpu-install_5.4.50405-1_all.deb
-sudo apt install ./amdgpu-install_5.4.50405-1_all.deb 
 </code> </code>
  
Line 26: Line 25:
   * The links for each Linux distribution always point to the latest available build.   * The links for each Linux distribution always point to the latest available build.
  
 +</WRAP>
 +
 +----
 +
 +===== Uninstall the previous AMDGPU Stack (optional) =====
 +
 +[[Ubuntu:GPU:AMD GPU:Setup:Uninstall the AMDGPU stack|Uninstall the AMDGPU stack]].
 +
 +<WRAP info>
 +**NOTE:** This is recommended.
 +</WRAP>
 +
 +----
 +
 +===== Install the AMD Installer Script =====
 +
 +<code bash>
 +sudo apt install ./amdgpu-install_5.4.50405-1_all.deb
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  Check the latest version number of the Installer Script by checking the .deb file link from https://www.amd.com/en/support/linux-drivers.
 </WRAP> </WRAP>
  
Line 33: Line 54:
  
 <code bash> <code bash>
-amdgpu-install --usecase=graphics,opencl --vulkan=amdvlk,pro --opencl=rocr+amdgpu-install --usecase=graphics,opencl --vulkan=amdvlk --opencl=rocr --no-dkms
 </code> </code>
  
Line 41: Line 62:
   * See: https://amdgpu-install.readthedocs.io/en/latest/index.html   * See: https://amdgpu-install.readthedocs.io/en/latest/index.html
  
-  * The **pro** option, used with **vulkan** requires AMD EULA to be accepted.+  * The **pro** option, used with **vulkan** requires AMD EULA to be accepted. 
     * If this is not wanted, then remove this **pro** choice, which will use the Community version.     * If this is not wanted, then remove this **pro** choice, which will use the Community version.
 +    * <code bash>amdgpu-install --usecase=graphics,opencl --vulkan=amdvlk,pro --opencl=rocr</code>
  
   * Various options can be selected.   * Various options can be selected.
     * See [[Ubuntu:GPU:AMD GPU:Setup:Setup using the AMD Installer Script:Install options|Install options]].     * See [[Ubuntu:GPU:AMD GPU:Setup:Setup using the AMD Installer Script:Install options|Install options]].
     * See [[Ubuntu:GPU:AMD GPU:Setup:Setup using the AMD Installer Script:Use case options|Use case options]].     * See [[Ubuntu:GPU:AMD GPU:Setup:Setup using the AMD Installer Script:Use case options|Use case options]].
 +
 +  * **--no-dkms**:  To turn of dkms, as this sometimes causes problems.  Optionally keep dkms by removing this option.
  
 </WRAP> </WRAP>
Line 76: Line 100:
 </code> </code>
  
 +<WRAP info>
 +**NOTE:**  This is an alternative method to configure group access:
 +
 +<code bash>
 +sudo usermod -a -G render,video $LOGNAME
 +</code>
 +
 +</WRAP>
  
 ---- ----
Line 167: Line 199:
  
 <code bash> <code bash>
 +# For VDPAU
 export VDPAU_DRIVER=radeonsi export VDPAU_DRIVER=radeonsi
 +
 +# For VA-API
 export LIBVA_DRIVER_NAME=radeonsi export LIBVA_DRIVER_NAME=radeonsi
 +
 +# For GPU Vulkan Support, if the non-pro driver is used.
 +export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json:/usr/share/vulkan/icd.d/radeon_icd.i686.json
 +
 +# For GPU Vulkan Support, if the pro driver is used.
 +export VK_ICD_FILENAMES=/opt/amdgpu-pro/etc/vulkan/icd.d/amd_icd64.json
 </code> </code>
  
 <WRAP info> <WRAP info>
-**NOTE:** To allow these to be there permanently, upon boot, place into **~/.bashrc** or **~/.profile**.+**NOTE:** These are only needed if these processes do not function correctly. 
 + 
 +  * To allow these to be there permanently, upon boot, place into **~/.bashrc** or **~/.profile**. 
 </WRAP> </WRAP>
  
 +----
 +
 +===== Optionally, Xorg configuration =====
 +
 +If using Xorg.
 +
 +Xorg will automatically load the driver and it will use the monitors EDID to set the native resolution.
 +
 +  * Configuration is only required for tuning the driver.
 +  * If you want manual configuration, create **/etc/X11/xorg.conf.d/20-amdgpu.conf**, and add the following:
 +
 +<file bash /etc/X11/xorg.conf.d/20-amdgpu.conf>
 +Section "OutputClass"
 +     Identifier "AMD"
 +     MatchDriver "amdgpu"
 +     Driver "amdgpu"
 +EndSection
 +</file>
  
 ---- ----
  
 ===== References ===== ===== References =====
 +
 +https://repo.radeon.com/amdgpu-install/
  
 https://www.amd.com/en/support/linux-drivers https://www.amd.com/en/support/linux-drivers
Line 188: Line 252:
 https://rocm.docs.amd.com/en/latest/index.html https://rocm.docs.amd.com/en/latest/index.html
  
 +https://wiki.archlinux.org/title/AMDGPU
ubuntu/gpu/amd_gpu/setup/setup_using_the_amd_installer_script.1686162435.txt.gz · Last modified: 2023/06/07 18:27 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki