Repository navigation
WDDM Bypass #8033
LordRelentless
started this conversation in
Ideas
WDDM Bypass
#8033
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The present problem with ROCm on Windows, as I understand it, is that all protocols are being forced through the WDDM which does not expose ROCm direct hardware access, for security reasons. Solution, don't use WDDM.
Rewrite the Firmware for the RX 9070 XT for example, to register as two different devices, a GPU and a PCI-E attached NPU. Deploy two different drivers, a graphics driver that operates through the WDDM and addresses the GPU when being used as a graphics card, and an NPU driver that doesn't go through the WDDM with direct PCI-E pipeline. Use a supervisor software like Radeon Adrenaline to handle handoff requests, or do graphical offload to the APU (like those in the 9700x) while the dedicated graphics card is being used as a TPU.
If this works, then the drivers could be used to do load share, depending upon the calls requested, graphical operations go through the WDDM (e.g. Vulkan, DirectX 12, OpenCL, OpenGL, etc), while ROCm, Ray Tracing, Path Tracing, ML protocols are handled via the PCI-E-Direct pipeline for instruction I/O.
It may also be worth considering making dual PCI-E slot GPUs, for parallel registration and greater PCI-E lane assignment for the separation. Although, personally I'd suggest simply creating a M.2 NPU card that can be slotted into an NVME 4 gen or 5 gen slot, and used on it's own instead of relying on the GPU for AI and ML workloads.
Alternative route; utilize CPU direct access and the APU as a bridge to the ROCm functions of the Dedicated GPU by reintroducing an APU-Graphics to Dedicated Graphics link, similar to Nvdia's former Nvlink or the former Crossfire or P2P XDMA connectivity once used by AMD. A lightweight AMD XGMI for APU-dGPU peer-to-peer ops, where the APU handles the WDDM graphics and then offloads graphical or ROCm workload to the dGPU.
APU as Display Owner bound to the WDDM, dGPU as Compute Device fenced off from the WDDM when used for ROCm and compute loads not expressly tied to graphics operations (e.g. gaming, video processing, rendering, etc), which is facilitated by the existing infinity fabric architecture already present.
Another option still is to include a USB-C header on future GPUs that can connect to the motherboard via USB headers, allowing for USB routing to the GPU for ROCm workloads.
All reactions