arrayfire / arrayfire/arrayfire-python

backends do not load in proper order

未關閉
#251 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
422
分支
63
PR 合併指標
30 天內沒有已合併 PR

描述

[This line](https://github.com/arrayfire/arrayfire-python/blob/28a0f610c5329ebc718ce4d924f870c3651bfb3e/arrayfire/library.py#L646) has a comment `# Iterate in reverse order of preference`. However, it loads them with some random order, because the object to iterate is a `set`, which doesn't keep the order. In my Linux computer, when I run `import arrayfire as af`, the function will be called and it loads `""` first, and due to `err!=0`, it directly returns and not loads anything.

By the way, I simply change `{"cpu", "opencl", "cuda", ""}` to `["cuda"]` and I can import arrayfire with no error.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Start at library.py line 646, where backend loading iterates over the listed backends, and inspect the import path triggered by `import arrayfire as af`. Verify that backend loading follows the documented preference order and that importing ArrayFire no longer returns early without loading a backend.

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

評估

技術堆疊
python
領域
backend
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
描述清楚
新手友好度
35/100

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

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