I’m trying to run Davinci Resolve (OpenCL) with my AMD Radeon RX 6700 XT via an EGPU on my Framework laptop
After weeks of trying every guide I could find, the furthest I got was with AMDGPU drivers, the kernel args “radeon.cik_support=0 amdgpu.cik_support=1
”, and running mokutil --import /root/mok.der
. I was able to open Resolve and it saw my GPU, but pictures and videos wouldn’t render. Minecraft used the GPU seemingly without issue. Minecraft no longer used and Resolve no longer detected my GPU after a reboot, and I had many DKMS problems.
My GPU currently isn’t detected by Resolve and isn’t used by Minecraft.
This is my current configuration:
My current configurations (specifically repositories) are based off of this fedoraproject thread.
OS: Fedora 37
Kernel: 6.0.12-300.fc37.x86_64
Kernel args: ro rootflags=subvol=root rd.luks.uuid=luks-x-x-x-x-x rhgb quiet module_blacklist=hid_sensor_hub nvme.noacpi=1
Display manager: Wayland
Device: Framework Laptop 12th gen (thunderbolt 4)
Secure boot: Enabled
EGPU: Akitio Node Titan (thunderbolt 3)
GPU: Gigabyte (AMD) Radeon RX 6700 XT
AMD Main repo: Index of /amdgpu/5.4.1/rhel/9.1/main/x86_64/
AMD Proprietary repo: Index of /amdgpu/5.4.1/rhel/9.1/proprietary/x86_64/
ROCM repo: Index of /rocm/rhel9/rpm/
All relevant packages (as far as I’m aware) (sudo dnf list installed '*amd-gpu*' '*amdgpu*' '*rocm*' '*roct*' '*hsa*' '*mesa*' '*vulkan*' | grep -v 'procmail|setproctitle'
):
Installed Packages
amd-gpu-firmware.noarch 20221109-144.fc37 @updates
hsa-rocr.x86_64 1.7.0.50400-72.el9 @rocm-copy
hsa-rocr-devel.x86_64 1.7.0.50400-72.el9 @rocm-copy
hsakmt.x86_64 1.0.6-26.rocm5.3.0.fc37 @updates
hsakmt-roct-devel.x86_64 20221020.0.2.50400-72.el9 @rocm-copy
mesa-dri-drivers.i686 22.2.3-1.fc37 @updates
mesa-dri-drivers.x86_64 22.2.3-1.fc37 @updates
mesa-filesystem.i686 22.2.3-1.fc37 @updates
mesa-filesystem.x86_64 22.2.3-1.fc37 @updates
mesa-libEGL.i686 22.2.3-1.fc37 @updates
mesa-libEGL.x86_64 22.2.3-1.fc37 @updates
mesa-libGL.i686 22.2.3-1.fc37 @updates
mesa-libGL.x86_64 22.2.3-1.fc37 @updates
mesa-libGLU.x86_64 9.0.1-7.fc37 @fedora
mesa-libOSMesa.i686 22.2.3-1.fc37 @updates
mesa-libOSMesa.x86_64 22.2.3-1.fc37 @updates
mesa-libgbm.i686 22.2.3-1.fc37 @updates
mesa-libgbm.x86_64 22.2.3-1.fc37 @updates
mesa-libglapi.i686 22.2.3-1.fc37 @updates
mesa-libglapi.x86_64 22.2.3-1.fc37 @updates
mesa-libxatracker.x86_64 22.2.3-1.fc37 @updates
mesa-va-drivers.i686 22.2.3-1.fc37 @updates
mesa-vulkan-drivers.i686 22.2.3-1.fc37 @updates
mesa-vulkan-drivers.x86_64 22.2.3-1.fc37 @updates
rocm-comgr.x86_64 5.3.0-1.fc37 @updates
rocm-core.x86_64 5.4.0.50400-72.el9 @rocm-copy
rocm-device-libs.x86_64 1.0.0.50400-72.el9 @rocm-copy
rocm-language-runtime.x86_64 5.4.0.50400-72.el9 @rocm-copy
rocm-ocl-icd.x86_64 2.0.0.50400-72.el9 @rocm-copy
rocm-opencl.x86_64 2.0.0.50400-72.el9 @rocm-copy
rocm-opencl-runtime.x86_64 5.4.0.50400-72.el9 @rocm-copy
rocm-runtime.x86_64 5.3.0-2.fc37 @updates
rocm-smi.noarch 4.0.0-6.fc37 @fedora
rocminfo.x86_64 1.0.0.50400-72.el9 @rocm-copy
vulkan-loader.i686 1.3.216.0-3.fc37 @fedora
vulkan-loader.x86_64 1.3.216.0-3.fc37 @fedora
GPU detection 1
This is the process I used to test GPU detection in this section:
- Shut down laptop
- Connect to EGPU
- Boot up laptop
- Login at Gnome lockscreen
- Open terminal and type in the respective command / test respective application
1a. Resolve: “Unsupported GPU Processing Mode. Please review the GPU drivers and GPU configuration under preferences.”
1b. Minecraft: F3 menu GPU name “Mesa Intel(R) Graphics (ADL GT2) - 4.6 (Core Profile) Mesa 22.2.4 (git-80df10f902)”
1c. lspci
- GPU is detected whilst EGPU is connected via thunderbolt (sudo lspci -vnn | grep VGA -A 12
)
00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P Integrated Graphics Controller [8086:4626] (rev 0c) (prog-if 00 [VGA controller])
Subsystem: Device [f111:0002]
Flags: bus master, fast devsel, latency 0, IRQ 149, IOMMU group 1
Memory at 605c000000 (64-bit, non-prefetchable) [size=16M]
Memory at 4000000000 (64-bit, prefetchable) [size=256M]
I/O ports at 3000 [size=64]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: [40] Vendor Specific Information: Len=0c <?>
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable+ 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [100] Process Address Space ID (PASID)
Capabilities: [200] Address Translation Service (ATS)
--
06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M] [1002:73df] (rev c5) (prog-if 00 [VGA controller])
Subsystem: Gigabyte Technology Co., Ltd Device [1458:2331]
Flags: fast devsel, IRQ 207, IOMMU group 24
Memory at 6000000000 (64-bit, prefetchable) [disabled] [size=256M]
Memory at 6010000000 (64-bit, prefetchable) [disabled] [size=2M]
I/O ports at 4000 [disabled] [size=256]
Memory at 7c000000 (32-bit, non-prefetchable) [virtual] [size=1M]
Expansion ROM at 7c100000 [virtual] [disabled] [size=128K]
Capabilities: [48] Vendor Specific Information: Len=08 <?>
Capabilities: [50] Power Management version 3
Capabilities: [64] 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 <?>
1d. clinfo
- no OpenCL devices detected:
Number of platforms 1
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.1 AMD-APP (3513.0)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback
Platform Extensions function suffix AMD
Platform Host timer resolution 1ns
Platform Name AMD Accelerated Parallel Processing
Number of devices 0
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) No platform
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No platform
clCreateContext(NULL, ...) [default] No platform
clCreateContext(NULL, ...) [other]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No devices found in platform
1e. glxinfo
- CPU is being used rather than the GPU (glxinfo | grep "OpenGL renderer"
):
OpenGL renderer string: Mesa Intel(R) Graphics (ADL GT2)
GPU Detection 2
The difference here (compared to GPU Dection 1) is I plug in the EGPU at the Gnome lockscreen instead of pre-boot. Doing this allows clinfo
to see my GPU.
This is the process I used to test GPU detection in this section:
- Shut down laptop
- Disconnect EGPU
- Boot up laptop
- Connect EGPU at Gnome lockscreen
- Login at Gnome lockscreen
- Open terminal and type in the respective command
2a. Resolve: “Unsupported GPU Processing Mode. Please review the GPU drivers and GPU configuration under preferences.”
2b. Minecraft: F3 menu GPU name “Mesa Intel(R) Graphics (ADL GT2) - 4.6 (Core Profile) Mesa 22.2.4 (git-80df10f902)”
2c. lspci
- GPU is detected whilst EGPU is connected via thunderbolt (sudo lspci -vnn | grep VGA -A 12
)
00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P Integrated Graphics Controller [8086:4626] (rev 0c) (prog-if 00 [VGA controller])
Subsystem: Device [f111:0002]
Flags: bus master, fast devsel, latency 0, IRQ 149, IOMMU group 1
Memory at 606c000000 (64-bit, non-prefetchable) [size=16M]
Memory at 4000000000 (64-bit, prefetchable) [size=256M]
I/O ports at 4000 [size=64]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: [40] Vendor Specific Information: Len=0c <?>
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable+ 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [100] Process Address Space ID (PASID)
Capabilities: [200] Address Translation Service (ATS)
--
06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M] [1002:73df] (rev c5) (prog-if 00 [VGA controller])
Subsystem: Gigabyte Technology Co., Ltd Device [1458:2331]
Flags: fast devsel, IRQ 207, IOMMU group 24
Memory at 6000000000 (64-bit, prefetchable) [disabled] [size=256M]
Memory at 6010000000 (64-bit, prefetchable) [disabled] [size=2M]
I/O ports at 3000 [disabled] [size=256]
Memory at 52000000 (32-bit, non-prefetchable) [virtual] [size=1M]
Expansion ROM at 52100000 [virtual] [disabled] [size=128K]
Capabilities: [48] Vendor Specific Information: Len=08 <?>
Capabilities: [50] Power Management version 3
Capabilities: [64] 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 <?>
2d. clinfo
- AMD GPU is now detected:
Number of platforms 1
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.1 AMD-APP (3513.0)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback
Platform Extensions function suffix AMD
Platform Host timer resolution 1ns
Platform Name AMD Accelerated Parallel Processing
Number of devices 1
Device Name gfx1031
Device Vendor Advanced Micro Devices, Inc.
Device Vendor ID 0x1002
Device Version OpenCL 2.0
Driver Version 3513.0 (HSA1.1,LC)
Device OpenCL C Version OpenCL C 2.0
Device Type GPU
Device Board Name (AMD) AMD Radeon RX 6700 XT
Device PCI-e ID (AMD) 0x73df
Device Topology (AMD) PCI-E, 0000:06:00.0
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 20
SIMD per compute unit (AMD) 4
SIMD width (AMD) 32
SIMD instruction width (AMD) 1
Max clock frequency 2725MHz
Graphics IP (AMD) 10.3
Device Partition (core)
Max number of sub-devices 20
Supported partition types None
Supported affinity domains (n/a)
Max work item dimensions 3
Max work item sizes 1024x1024x1024
Max work group size 256
Preferred work group size (AMD) 256
Max work group size (AMD) 1024
Preferred work group size multiple (kernel) 32
Wavefront width (AMD) 32
Preferred / native vector sizes
char 4 / 4
short 2 / 2
int 1 / 1
long 1 / 1
half 1 / 1 (cl_khr_fp16)
float 1 / 1
double 1 / 1 (cl_khr_fp64)
Half-precision Floating-point support (cl_khr_fp16)
Denormals No
Infinity and NANs No
Round to nearest No
Round to zero No
Round to infinity No
IEEE754-2008 fused multiply-add No
Support is emulated in software No
Single-precision Floating-point support (core)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations Yes
Double-precision Floating-point support (cl_khr_fp64)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Address bits 64, Little-Endian
Global memory size 12868124672 (11.98GiB)
Global free memory (AMD) 12566528 (11.98GiB) 12566528 (11.98GiB)
Global memory channels (AMD) 6
Global memory banks per channel (AMD) 4
Global memory bank width (AMD) 256 bytes
Error Correction support No
Max memory allocation 10937905968 (10.19GiB)
Unified memory for Host and Device No
Shared Virtual Memory (SVM) capabilities (core)
Coarse-grained buffer sharing Yes
Fine-grained buffer sharing Yes
Fine-grained system sharing No
Atomics No
Minimum alignment for any data type 128 bytes
Alignment of base address 1024 bits (128 bytes)
Preferred alignment for atomics
SVM 0 bytes
Global 0 bytes
Local 0 bytes
Max size for global variable 10937905968 (10.19GiB)
Preferred total size of global vars 12868124672 (11.98GiB)
Global Memory cache type Read/Write
Global Memory cache size 16384 (16KiB)
Global Memory cache line size 64 bytes
Image support Yes
Max number of samplers per kernel 29663
Max size for 1D images from buffer 134217728 pixels
Max 1D or 2D image array size 8192 images
Base address alignment for 2D image buffers 256 bytes
Pitch alignment for 2D image buffers 256 pixels
Max 2D image size 16384x16384 pixels
Max 3D image size 16384x16384x8192 pixels
Max number of read image args 128
Max number of write image args 8
Max number of read/write image args 64
Max number of pipe args 16
Max active pipe reservations 16
Max pipe packet size 2347971376 (2.187GiB)
Local memory type Local
Local memory size 65536 (64KiB)
Local memory size per CU (AMD) 65536 (64KiB)
Local memory banks (AMD) 32
Max number of constant args 8
Max constant buffer size 10937905968 (10.19GiB)
Preferred constant buffer size (AMD) 16384 (16KiB)
Max size of kernel argument 1024
Queue properties (on host)
Out-of-order execution No
Profiling Yes
Queue properties (on device)
Out-of-order execution Yes
Profiling Yes
Preferred size 262144 (256KiB)
Max size 8388608 (8MiB)
Max queues on device 1
Max events on device 1024
Prefer user sync for interop Yes
Number of P2P devices (AMD) 0
Profiling timer resolution 1ns
Profiling timer offset since Epoch (AMD) 0ns (Thu Jan 1 01:00:00 1970)
Execution capabilities
Run OpenCL kernels Yes
Run native kernels No
Thread trace supported (AMD) No
Number of async queues (AMD) 8
Max real-time compute queues (AMD) 8
Max real-time compute units (AMD) 20
printf() buffer size 4194304 (4MiB)
Built-in kernels (n/a)
Device Extensions cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_media_ops cl_amd_media_ops2 cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_depth_images cl_amd_copy_buffer_p2p cl_amd_assembly_program
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) No platform
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No platform
clCreateContext(NULL, ...) [default] No platform
clCreateContext(NULL, ...) [other] Success [AMD]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1)
Platform Name AMD Accelerated Parallel Processing
Device Name gfx1031
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1)
Platform Name AMD Accelerated Parallel Processing
Device Name gfx1031
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1)
Platform Name AMD Accelerated Parallel Processing
Device Name gfx1031
1e. glxinfo
- CPU is being used rather than the GPU (glxinfo | grep "OpenGL renderer"
):
OpenGL renderer string: Mesa Intel(R) Graphics (ADL GT2)
I’ve tried every guide I could find over the past few weeks, but to no avail. Any ideas or suggestions would be really appreciated.