Skip to content
TheChatArchiveThe Chat Archive
Geminigemini-2.5-flash· GoogleHugging Face LMArena Human Preference 140K

Add ROCm Repository: You need to add the official AMD ROCm repository to your system.…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Mistralmistral-medium-2505’s answer.
  1. User

    Add ROCm Repository: You need to add the official AMD ROCm repository to your system. The exact URL depends on the ROCm version, but for openSUSE Leap 15.5 (which is implied by your kernel numbers), you'd typically look for rocm/<ROCM_VERSION>/sles/15.5. Given your MI210s, you'll want a recent ROCm version (e.g., ROCm 5.7.1, 6.0, 6.1, or 6.2/6.3 if available for openSUSE).

    Let's assume you want to install ROCm 6.0 as an example, as it's a stable release and well-supported. You'll need to find the correct repository URL on AMD's ROCm documentation website (rocm.docs.amd.com).

    The general steps are: Bash

    Import AMD's GPG key

    sudo rpm --import https://repo.radeon.com/rocm/rocm.gpg.key

    Add the ROCm repository (replace <ROCM_VERSION> and <OS_VERSION> as needed)

    For openSUSE Leap 15.5, it's often under 'sles/15.5' or similar.

    Check the official ROCm documentation for the precise URL for the ROCm version you want.

    Example for ROCm 6.0 on SLES 15 (often compatible with openSUSE Leap 15.x):

    sudo zypper addrepo --gpgcheck --check --refresh
    https://repo.radeon.com/rocm/apt/6.0/sles/15.5/ rocm

    Crucial: Please verify the exact repository URL for the ROCm version you intend to install directly from the AMD ROCm documentation for openSUSE/SLES. The above is an educated guess based on common patterns.
    Reasoning for ROCm version: Newer ROCm versions generally offer better performance and support for the latest deep learning frameworks. For MI210, most ROCm versions from 5.x onwards should work. ROCm 6.x is recommended if available and stable for openSUSE.
    
  2. Gemini Assistant

    Okay, let's add the ROCm 6.0 repository for openSUSE Leap 15.5. As you correctly identified, the apt part in the example was for Debian/Ubuntu, and openSUSE uses RPMs, so we'll adjust the path accordingly to what AMD officially provides for SLES/openSUSE.

    Based on AMD's official ROCm documentation for SLES 15.x (which openSUSE Leap 15.5 is compatible with), the repository URL for ROCm 6.0 is typically structured as https://repo.radeon.com/rocm/6.0/sles/15.

    Here are the commands to add the ROCm 6.0 repository:

    1. Import AMD's GPG key: This command imports the necessary public key to verify the integrity of the packages from the ROCm repository.

      sudo rpm --import https://repo.radeon.com/rocm/rocm.gpg.key
      
    2. Add the ROCm 6.0 repository for openSUSE Leap 15.5: This command adds the repository to your system's zypper configuration. We specify sles/15 because openSUSE Leap 15.x is derived from SUSE Linux Enterprise Server 15.

      sudo zypper addrepo --gpgcheck --check --refresh \
          https://repo.radeon.com/rocm/6.0/sles/15 rocm_6.0
      
      • --gpgcheck: Ensures that packages are verified with the GPG key.
      • --check: Checks the repository for validity.
      • --refresh: Refreshes the repository metadata immediately after adding.
      • https://repo.radeon.com/rocm/6.0/sles/15: The official URL for ROCm 6.0 on SLES 15.
      • rocm_6.0: The alias (name) for the repository on your system. Using rocm_6.0 is good practice to distinguish it if you ever add other ROCm versions.
    3. Refresh your package lists (optional, but good practice): While --refresh is included in the addrepo command, an explicit zypper refresh ensures everything is up-to-date.

      sudo zypper refresh
      

    Now your system is configured to install ROCm 6.0 packages using zypper. You can proceed with installing specific ROCm components. For example, to install the core ROCm packages:

    sudo zypper install rocm-hip-sdk rocm-opencl rocm-smi
    

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.