cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

tushar
Journeyman III

can't use opencl !!

update

according to the wikipedia, the card supports opencl 1.2, but the clinfo tells that opencl 2.1 is installed.... so I think I should test it with opencl 1.2, but where do I get that ?

is there an open-source linux driver (with opencl support) for old mobile gpus

01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / R7 M520] (rev 83)
    Subsystem: Hewlett-Packard Company Radeon R7 M520

I have my brother's (1 year) old HP notebook, which has a switchable graphics cards from AMD.

I have installed linux on it.

tushar@Notebook:~$ cat /etc/os-release
NAME="Zorin OS"
VERSION="15.2"
ID=zorin
ID_LIKE=ubuntu
PRETTY_NAME="Zorin OS 15.2"
VERSION_ID="15"
HOME_URL="https://www.zorinos.com"
SUPPORT_URL="https://www.zorinos.com/help"
BUG_REPORT_URL="https://bugs.launchpad.net/zorin-os"
PRIVACY_POLICY_URL="https://www.zorinos.com/legal/privacy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

Here's my gpu info

tushar@Notebook:~$ sudo lspci -v
(...)
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / R7 M520] (rev 83)
    Subsystem: Hewlett-Packard Company Radeon R7 M520
    Flags: fast devsel, IRQ 255
    Memory at 90000000 (64-bit, prefetchable) [disabled] [size=256M]
    Memory at b1200000 (64-bit, non-prefetchable) [disabled] [size=256K]
    I/O ports at 5000 [disabled] [size=256]
    Expansion ROM at b1240000 [disabled] [size=128K]
    Capabilities: [48] Vendor Specific Information: Len=08 <?>
    Capabilities: [50] Power Management version 3
    Capabilities: [58] Express Legacy Endpoint, MSI 00
    Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
    Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
    Capabilities: [150] Advanced Error Reporting
    Capabilities: [270] #19
    Kernel modules: radeon, amdgpu
(...)‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

Note: to remove the "Unsupported OS" error, I commented out the line inside if check that exits out the script

        echo "Unsupported OS" | stderr
#        exit 1
        ;;

I tried

sudo ./amdgpu-pro-install -y --opencl=legacy

but that resulted in a login loop problem, and later black screen and infinite boot time

so i did this

sudo ./amdgpu-install -y

than installed the opencl drivers manually (from this forum https://forum.linuxconfig.org/t/install-opencl-for-the-amdgpu-open-source-drivers-on-debian-and-ubun... )

sudo echo "deb file:/opt/amdgpu-pro-repo /" > /etc/apt/sources.list.d/amdgpu-pro.list

sudo apt update --allow-insecure-repositories

sudo apt install clinfo-amdgpu-pro opencl-orca-amdgpu-pro-icd clinfo

I can use the switchable graphics functionality (as earlier) but can't use opencl features (in blender)

here's the clinfo output

Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (2906.7)

(...)

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 0

(...)

expectations: opencl should be enabled in blender, handbrake (vce) etc.

questions

  • Is my gpu a member of the radeon R5 or radeon r7 series ?
  • Is it suppoted by the amdgpu-pro drivers ?

    mobile GPUs are not supported by amdgpu 

0 Likes
0 Replies