[GH-ISSUE #2290] Bug Report: RTX 5090 incompatible with default Pinned Memory #921

Open
opened 2026-10-27 21:23:58 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @lyqxx2023 on GitHub (Nov 18, 2025).
Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/2290

Bug Report: RTX 5090 incompatible with default Pinned Memory

Environment:

  • GPU: NVIDIA GeForce RTX 5090 Laptop (24GB)
  • OS: Windows
  • CUDA: 12.4+
  • PyTorch: 2.x

Root Cause:
The new default-enabled Pinned Memory calls cudaHostRegister(ptr, size, 1)
which returns "CUDA error: invalid argument" on Blackwell architecture GPUs.

Fix Suggestion:

  1. Change cudaHostRegister flag from 1 to 0 (or use cudaHostRegisterDefault)
  2. Add error handling to disable Pinned Memory if registration fails
  3. Add compute capability check for Blackwell (>= 10.0)

Workaround:
Add --disable-pinned-memory to launch arguments.

Originally created by @lyqxx2023 on GitHub (Nov 18, 2025). Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/2290 ## Bug Report: RTX 5090 incompatible with default Pinned Memory **Environment:** - GPU: NVIDIA GeForce RTX 5090 Laptop (24GB) - OS: Windows - CUDA: 12.4+ - PyTorch: 2.x **Root Cause:** The new default-enabled Pinned Memory calls `cudaHostRegister(ptr, size, 1)` which returns "CUDA error: invalid argument" on Blackwell architecture GPUs. **Fix Suggestion:** 1. Change `cudaHostRegister` flag from `1` to `0` (or use `cudaHostRegisterDefault`) 2. Add error handling to disable Pinned Memory if registration fails 3. Add compute capability check for Blackwell (>= 10.0) **Workaround:** Add `--disable-pinned-memory` to launch arguments.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/ComfyUI-Manager#921
No description provided.