mirror of
https://github.com/Comfy-Org/comfy-aimdo.git
synced 2026-11-04 23:37:21 +00:00
[PR #27] fix: implement ELF GOT patching for CUDA hooks on Linux/WSL2 #70
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-aimdo#70
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-aimdo/pull/27
Author: @WASasquatch
Created: 3/20/2026
Status: 🔄 Open
Base:
master← Head:fix/linux-wsl2-cuda-hooks📝 Commits (1)
e7f2fd2fix: implement ELF GOT patching for CUDA hooks on Linux/WSL2📊 Changes
5 files changed (+390 additions, -49 deletions)
View changed files
📝
.github/workflows/build-wheels.yml(+1 -1)📝
build-linux-docker(+1 -1)➕
src-posix/cuda-hook.c(+379 -0)📝
src/plat.h(+3 -2)📝
src/pyt-cu-plug-alloc-async.c(+6 -45)📄 Description
On Linux, libcudart resolves driver API symbols via dlsym at runtime, so the no-op stubs left GOT entries unpatched and VRAM tracking broken.
This commit:
Tested on RTX 4090 under WSL2 (Ubuntu 24.04) with PyTorch 2.10+cu128.
Contribution Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.