Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[idea] Docker 13/14: Refuse a CUDA image with no GPU

Aperta
#2,113 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
76/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
docker, typescript

Direzione di ricerca

Start with surfsense_local/electron/src/headless/gpu-check.ts and the linked GPU design section, then inspect how the headless app identifies CUDA images and how its tests run in CI. Implement the refusal and SURFSENSE_ALLOW_CPU=1 bypass, keeping CPU images out of the check. Done means CI verifies both startup outcomes on a runner without a GPU.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

desktop docker enhancement help wanted

Which part? Desktop app

What would you like?

Step 13 of 14 of #2100: running SurfSense in Docker. Depends on #2112; start once it is merged.

Stop the most common GPU mistake: starting a CUDA image without giving it the card, which silently runs on the CPU.

Design: GPU images, A CUDA image with no GPU

What to change

  • surfsense_local/electron/src/headless/gpu-check.ts: on a CUDA image, run llama-server --list-devices before boot; with no CUDA device, exit with a message naming the fix.
  • SURFSENSE_ALLOW_CPU=1 skips the refusal.

Done when

  • A -cuda image started without --gpus exits with the message.
  • With SURFSENSE_ALLOW_CPU=1 it starts on the CPU.
  • The CPU image never runs the check.
  • CI checks both cases on a runner without a GPU.

Scope: code and tests only. Don't edit docs/ or AGENTS.md, except to fix a link this change breaks; the maintainers update the docs when the Docker work ships.

Why would it help?

Each step leaves something that runs, so the Docker image is built and reviewed one piece at a time.

Lingua principale
Python
Stelle
16.3k
Fork
1.6k
Merge medio
9h 15m
PR unite (30g)
254

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MODSetter/SurfSense

Tutte le issue di MODSetter/SurfSense

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.