Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

cuda.core: VirtualMemoryResource.modify_allocation(config=...) changes the resource's policy

已關閉
#2,909 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
48/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
python
領域
hpc

研究方向

先定位 cuda.core 的 modify_allocation 實作和 resource 建構函式,接著閱讀 test_vmm_allocator_policy_configuration 以及 #1300 中參照的行為。判定 config 是每次呼叫適用還是持久的,包括建構函式的驗證行為,並根據這項決定調整 docstring 和 test。

由索引模型根據 Issue 內容生成。

描述

bug cuda.core

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.

主要語言
Cython
星號
3.4k
分支
335
平均合併
2 天 19 分鐘
30 天內合併 PR
126

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

NVIDIA/cuda-python 的其他 Issue

查看 NVIDIA/cuda-python 的全部 Issue

相似的 Issue

更多 HPC Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。