Unable to have two GPUs (RX 5700 XT & RX 580) recognized by Blender simultaneously

Both platforms now show up with a binary patch on the 19.30 legacy library. This makes a simple change to the Platform Extensions function suffix (just a space string) to fool the OpenCL loader.
To apply:
patch < libamdocl-orca64-SUFFIX-FIX.patch.xml libamdocl-orca64.so

libamdocl-orca64-SUFFIX-FIX.patch.xml (6.9 MB)

This is now up to AMD to address officially in their drivers. It could well be an issue with OpenCL 2.x (but beyond my interest now).
Feel free to download it and see if your NAVI is 1) Recognized with clinfo and 2) Available within Blender

I did a successful bmw27 render with my VEGA + RX480 with latest 19.30 OpenCL drivers/libs with this patch applied as above and it is faster by ~10secs than the 18.20 version (so that is that).

Number of platforms                               2
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (2906.7)
  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
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP (2906.7)
  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

You can now see 2 platforms (legacy and pal). The duplicate platforms that the loader will reject usually.
All the best.

1 Like