benchmarks: cupy branch in get_xr_dataarray never raises NotImplementedError on non-GPU hosts
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 88/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- python
- 領域
- performance
調査の方向性
benchmarks/benchmarks/common.py を開いて get_xr_dataarray を調べ、古い cupy ブランチと #3706 の dask+cupy ブランチを比較してください。非 CUDA パスが cupy をインポートする前に可用性チェックを呼び出し、NotImplementedError を発生させることを確認してから、利用可能な最も実用的なガード動作チェックを実行してください。
索引モデルが issue の本文から書いたものです。
説明
benchmarks/benchmarks/common.py gates the cupy branch with if not has_cuda_and_cupy: — but has_cuda_and_cupy is a function, so the expression is always false and the guard never fires. On a host without CUDA the branch falls through to import cupy and the benchmark dies with ImportError instead of being skipped via NotImplementedError.
The dask+cupy branch added in #3706 calls the function correctly; this fixes the older branch to match. One-line change plus whatever guard-behavior check is practical without a GPU-less CI lane.
Spotted during the #3706 review; kept out of that PR to leave the diff scoped.
- 主要言語
- Python
- スター
- 972
- フォーク
- 92
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 7
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
xarray-contrib/xarray-spatial のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
xarray-contrib/xarray-spatial#3726 ·
-
api area:surface bug severity:medium sweep-api-consistency
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
xarray-contrib/xarray-spatial#3712 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
xarray-contrib/xarray-spatial#3710 ·
-
area:surface documentation user-guide-example
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
xarray-contrib/xarray-spatial#3464 ·
-
area:analysis documentation user-guide-example
難易度 2/5 半日 初心者へのやさしさ 78/100
xarray-contrib/xarray-spatial#3463 ·
xarray-contrib/xarray-spatial の issue をすべて見る
似ている issue
-
documentation help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
simonw/sqlite-utils#872 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100