Title: backends do not load in proper order · Issue #251 · arrayfire/arrayfire-python · GitHub
Open Graph Title: backends do not load in proper order · Issue #251 · arrayfire/arrayfire-python
X Title: backends do not load in proper order · Issue #251 · arrayfire/arrayfire-python
Description: This line 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 a...
Open Graph Description: This line 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 co...
X Description: This line 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 Linu...
Opengraph URL: https://github.com/arrayfire/arrayfire-python/issues/251
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"backends do not load in proper order","articleBody":"[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.\r\n\r\nBy the way, I simply change `{\"cpu\", \"opencl\", \"cuda\", \"\"}` to `[\"cuda\"]` and I can import arrayfire with no error.","author":{"url":"https://github.com/zzjjbb","@type":"Person","name":"zzjjbb"},"datePublished":"2021-02-24T02:56:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/251/arrayfire-python/issues/251"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f2d18ef1-07b2-6b08-1f1d-d4ea94f4f76a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A176:EF6F3:6E1B31:8F42C5:696AEB39 |
| html-safe-nonce | 41c4387cbb06b853a82f64b5004e436b1c90515ad8c9c9cc01e1920260866390 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTc2OkVGNkYzOjZFMUIzMTo4RjQyQzU6Njk2QUVCMzkiLCJ2aXNpdG9yX2lkIjoiNDMyMjQwMDgzMDE0MTE2NDM0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3b51abc63cefee467a4049d0f4d7e34cd7f0069863684815f458f018107e576b |
| hovercard-subject-tag | issue:815032835 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/arrayfire/arrayfire-python/251/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a11d9362cc3e1efd2f3a77a6e8272798cb8a2577928c07d80f72509212bc02e4/arrayfire/arrayfire-python/issues/251 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a11d9362cc3e1efd2f3a77a6e8272798cb8a2577928c07d80f72509212bc02e4/arrayfire/arrayfire-python/issues/251 |
| og:image:alt | This line 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 co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zzjjbb |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/arrayfire/arrayfire-python git https://github.com/arrayfire/arrayfire-python.git |
| octolytics-dimension-user_id | 5395442 |
| octolytics-dimension-user_login | arrayfire |
| octolytics-dimension-repository_id | 37599258 |
| octolytics-dimension-repository_nwo | arrayfire/arrayfire-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 37599258 |
| octolytics-dimension-repository_network_root_nwo | arrayfire/arrayfire-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width