Small bug in info_str if selected device number is >= 1
まだ誰も着手していません。
評価
調査の方向性
device.py の108行目から開始し、選択したデバイス番号1と3で、プラットフォームを変更した後も含めて info_str を再現します。表示されたデバイスを選択したデバイスおよび C++ の出力と照合します。各選択に対して info_str が正しいデバイスを報告し、デバイスの計算にリグレッションがないことを完了条件とします。
索引モデルが issue の本文から書いたものです。
説明
If the currently selected device number is 1 or greater, info_str will display incorrect information for the selected device. This is due to this conditional in device.py: https://github.com/arrayfire/arrayfire-python/blob/master/arrayfire/device.py#L108. That is, the previous device is used for the device information. An easy fix should be to simply omit the conditional.
However, the info_str seems to also show wrong devices after the platform has changed (though it could be related to something else too). For example when device number 1 is selected:
ArrayFire v3.9.0 (OpenCL 64bit)
-0- AMD Accelerated Parallel Processing: gfx1036 (Compute 2.0)
[1] AMD Accelerated Parallel Processing: gfx1036 (Compute 2.0)
-2- AMD Accelerated Parallel Processing: gfx1036 (Compute 2.0)
-3- Intel(R) OpenCL: AMD_Ryzen_5_7600X_6-Core_Processor (Compute 2.1)
With device number 3:
ArrayFire v3.9.0 (OpenCL 64bit)
-0- AMD Accelerated Parallel Processing: gfx1036 (Compute 2.0)
-1- AMD Accelerated Parallel Processing: gfx1100 (Compute 2.0)
-2- AMD Accelerated Parallel Processing: gfx1036 (Compute 2.0)
[3] AMD Accelerated Parallel Processing: gfx1036 (Compute 2.0)
The correct device is used in the actual computations though.
Note that the C++ version shows:
ArrayFire v3.9.0 (OpenCL, 64-bit Windows, build b59a1ae53)
-0- AMD: gfx1036, 24568 MB
[1] AMD: gfx1100, 20464 MB
-2- INTEL: AMD Ryzen 5 7600X 6-Core Processor , 64662 MB
-3- INTEL: AMD Ryzen 5 7600X 6-Core Processor , 64662 MB
- 主要言語
- Python
- スター
- 422
- フォーク
- 63
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
arrayfire/arrayfire-python のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
arrayfire/arrayfire-python#271 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
arrayfire/arrayfire-python#270 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
arrayfire/arrayfire-python#269 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
arrayfire/arrayfire-python#268 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
arrayfire/arrayfire-python#267 · コメント 1 件 · リアクション 1 件 ·
arrayfire/arrayfire-python の issue をすべて見る
似ている issue
-
Add: hunch オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DiamondLightSource/dodal#2211 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
openml/openml-python#1749 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
sipyourdrink-ltd/bernstein#6191 ·