Linux (Ubuntu 18.04) OpenCL (AMD ROCm) Support

Discussion in 'UDOO BOLT' started by Deluxe, Aug 19, 2019.

  1. Deluxe

    Deluxe UDOOer

    Joined:
    Aug 13, 2019
    Messages:
    13
    Likes Received:
    1
    I've successfully installed Ubuntu 18.04 as described in https://www.udoo.org/docs-bolt/Operating_Systems/Linux/Known_issues.html and installed ROCm packages provided for Ubuntu by AMD.
    However I was unable to get ROCm to work properly (basic ROCm applications such as "rocminfo" or "clinfo" fail to run). After some investigation in system logs I strongly suspect the issue is in initialization of "amdkfd" driver (which is one of kernel space components of ROCm) which fails due to lack of "IOMMUv2" support.
    So I tried to find "IOMMUv2" in BIOS (or any IOMMU for that matter) and it seems that the option is missing (I believe the CPU indeed does support IOMMUv2).
    Is it possible to expose IOMMUv2 in BIOS? Or is there any other way to get ROCm to work without it?
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  3. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Sorry, hcc is something else as ROCm but I fail to find proper infomation of the AMD AMD Ryzen V1000 is supported yes or no.
     
  4. Deluxe

    Deluxe UDOOer

    Joined:
    Aug 13, 2019
    Messages:
    13
    Likes Received:
    1
    Either way, I would like to know if Bolt supports IOMMU (or wheter the support can be added) as there are certainly other usecases for it. (and it would enable me to further investigate ROCm).
     
  5. yobneb

    yobneb UDOOer

    Joined:
    Jun 17, 2017
    Messages:
    2
    Likes Received:
    2
    I'm also interested in enabling IOMMU, as I would like to passthrough the vega graphics to a VM running on proxmox.

    As written here it seems to be possible. The CPU itself is supporting it for sure.
    Was someone from here already able to enable IOMMU on the bolt?
     
  6. ccs_hello

    ccs_hello UDOOer

    Joined:
    Apr 15, 2017
    Messages:
    536
    Likes Received:
    194
    IOMMU is used in PCI-passthru (network card, USB, etc.) in a virtual machine -- hypervisor configuration.
     
  7. itimpi

    itimpi UDOOer

    Joined:
    Oct 31, 2013
    Messages:
    136
    Likes Received:
    39
    The Bolt DOES seem to support IOMMU in that there is Bios option for enabling it. By default it is set to disabled but i have successfully enabled it and the system runs fine. I have NOT actually connected any hardware to test it out but I assume it should work OK.
     
    Zgembo likes this.
  8. Deluxe

    Deluxe UDOOer

    Joined:
    Aug 13, 2019
    Messages:
    13
    Likes Received:
    1
    Is it available on boards with original bios or only on ones that are shipped with updated version? Do you happen to know where the option is located in the bios?
     
  9. Zgembo

    Zgembo UDOOer

    Joined:
    Sep 21, 2019
    Messages:
    49
    Likes Received:
    27
    Which BIOS version are you on?
     
  10. someone_passingby

    someone_passingby UDOOer

    Joined:
    Oct 3, 2019
    Messages:
    24
    Likes Received:
    7
    Here's access path:
    1.jpg 2.jpg 3.jpg 4.jpg

    If this is what you are looking for, let me know what would you like to test.
    Should I install
    Code:
    virt-manager
    to test?

    Hope it helps!
     
  11. someone_passingby

    someone_passingby UDOOer

    Joined:
    Oct 3, 2019
    Messages:
    24
    Likes Received:
    7
    Here you go sir:
    5.jpg

    I guess mine has the latest BIOS pre-installed?
    Let me know if there's anything I can test for you.
     
  12. Deluxe

    Deluxe UDOOer

    Joined:
    Aug 13, 2019
    Messages:
    13
    Likes Received:
    1
    Thanks a lot for the info! My board is running version 1.04 R.C. 2 and it doesn't have "NB Configuration" option in that submenu. So I have to ask Eva for beta bios and flash it somehow or wait for their flash tool + bios release (which will be who knows when...).
     
  13. someone_passingby

    someone_passingby UDOOer

    Joined:
    Oct 3, 2019
    Messages:
    24
    Likes Received:
    7
    Just to add on, I can see IOMMUv2 when I run
    Code:
    dmesg | grep AMD-Vi
    1.png
     
  14. andrey_alex77

    andrey_alex77 UDOOer

    Joined:
    Oct 31, 2019
    Messages:
    3
    Likes Received:
    0
    When IOMMU is included in BIOS 1.05 R.C. 13 in Linux eMMC drive stops working.
     
  15. Zgembo

    Zgembo UDOOer

    Joined:
    Sep 21, 2019
    Messages:
    49
    Likes Received:
    27
    Same here.
     
  16. Peter Smith

    Peter Smith UDOOer

    Joined:
    Feb 18, 2020
    Messages:
    4
    Likes Received:
    1
    Tried with BIOS 1.06RC04 can confirm that eMMC does not work when using the Ubuntu 19.04 image downloaded from the UDOO site (which I assume has the required eMMC fix included) when IOMMU is enabled in the BIOS.
     
  17. Sammy Lin

    Sammy Lin New Member

    Joined:
    Apr 23, 2020
    Messages:
    1
    Likes Received:
    0
    Has there been a fix for eMMC and enabling IOMMU? Is the workaround to install the OS on an external SATA drive?
     
  18. Sushant Tripathy

    Sushant Tripathy New Member

    Joined:
    Jun 17, 2020
    Messages:
    1
    Likes Received:
    0
    Did you manage to get rocm working?
     
  19. Deluxe

    Deluxe UDOOer

    Joined:
    Aug 13, 2019
    Messages:
    13
    Likes Received:
    1
    Not really, you could try packages from https://bruhnspace.com/en/bruhnspace-rocm-for-amd-apus/ as they modified Ubuntu 18.04.X ROCm packages to support V1000 IGPUs. But I installed Manjaro so that won't work for me and I had no time/motivation to try Ubuntu with those packages.

    If anyone decide to give it a try definitely let us know how it goes!
     

Share This Page