Ubuntu: 20.04.2
Kernel: 5.4.0-65-generic
Driver: amdgpu-pro-20.45-1188099
./amdgpu-pro-install --opencl=legacy --headless
After reboot, no OpenCL devices are available:
$ /opt/amdgpu-pro/bin/clinfo
Number of platforms: 1
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 2.1 AMD-APP (3188.4)
Platform Name: AMD Accelerated Parallel Processing
Platform Vendor: Advanced Micro Devices, Inc.
Platform Extensions: cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
Platform Name: AMD Accelerated Parallel Processing
Number of devices: 0
$ sudo lshw -C display
*-display
description: VGA compatible controller
product: HD Graphics 630
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
logical name: /dev/fb0
version: 04
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list fb
configuration: depth=32 driver=i915 latency=0 mode=2560x1080 visual=truecolor xres=2560 yres=1080
resources: iomemory:2f0-2ef iomemory:2f0-2ef irq:143 memory:2ffe000000-2ffeffffff memory:2f30000000-2f3fffffff ioport:f000(size=64)
*-display
description: VGA compatible controller
product: Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:01:00.0
version: ef
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
configuration: driver=amdgpu latency=0
resources: iomemory:200-1ff iomemory:220-21f irq:147 memory:2000000000-21ffffffff memory:2200000000-22001fffff ioport:e000(size=256) memory:f7600000-f763ffff memory:f7640000-f765ffff
*-display
description: VGA compatible controller
product: TU106 [GeForce RTX 2060 Rev. A]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:02:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nouveau latency=0
resources: iomemory:2f0-2ef iomemory:2f0-2ef irq:144 memory:f6000000-f6ffffff memory:2f60000000-2f6fffffff memory:2f70000000-2f71ffffff ioport:d000(size=128) memory:f7000000-f707ffff
*-display
description: VGA compatible controller
product: Vega 10 XL/XT [Radeon RX Vega 56/64]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:08:00.0
version: c3
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
configuration: driver=amdgpu latency=0
resources: iomemory:240-23f iomemory:230-22f irq:149 memory:2400000000-25ffffffff memory:2300000000-23001fffff ioport:b000(size=256) memory:f7200000-f727ffff memory:f7280000-f729ffff
*-display
description: VGA compatible controller
product: TU116 [GeForce GTX 1660]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:09:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nouveau latency=0
resources: iomemory:2f0-2ef iomemory:2f0-2ef irq:151 memory:f4000000-f4ffffff memory:2f40000000-2f4fffffff memory:2f50000000-2f51ffffff ioport:a000(size=128) memory:f5000000-f507ffff
*-display
description: VGA compatible controller
product: GP104 [GeForce GTX 1080]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:0a:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nouveau latency=0
resources: iomemory:2f0-2ef iomemory:2f0-2ef irq:153 memory:f2000000-f2ffffff memory:2f80000000-2f8fffffff memory:2f90000000-2f91ffffff ioport:9000(size=128) memory:f3000000-f307ffff
*-display
description: VGA compatible controller
product: Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:0c:00.0
version: e7
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
configuration: driver=amdgpu latency=0
resources: iomemory:260-25f iomemory:280-27f irq:152 memory:2600000000-27ffffffff memory:2800000000-28001fffff ioport:8000(size=256) memory:f7400000-f743ffff memory:f7440000-f745ffff
How do I fix this?
Solved! Go to Solution.
Case closed, I added the user to video and render groups.
Now the GPUs that should be visible through the legacy OpenCL are visible.
sudo usermod -a -G video $LOGNAME
sudo usermod -a -G render $LOGNAME
Case closed, I added the user to video and render groups.
Now the GPUs that should be visible through the legacy OpenCL are visible.
sudo usermod -a -G video $LOGNAME
sudo usermod -a -G render $LOGNAME
I find it interesting that you're using a Vega 10 GPU with 'legacy' OpenCL. I thought Vega onwards needed PAL or ROCr-based OpenCL to function under recent amdgpu-pro drivers. Are you running the Vega 10 GPU successfully with 'legacy' OpenCL?