Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Contribute to GitLab
  • Sign in
C
coderai
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • nexlab
  • coderai
  • Repository

Switch branch/tag
  • coderai
  • codai
  • models
  • gpu_query.py
Find file
BlameHistoryPermalink
  • Stefy Lanza (nextime / spora )'s avatar
    gpu: scope per-engine VRAM to the engine's own card (fix Radeon showing NVIDIA) · ff39ee42
    Stefy Lanza (nextime / spora ) authored Jun 27, 2026
    The context-free VRAM query used gpu_memory(), which (via NVML/nvidia-smi)
    reports every physical NVIDIA card regardless of CUDA_VISIBLE_DEVICES. So the
    Vulkan/Radeon engine (CUDA_VISIBLE_DEVICES="") showed the NVIDIA 3090's VRAM in
    its status instead of its own AMD card.
    
    Switch the per-engine status poll (api/app.py) and the capability probe
    (broker/capabilities.py) to visible_gpu_memory(), which honours
    CUDA_VISIBLE_DEVICES (index OR UUID; empty -> no CUDA cards). Add
    gpu_query.amd_gpu_memory() (amdgpu sysfs, driver-free) as the fallback so the
    Radeon engine reports its real card; capabilities keeps its torch-loaded guard so
    the torch-free front still enumerates the whole node. Bumps to 0.1.29.
    Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01RdMufYvtTbtGDWsiZVoXce
    ff39ee42
gpu_query.py 8.33 KB
EditWeb IDE

Replace gpu_query.py

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.