NVIDIA / NVIDIA/cuda-python

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

オープン
#2,909 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug cuda.core
主要言語
Cython
スター
3.4k
フォーク
329
平均マージ
1日 23時間
マージ済み PR(30日)
116

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず cuda.core の modify_allocation の実装と resource コンストラクターを見つけ、次に test_vmm_allocator_policy_configuration と #1300 で参照されている挙動を読みます。config が呼び出しごとのものか永続的なものかを、コンストラクターの検証動作も含めて判断し、その決定に合わせて docstring と test を調整します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
hpc
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。