cuda.core: VirtualMemoryResource.modify_allocation(config=...) changes the resource's policy
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Cython
- Sterne
- 3.4k
- Forks
- 329
- Ø Merge
- 1 T. 23 Std.
- Gemergte PRs (30 T.)
- 116
Beschreibung
modify_allocation(buf, size, config=...) assigns the config to the resource before any check, so later allocate() calls and the accessibility properties use it. The docstring describes a per-call policy; test_vmm_allocator_policy_configuration asserts the persistence (see #1300). The assignment also skips the constructor's validation (RDMA support, host-location handling, dict configs). Decide per-call or persistent, then align the docstring and the test.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, cuda.core's modify_allocation-Implementierung und den resource-Konstruktor zu finden, lies dann test_vmm_allocator_policy_configuration und das in #1300 referenzierte Verhalten. Bestimme, ob config pro Aufruf gilt oder persistent ist, einschließlich des Validierungsverhaltens des Konstruktors, und passe Docstring und Test an diese Entscheidung an.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- hpc
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100