Announcement

Collapse
No announcement yet.

Radeon ROCm 5.0 Released With Some RDNA2 GPU Support

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #51
    Originally posted by ernstp View Post

    Ubuntu 22.04 is based on "bookworm/sid" so it should be pretty similar, though it's not exactly the same of course.

    Did you do "apt install rocm-opencl" like I suggested?
    Of course, I already told you the results. This package does not exist in Debian.

    Comment


    • #52
      Originally posted by ernstp View Post

      Yeah I mean that as a slight tweak to the ROCm install instructions! If you follow them you will see what I mean.
      Where are ROCm install instructions please? https://repo.radeon.com/ doesn't have any frontend...

      EDIT:
      @Maxzor thanks for the link, I will have a look.

      EDIT2:

      I had a look. Garbage, just like half a years ago when I checked last time.

      It says (attached picture)


      Chances that these .deb files and repository will work with my 5.15 Debian Testing are minimal. Last time I spend a few days trying it, no luck.
      Attached Files
      Last edited by piorunz; 11 February 2022, 12:10 PM.

      Comment


      • #53
        Originally posted by LumielGR View Post

        Man, you are fast, I haven't even released the package yet :P
        HAha...ok I was too fast, I hadn't updated my system in a while and got an update on the package now and saw it was now using the rocm... but as I get it..it is not 5.0.0..bu the old version runs good on my fury card

        Thank you for the package!

        Comment


        • #54
          Originally posted by piorunz View Post

          Of course, I already told you the results. This package does not exist in Debian.

          https://packages.debian.org/search?s...ds=rocm-opencl
          The link of the package team tells you how far you are from finding the packages in debian/ubuntu without doing any tweak

          The official install instructions are arguably still not great, but chances that ROCm works with your 5.15 kernel are sky high (it works here)!
          Generally the ROCm documentation/press release teams are wayy too conservative when talking about "official support", and at the same time the support team is not reactive enough in the github issues. But the stack, given a bit of involvement, works suprprisingly well.
          Last edited by Maxzor; 11 February 2022, 12:30 PM.

          Comment


          • #55
            Originally posted by piorunz View Post

            Of course, I already told you the results. This package does not exist in Debian.

            https://packages.debian.org/search?s...ds=rocm-opencl
            You have to follow the installation guide for Ubuntu of course!

            Edit: here https://rocmdocs.amd.com/en/latest/I...de.html#ubuntu for example.

            Then go the path of upstream kernel and install rocm-opencl.
            Last edited by ernstp; 11 February 2022, 12:33 PM.

            Comment


            • #56
              Originally posted by ernstp View Post

              You have to follow the installation guide for Ubuntu of course!

              Edit: here https://rocmdocs.amd.com/en/latest/I...de.html#ubuntu for example.

              Then go the path of upstream kernel and install rocm-opencl.
              OK. Went to that link. Added GPG key and repo (deb [arch=amd64] https://repo.radeon.com/rocm/apt/5.0 ubuntu main)

              Code:
              [FONT=monospace][COLOR=#000000]$ sudo apt install rocm-dkms [/COLOR]
              Reading package lists... Done
              Building dependency tree... Done
              Reading state information... Done
              Some packages could not be installed. This may mean that you have
              requested an impossible situation or if you are using the unstable
              distribution that some required packages have not yet been created
              or been moved out of Incoming.
              The following information may help to resolve the situation:
              
              The following packages have unmet dependencies:
              rocm-dkms : Depends: rocm-dev but it is not going to be installed
                          Depends: rock-dkms but it is not installable[/FONT]

              rock-dkms does not exist in ROCm 5.0 repository, see for yourself:


              So I tried ROCm 4.5.2 (repository https://repo.radeon.com/rocm/apt/4.5.2/)

              Same result.

              Code:
              [FONT=monospace][COLOR=#000000]The following packages have unmet dependencies: [/COLOR]
              rocm-dkms : Depends: rocm-dev but it is not going to be installed
                          Depends: rock-dkms but it is not installable
              [COLOR=#ff5454][B]E: [/B][/COLOR][COLOR=#000000]Unable to correct problems, you have held broken packages.[/COLOR][/FONT]
              So finally I tried method you recommended "Using Debian-based ROCm with Upstream Kernel Drivers".

              Code:
              [FONT=monospace][COLOR=#000000]$ sudo apt install rocm-dev [/COLOR]
              Reading package lists... Done
              Building dependency tree... Done
              Reading state information... Done
              Some packages could not be installed. This may mean that you have
              requested an impossible situation or if you are using the unstable
              distribution that some required packages have not yet been created
              or been moved out of Incoming.
              The following information may help to resolve the situation:
              
              The following packages have unmet dependencies:
              openmp-extras : Depends: libstdc++-5-dev but it is not installable or
                                       libstdc++-7-dev but it is not installable
                              Depends: libgcc-5-dev but it is not installable or
                                       libgcc-7-dev but it is not installable
              rocm-gdb : Depends: libpython3.8 but it is not installable
              rocm-llvm : Depends: python but it is not installable
                          Depends: libstdc++-5-dev but it is not installable or
                                   libstdc++-7-dev but it is not installable
                          Depends: libgcc-5-dev but it is not installable or
                                   libgcc-7-dev but it is not installable
                          Recommends: gcc-multilib but it is not going to be installed
                          Recommends: g++-multilib but it is not going to be installed
              [COLOR=#ff5454][B]E: [/B][/COLOR][COLOR=#000000]Unable to correct problems, you have held broken packages.[/COLOR][/FONT]

              I checked, packages:
              Code:
              libstdc++-7-dev
              libgcc-5-dev
              libgcc-7-dev
              libpython3.8
              Does not exist in my Debian, nor they are present in Radeon repository. Tried that both with ROCm 5.0 and 4.5.2.

              Comment


              • #57
                Originally posted by piorunz View Post
                ...
                1. Open tickets left and right at AMD githubs telling them that their deb packages are horribly broken. Here and there for example(2. Help packaging ROCm officially for Debian? We are really not that far and need manpower. This docker builder builds 5.0 up to rocm-hipamd so far)
                Last edited by Maxzor; 11 February 2022, 01:03 PM.

                Comment


                • #58
                  Originally posted by piorunz View Post
                  I added http://repo.radeon.com/rocm/apt/debian/

                  And then, don't install rocm-dkms, install rocm-opencl....

                  Comment


                  • #59
                    Originally posted by vein View Post

                    HAha...ok I was too fast, I hadn't updated my system in a while and got an update on the package now and saw it was now using the rocm... but as I get it..it is not 5.0.0..bu the old version runs good on my fury card

                    Thank you for the package!
                    I've updated it now for Arch, it should be working with ROCm 5.0 I think - Any feedback is welcome
                    p.s You also need `opencl-amd-dev` package if you want ML libraries and OpenCL / HIP SDK.

                    Comment


                    • #60
                      Originally posted by ernstp View Post

                      I added http://repo.radeon.com/rocm/apt/debian/

                      And then, don't install rocm-dkms, install rocm-opencl....
                      Thanks! Finally I installed all packages without problem. Amazing.

                      Code:
                      [FONT=monospace][COLOR=#000000]$ sudo apt install rocm-opencl rocm-opencl-runtime      [/COLOR]
                      Reading package lists... Done
                      Building dependency tree... Done
                      Reading state information... Done
                      The following additional packages will be installed:
                       comgr hsa-rocr hsa-rocr-dev hsakmt-roct-dev libdrm-dev libpciaccess-dev rocm-core rocm-device-libs rocm-language-runtime rocm-ocl-icd
                      Recommended packages:
                       libdrm-amdgpu-amdgpu1
                      The following NEW packages will be installed:
                       comgr hsa-rocr hsa-rocr-dev hsakmt-roct-dev libdrm-dev libpciaccess-dev rocm-core rocm-device-libs rocm-language-runtime rocm-ocl-icd rocm-opencl rocm-opencl-runtime
                      0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.[/FONT]
                      This worked. I have packages installed. OpenCL platform has been installed in my system.

                      But... My GPU is still not visible.

                      Code:
                      $ clinfo
                      Number of platforms 1
                      Platform Name AMD Accelerated Parallel Processing
                      Platform Vendor Advanced Micro Devices, Inc.
                      Platform Version OpenCL 2.2 AMD-APP (3406.0)
                      Platform Profile FULL_PROFILE
                      Platform Extensions cl_khr_icd cl_amd_event_callback
                      Platform Extensions function suffix AMD
                      Platform Host timer resolution 1ns
                      
                      Platform Name AMD Accelerated Parallel Processing
                      Number of devices 0
                      
                      NULL platform behavior
                      clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) No platform
                      clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No platform
                      clCreateContext(NULL, ...) [default] No platform
                      clCreateContext(NULL, ...) [other]
                      clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No devices found in platform
                      clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
                      clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform
                      clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
                      clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
                      clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No devices found in platform
                      Number of devices 0. My 6800XT doesn't exist apparently 😂

                      Comment

                      Working...
                      X