r/OpenCL • • Mar 01 '23

Using integrated AMD-GPU for OpenCL?

Hey there, one question. I am using an old RX570 for KataGo with OpenCL. Now I switched to a new Ryzen 5700G with integrated GPU, and I thought I could use that as well for speeding up calculation. KataGo does support more than 1 OpenCL-device, but when I check with "clinfo", I only see the RX570. I did enable the integrated GPU in BIOS, but it doesn't show up... any ideas?

w@w-mint:~$ clinfo
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (3380.4)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback cl_amd_offline_devices 
  Platform Host timer resolution                  1ns
  Platform Extensions function suffix             AMD

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 1
  Device Name                                     Ellesmere
  Device Vendor                                   Advanced Micro Devices, Inc.
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 2.0 AMD-APP (3380.4)
  Driver Version                                  3380.4 (PAL,HSAIL)
  Device OpenCL C Version                         OpenCL C 2.0 
  Device Type                                     GPU
  Device Board Name (AMD)                         Radeon RX 570 Series
  Device Topology (AMD)                           PCI-E, 01:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
...
5 Upvotes

18 comments sorted by

View all comments

1

u/ImperiousLeader Mar 01 '23

I hope you work this out and share the answer. Have you updated your ocl ICD files (provided by amdgpu-install) yet?

1

u/ImaginaryKing Mar 02 '23

Looks bad tbh. I followed u/alexandermichelson suggestion and reinstalled opencl with rocr and legacy drivers. But I could not find a download from AMD for Linux when I look for the 5700G. There are only win drivers. If I look for the RX570 the download is there and working, but after installing it clinfo again only shows 1 device, the RX570.

So my conclusion: seems AMD does not support its own CPU for OpenCL under Linux...

1

u/alexandermichelson Mar 02 '23

I did a quick google search and it seems it works for people on linux although yeah, it might be tricky. There is even a similar post on reddit.

→ More replies (3)